r/javascript • • Mar 23 '26

Next.js 16.2: AI Improvements

Thumbnail nextjs.org
0 Upvotes

r/javascript • • Mar 23 '26

Subreddit Stats Your /r/javascript recap for the week of March 16 - March 22, 2026

1 Upvotes

Monday, March 16 - Sunday, March 22, 2026

Top Posts

scorecommentstitle & link
16291 commentsPetition: No AI code in Node​.​js Core
2726 commentsWe're building a better rich text editing toolkit
278 commentsI rebuilt Backbone.js without jQuery, Underscore. Now it has Classes, Typescript and ES modules
224 commentsMoltenDB: The Embedded Database for the Modern Web
2018 commentsEdge.js: Running Node apps inside a WebAssembly Sandbox
176 commentsIntroducing Revise.js – A foundational library for building contenteditable-based web text editors
136 commentsI’m building a Unix-like OS for the browser
1226 commentsI needed a tiny frontend framework with no bloat, so I built a 1.7kb one
1112 commentsBonsai now has context-aware autocomplete for expression editors - built for rule builders and admin tools
1015 comments@wcstack/state – reactive state in plain HTML with no build step

Β 

Most Commented Posts

scorecommentstitle & link
334 comments"Vite+ is kinda underwhelming" - a comprehensive review of the new release
831 commentsORM Comparison (2026)
625 commentsGea – The fastest compiled UI framework
617 commentsMandelbrot.js – Fractal Explorer in WebGL with Quad-Trees and Double-Emulation
115 comments[AskJS] [AskJS] writing a complex web app's frontend using only vanilla JavaScript (no frameworks)

Β 

Top Ask JS

scorecommentstitle & link
46 comments[AskJS] [AskJS] Tools to Learn JS (as a beginner)
25 comments[AskJS] [AskJS] What are your favorite open-source projects right now?
18 comments[AskJS] [AskJS] Making an SVG interactable

Β 

Top Showoffs

scorecomment
1/u/BartWaardenburg said fallow - Rust-native dead code, duplication, and circular dep detection for JS/TS. Built to keep LLM-generated codebases from rotting. If you use Claude Code, Copilot, Cursor, or any AI coding to...
1/u/lacymcfly said Been working on updating CrossOver, a crosshair overlay app built with Electron. It's been around for a few years (1,100+ stars on GitHub) and I just finished upgrading it from Electron 12 to ...

Β 

Top Comments

scorecomment
168/u/hyrumwhite said a 19k loc commit PR should be dismissed out of hand. Even if it’s flawless, no one can wrap their head around that many changes.Β 
65/u/Militop said 19k is insane, disrespectful. How can you expect someone to have enough time to review that? No real devs would send 19k loc. If there is a catastrophe happening because of this, who is going to be r...
58/u/justinc1234 said The issue isn't AI generated code and this is a knee jerk reaction. Whether the PR was AI generated or not, 19k LoC is poor PR practice. Just instruct the author (LLM or human) to breakdown th...
46/u/6086555 said I didn't know people had such strong opinions on prettier, for me it's always been mostly fine
40/u/kitsunekyo said i dont know if thats just clout farming, but why do we need a petition for that? is anyone of the maintainers with merge permissions insane enough to merge such a monstrosity? agentic development is ...

Β 


r/javascript • • Mar 23 '26

ArrowJS 1.0: a tiny, performant, no-build-step-required UI framework. Now with WASM sandboxes for safe execution of agent-generated UIs.

Thumbnail arrow-js.com
0 Upvotes

r/javascript • • Mar 23 '26

agentmarkup: Vite/Astro plugin that makes your site machine-readable for AI agents at build time

Thumbnail github.com
0 Upvotes

r/javascript • • Mar 22 '26

I built a tiny utility to know when your form is dirty

Thumbnail everythingfrontend.com
4 Upvotes

Works with native HTML forms and controlled state (React, Vue, Svelte). Same API, same result. No React, no Lodash, no form library. Pure TypeScript class you drop into any project.


r/javascript • • Mar 22 '26

@wcstack/state – reactive state in plain HTML with no build step

Thumbnail github.com
11 Upvotes

Small experiment/library I built. This is not about a lighter template DSL. It’s about using paths as the contract between UI and state.

It makes plain HTML reactive with one module import:

<script type="module" src="https://esm.run/@wcstack/state/auto"></script>

<wcs-state>
  <script type="module">
    export default { count: 0, inc() { this.count++ } };
  </script>
</wcs-state>

<button data-wcs="onclick: inc">
  Count is: <span data-wcs="textContent: count"></span>
</button>

Open it directly in a browser and it works. No JSX, no virtual DOM, no bundler, no config. Bindings live in HTML via data-wcs, while state lives in <wcs-state>. Internally it uses Proxy-based path tracking, so updates only touch affected bindings. The main rule is: update the path directly (this.count += 1), not via a detached nested reference.

