VanJS: A 0.9KB JavaScript UI framework

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • van

    🍦 VanJS: World's smallest reactive UI framework. Incredibly Powerful, Insanely Small - Everyone can build a useful UI app in an hour.

  • > How can something feel sugar-ish if it's actually more verbose than ordinary JS code?

    I personally find XML much easier to parse than a lot of nested callbacks and I especially like that content is always inside tags, rather than another argument as part of the library's functions. p("Hello, world") is readable enough, but as soon as you start adding html attributes, it becomes less legible to me:

    li(a({href: "https://vanjs.org/"}, "VanJS"))

    vs.

  • VanJS
  • " rel="nofollow noreferrer">https://vanjs.org/">VanJS

    I'm certain some people probably prefer the former over the latter, but I much prefer how JSX/XML reads. I can immediately tell where the content starts and in formatted code, I think it's a lot easier to see visually where things start and end, because of closing tags, instead of just a parentheses.

  • relementjs

    reactive elements...browser & server rendering...tiny, fast, scales large, scales small

  • One huge benefit to VanJS is it's simplicity. It's easy to fork. I did it writing relementjs. I encourage others to fork it as well. VanJS is well written. You get a state management library (on the browser side) & a UI renderer in < 150 LoC. Very impressive. I encourage anyone interested to experiment with this. It has been very fruitful for me.

    In case anyone is interested, here are my forks.

    https://github.com/relementjs/relementjs

    https://github.com/rmemo/rmemo, which exports https://github.com/ctx-core/ctx-core/tree/main/rmemo

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • ctx-core

    ctx-core core (ctx-core^2) libraries...used by @ctx-core/* libraries. The development monorepo has been moved to @ctx-core/dev

  • One huge benefit to VanJS is it's simplicity. It's easy to fork. I did it writing relementjs. I encourage others to fork it as well. VanJS is well written. You get a state management library (on the browser side) & a UI renderer in < 150 LoC. Very impressive. I encourage anyone interested to experiment with this. It has been very fruitful for me.

    In case anyone is interested, here are my forks.

    https://github.com/relementjs/relementjs

    https://github.com/rmemo/rmemo, which exports https://github.com/ctx-core/ctx-core/tree/main/rmemo

  • htm

    Hyperscript Tagged Markup: JSX alternative using standard tagged templates, with compiler support.

  • The preact team also dislikes transpiling jsx so they've developed an alternative using tagged template literals: https://github.com/developit/htm

  • rmemo (Reactive Memo)

    Tiny Reactive Memo + Signal library

  • rebuildjs

    Reactive esbuild...simple hackable alternative to vite for Multi Page Apps

  • relysjs

    Reactive Web app server focusing on MPAs with a simple server route & browser build api...uses Bunjs, Elysia, ESBuild, rmemo, & ctx-core

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • rmemo

  • One huge benefit to VanJS is it's simplicity. It's easy to fork. I did it writing relementjs. I encourage others to fork it as well. VanJS is well written. You get a state management library (on the browser side) & a UI renderer in < 150 LoC. Very impressive. I encourage anyone interested to experiment with this. It has been very fruitful for me.

    In case anyone is interested, here are my forks.

    https://github.com/relementjs/relementjs

    https://github.com/rmemo/rmemo, which exports https://github.com/ctx-core/ctx-core/tree/main/rmemo

  • Mithril.js

    A JavaScript Framework for Building Brilliant Applications

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts