Show HN: Vertex.js – A 1kloc SPA Framework (lukeb42.github.io)

46 points by LukeB42 ↗ HN
Vertex is a 1kloc SPA framework containing everything you need from React, Ractive-Load and jQuery while still being jQuery-compatible.

vertex.js is a single, self-contained file with no build step and no dependencies.

Also exhibits the curious quality of being faster than over a decade of engineering at Facebook in some cases: https://files.catbox.moe/sqei0d.png

13 comments

[ 5.5 ms ] story [ 38.9 ms ] thread
I was going to say that font is unreadable, but its Courier New.

By my own extensive testing[1], it's optimal at minimum 18px, you're at 13.5px.

[1]: https://github.com/Diablo-D3/dotfiles/blob/master/fontsizes....

(comment deleted)
I find it very readable. Macbook Air M2 with chrome set to default 90% zoom.

edit: I just noticed a newer comment from OP saying that changed the font size.

1kloc is a bit abstract ; it seems you are in a great position to give a true bundled weight ; preact is about 3kb which is my fav for years - good job for the effort and results !
The library is actually ~1400 lines of code, and 51KB in size. Not very slim by JS framework standards, so focusing on that for the headline feels misleading.
Huh, interesting... why have both React components and Mustache-style templates in the same framework? They perform the same function?

What's the use case for mixing them?

A bit surprised to see a new framework boasting to ship as UMD. Are developers still using commonjs? I'm sure some continue to CDN inject libraries. But even then ESM is well supported.
(comment deleted)
(comment deleted)
Annoyingly there's already a framework called Vert.x for JVM but there's also Vert.x Node.js
(comment deleted)
> Also exhibits the curious quality of being faster than over a decade of engineering at Facebook in some cases

Vertex is faster in 2 tests (12% and 32%), and slower in 2 other tests (149% and 200%). Very curious wording on the OP when react is an order of magnitude faster than vertex in some cases.