List iteration is written using the <template> tag.

<wcs-state>
  <script type="module">
    export default {
      users: [ { name:"Alice" }, { name:"Bob" }, { name:"Charlie" } ]
    }
  </script>
</wcs-state>

<template data-wcs="for: users">
  <div data-wcs="textContent: users.*.name"></div>
</template>

The * in users.*.name refers to "the current element." Since * is automatically resolved to the correct index on each iteration, you don't need to manage indices manually. Inside a loop, you can also use the shorthand notation .name.

<template data-wcs="for: users">
  <div data-wcs="textContent: .name"></div>  <!-- same as users.*.name -->
</template>

npm: @wcstack/state
Repo: https://github.com/wcstack/wcstack
Docs: https://github.com/wcstack/wcstack/tree/main/packages/state
Story: What If HTML Had Reactive State Management


r/javascript • • Mar 22 '26

Building a Legal Chatbot with OpenPolicy and AI SDK

Thumbnail openpolicy.sh
0 Upvotes

r/javascript • • Mar 22 '26

AskJS [AskJS] New to Javascript

1 Upvotes

I’m new to JavaScript and still learning the basics. What are some tips i should follow to improve my coding?


r/javascript • • Mar 21 '26

testoise - lazy, type-safe test variables for Bun, Vitest, and Jest (inspired by RSpec)

Thumbnail github.com
6 Upvotes

Built a small library that replaces the let + beforeEach reassignment pattern with RSpec-style lazy variables. Define with def, access with get. Variables evaluate lazily, cache per test, and dependents re-evaluate automatically when overridden in nested blocks. Fully type-safe with a suite wrapper for automatic TypeScript inference.

Zero dependencies, MIT licensed. Feedback welcome!


r/javascript • • Mar 21 '26

slot-variants: utility for component styling

Thumbnail npmjs.com
2 Upvotes

Hey everyone, I’ve been working for few months on a small library called slot-variants, for managing complex states in components with css utility classes, it’s inspired by class-variance-authority (CVA) and tailwind-variants (TV). I tried to take the best parts of both approaches and add some distinct features with a focus on ergonomic API and high performance (benchmarks included). The API is a superset of both CVA's and TV's API so the migration is pretty straightforward, in the case of CVA it's a drop-in replacement. The package also includes an AI agent guide how to use it, best practices and common patterns.

Features you'd expect from it:

  • Variants API (similar to CVA & TV)
  • Slots support (inspired from TV)
  • Full TypeScript support
  • Extendable to work with tailwind-merge

Distinct features:

  • Required Variants (this is why I started this library)
  • Presets (for grouping variants often used together)
  • Conditional default variants
  • LRU Cache (can be configured)
  • Can event replace classnames/clsx usages (added in latest version)

If you’re building design systems or complex UI components, I’d love feedback, ideas, or critiques. Still early but stable enough to use, happy to hear what the community thinks!


r/javascript • • Mar 20 '26

Petition: No AI code in Node​.​js Core

Thumbnail github.com
217 Upvotes

I posted this originally on r/node, but thought it might be deserve extra attention in bigger JavaScript community.

---

Hello everyone!

Some of you may remember me for my work on Node.js core (and io.js drama), but if not I hope that this petition resonates with you as much as it does with me.

I've opened it in response to a 19k LoC LLM-generated PR that was trying to land into Node.js Core. The PR merge is blocked for now over the objections that I raised, but there is going to be a Technical Steering Committee vote in two weeks where its fate is going to be decided.

I know that many of us use LLM for research and development, but I firmly believe that the critical infrastructure the Node.js is is not the place for such changes (and especially not at the scale where it changes most of the FS internals for the sake of a new feature).

I'd love to see your signatures there even if you never contributed to Node.js. The only requirement is caring about it!

(Also happy to answer any questions!)


r/javascript • • Mar 20 '26

MoltenDB: The Embedded Database for the Modern Web

Thumbnail github.com
25 Upvotes

On this beautiful day, as both hemispheres achieve perfect symmetry for the Spring Equinox, it felt like the right moment to launch a first major open-source project: MoltenDB.

It is an embedded JSON document database written from scratch in pure Rust that compiles to both a native server binary and a WebAssembly module running in the browser via OPFS.

How it started:

Basically curiosity to experiment with Rust and WebAssembly. Then realizing it may actually solve a real problem.

Coming from a web development background, this project was born out of everyday frustration with browser storage. Persistent storage often means fighting with IndexedDB’s clunky API or the strict capacity limits of localStorage. With the stabilization of the Origin Private File System (OPFS), building a real, high-performance database in the browser is finally a reality.

Furthermore, on the server side, quickly prototyping an end-to-end web app usually means spinning up a heavy separate backend and a standalone DB. Having one isomorphic engine solves that

Beyond the tech, there was a simple driving factor: the desire to finally finish a personal project and ship it to the world. So, straight from the GitHub graveyard.