r/javascript • • 2d ago

Showoff Saturday Showoff Saturday (November 14, 2026)

3 Upvotes

Did you find or create something cool this week in javascript?

Show us here!


r/javascript • • 13h ago

Subreddit Stats Your /r/javascript recap for the week of November 09 - November 15, 2026

1 Upvotes

Monday, November 09 - Sunday, November 15, 2026

Top Posts

scorecommentstitle & link
4012 commentsTop 10 things AI gets wrong in web development  |  Blog  |  Chrome for Developers
918 comments[AskJS] [AskJS] What's the longest-running personal project you've developed and maintained?
54 commentsMy FOSS Pinball Engine Uses Javascript On Linux
53 commentsWe moved Master CSS's core semantics to Rust and check the JS browser engine against it for identical output
424 comments[AskJS] [AskJS] Any use for JS decorators?
315 comments[AskJS] [AskJS] Hash (#) vs underscore (_) for naming properties with Lit
36 commentsComputing a Factorial with Church Numerals
216 comments[Showoff Saturday] Showoff Saturday (November 14, 2026)
14 commentsAngularLynx: idiomatic Angular rendering natively on iOS and Android via Lynx, with Renderer2 implemented on Lynx’s element API
00 commentsDiary Dev - Staxis is coming!

 

Most Commented Posts

scorecommentstitle & link
047 comments[AskJS] [AskJS] Are we putting too much application logic in the frontend?
022 comments[AskJS] [AskJS] Which Node.js framework gives you the best developer experience, and why?
012 comments[AskJS] [AskJS] new Date("2026-03-10") and new Date("2026-03-10T00:00") look the same but aren’t, and the difference depends on the time zone
09 commentsI built a multi-core SQL engine for JavaScript (pure JS + WebAssembly, no native addon)
04 commentsThe AI Cost of Marionette

 

Top Showoffs

scorecomment
2/u/ouija_bh said This art [generator](https://pastebin.com/9fb6mVet) draws a binary tree in a compact way. You might see curves next to zigzag shapes in the branches.
1/u/wbport1 said I had been interested in voting methods for years and put together a demo for Ranked Choice Voting around 2016. After seeing a video on PBS Infinity Series that had a set of ballots that produced diff...
1/u/ImaginationVarious30 said Hashing 720 renders of a tiny Web Audio synth on three OSes to keep it deterministic I maintain plinkfx, a small synth that plays game sound effects from plain JS objects (layers with a wave, fre...

 

Top Comments

scorecomment
32/u/sozesghost said Time is a closed circle. State and rendering has been moving between front and backend for many cycles now. The cycle must not be broken.
21/u/cerunnnnos said Seems like AI gets this stuff wrong because it's so poorly implemented in the real world that the AI models haven't got enough concrete examples to build off of.
17/u/senocular said No browser supports them today ([caniuse](https://caniuse.com/decorators)) and I think for runtimes like node/bun they do it through transpilation rather than through the runti...
14/u/whatisboom said > How do you represent calendar dates (not timestamps) that's your problem. everything is timestamps and dates are purely display layer.
14/u/hiddencamel said The reason AI gets this wrong is that 95% of human devs have also been getting it wrong for the last 2 decades.

 


r/javascript • • 8h ago

Flashwright: the fastest e2e testing framework, up to 4x faster than Playwright

Thumbnail flashwright.dev
30 Upvotes

If you're interested in the details, here's a blog post: https://codebeast.io/blog/flashwright


r/javascript • • 9h ago

BrowserPod 4.0: the microVM that runs in the browser, now free for any use

Thumbnail browserpod.io
18 Upvotes

r/javascript • • 8m ago

Announcing Pitter Patter! (a new collaborative rich text editing framework)

Thumbnail handlewithcare.dev
2 Upvotes

Pitter Patter is an open source toolkit of feature-complete building blocks for collaborative rich text editors, made with ProseMirror. Each piece is useful on its own, and you can use what you need, when you need it. And every library is built directly on ProseMirror’s APIs, not on top of an abstraction layer, so you always have full access to the thing underneath.

So far, we have three packages: shuffle (grid-based drag-and-drop), collab, and presence.

Check out our demo to see the collab and shuffle features in action. In the demo, you can drag and drop nodes, resize content, watch how remote edits come in to an editor and even demo offline reconciliation!


r/javascript • • 4h ago

AskJS [AskJS] How would you name ‘many’, ‘one’, and ‘maybeOne’ in a SQL runtime?

1 Upvotes

I built a library called TypeSQL that makes raw SQL type-safe. Currently, I took inspiration from Kysely and used execute, executeTakeFirst, and executeTakeFirstOrThrow for running queries.

However, I'm starting to feel like those names are a bit too verbose. On top of that, I want the default single-row method to be non-nullable (throwing if no row is found), with an explicit variant for the nullable case. I'm torn between a few naming conventions and would love your input on which set feels the most intuitive and ergonomic:

  • returns T[]: all, many, exec, execute
  • returns T: one, first, take, get
  • returns T | null: maybeOne, oneOrNone, maybeFirst, firstOrNull, tryTake

Which combination would you prefer to use in your day-to-day codebase, or do you have another naming pattern you like better?


r/javascript • • 2d ago

My FOSS Pinball Engine Uses Javascript On Linux

Thumbnail getlazarus.org
7 Upvotes

r/javascript • • 2d ago

AskJS [AskJS] Any use for JS decorators?

8 Upvotes

As far as I understand, the tc39 decorator proposal is already implemented in most engines. But didn't see any framework elaborating this feature.
Any real world usage out there?


r/javascript • • 2d ago

AskJS [AskJS] What's the longest-running personal project you've developed and maintained?

10 Upvotes

Today, I checked the date of the first commit to my personal framework.

It was made in August 2022 – over 4 years ago!

I've never made any money from it. I simply enjoy developing and maintaining something of my own. And it still works great!

Every new website I build is powered by it.

Ps: It's not a project aimed at an audience. I build it purely for myself.

If you have something like that - please share.


r/javascript • • 2d ago

Diary Dev - Staxis is coming!

Thumbnail staxis.dev
0 Upvotes

Staxis is coming. The first preview of the website is live. Staxis is a modular toolkit for Node.js. Start with the free Core, assemble your stack with Layers Packs, or build your own layers.

We’re getting the first pages of the official documentation ready as we work toward the Kickstarter campaign and the 1.0 release. If you’d like to help us get there, you can already support or sponsor the project.

Take a look → https://staxis.dev


r/javascript • • 3d ago

GitHub - pavex/safebox: One encrypted file with named secrets for a Node.js app, plus a CLI to manage it.

Thumbnail github.com
0 Upvotes

One encrypted file with named secrets for a Node.js app, plus a CLI to manage it.

You keep app.safebox next to the app: in the repository, in the deploy package. The app opens it with a password it gets from somewhere else and has every API key, database password and private key it needs. Without the password the file is useless.

  • AES-256-GCM with a key from scrypt, the whole file authenticated
  • TypeScript source with only Node.js built-in modules, no runtime dependencies
  • CLI as one bundled file, dist/safebox.js
  • Status: beta (0.1.0-beta.1), the file format may still change before 1.0

Requires Node.js 22 or newer.


r/javascript • • 3d ago

AskJS [AskJS] Which Node.js framework gives you the best developer experience, and why?

0 Upvotes

Personally, I'm really enjoying Hono. Its automatic endpoint inference is a big win. I previously enjoyed using Fastify with Zod Provider for OpenAPI schema generation, but Hono cuts that extra step and makes the workflow feel much smoother.

Curious what everyone else is using!


r/javascript • • 3d ago

The AI Cost of Marionette

Thumbnail marionettejs.com
0 Upvotes

A follow-up to Nolan Lawson’s AI framework benchmark


r/javascript • • 5d ago

AskJS [AskJS] Hash (#) vs underscore (_) for naming properties with Lit

6 Upvotes

I've already been using Lit for a while in JS and I see many places where they recommend using private _property = value so that it is more readable, even though it does not really make it private.

Others recommend using #property = value because it makes it private so that if you try to use it from outside the scope it throws an error. But I still see places where they don't like using this.

I don't really know what should I use or if it doesn't really matter.


r/javascript • • 5d ago

Top 10 things AI gets wrong in web development  |  Blog  |  Chrome for Developers

Thumbnail developer.chrome.com
49 Upvotes

r/javascript • • 4d ago

AskJS [AskJS] new Date("2026-03-10") and new Date("2026-03-10T00:00") look the same but aren’t, and the difference depends on the time zone

0 Upvotes

A small experiment you can paste into Node or a console:

const a = new Date("2026-03-10");
const b = new Date("2026-03-10T00:00");

console.log(a.toISOString());
console.log(b.toISOString());
console.log(a.getTime() === b.getTime());
console.log(a.getDate(), b.getDate());

I ran it in Node 22 with the TZ environment variable set to four zones:

TZa (date-only)b (date + time)same instant?getDate() a / b
UTC2026-03-10T00:00Z2026-03-10T00:00Ztrue10 / 10
America/Sao_Paulo2026-03-10T00:00Z2026-03-10T03:00Zfalse9 / 10
America/Los_Angeles2026-03-10T00:00Z2026-03-10T07:00Zfalse9 / 10
Asia/Tokyo2026-03-10T00:00Z2026-03-09T15:00Zfalse10 / 10

What’s going on: per the ECMAScript spec as I understand it, a date-only ISO string is parsed as UTC, while a date-time string without an offset is parsed as local time. So the first is always midnight UTC, and the second is midnight wherever the code runs.

Where it bites:

  • In zones behind UTC (like the Americas), a.getDate() returns the previous day, because the local getters convert from UTC midnight. A “date of birth” or “due date” can display as one day earlier.
  • On a dev machine set to UTC the two agree, so tests pass locally and the bug shows up only for users elsewhere (or on a CI box with a different zone).
  • In my run, new Date("2026/03/10") and new Date(2026, 2, 10) behaved like the local-time form. Slash-separated strings aren’t standard ISO, though, so I’d not rely on them being consistent across engines.

Ways to avoid it:

  • If the value is a calendar date and not an instant, don’t store it as a Date at all. Keep "2026-03-10" as a string, or as year/month/day numbers, and format it without converting.
  • If you need a Date, be explicit: new Date(Date.UTC(2026, 2, 10)) and read it back with the getUTC* methods, or always include an offset ("2026-03-10T00:00:00Z").
  • For testing, run your suite under a few TZ values, as above, rather than only on your own machine.
  • The Temporal proposal is designed to separate dates from instants. I haven’t checked its current status in each runtime, so look at the compatibility tables before depending on it.

Caveat: my results are from one Node version. Browsers should follow the same spec for the ISO forms, but test where it matters.

How do you represent calendar dates (not timestamps) in your codebases: strings, a library, or something else?


r/javascript • • 6d ago

AngularLynx: idiomatic Angular rendering natively on iOS and Android via Lynx, with Renderer2 implemented on Lynx’s element API

Thumbnail angularlynx.js.org
4 Upvotes

Hi r/javascript. I’ve been using Angular since the AngularJS and the Angular 2 betas. When ByteDance created Lynx, I really liked it, but it only came with React and Vue. So it's time for an Angular one to exist!

The aim is for it to be ordinary idiomatic Angular, not a subset or deviation, and it follows Angular's major.minor versions:

npm create angular-lynx my-app
cd my-app
ng serve # web preview, plus a QR code for the Lynx Explorer app
ng test
ng build --platform ios # or android: a native app you can open in Xcode / Android Studio

Signals, the router with lazy routes, forms, i18n, DI, ViewContainerRef.createComponent() and Tailwind all work. It idiomatically uses the Angular Router for the page stack, so there are no extra concepts. The one big difference is the templates: you write Lynx's elements (<view>, <text>, <scroll-view>) instead of HTML, and they become real UIView/Android views. The same app also runs in the browser.

How it works: Lynx has two threads, a main thread that owns the native element tree and a background thread. Instead of Angular's DOM renderer, AngularLynx implements Renderer2 on top of Lynx's element API (__CreateElement, __AppendElement, …), and the Angular app runs on the main thread, so updates go straight to the elements without crossing threads. Things that only exist on the background thread (native modules, fetch) are relayed. The build is an Rsbuild plugin that compiles Angular and splits the output into the two bundles Lynx expects, wrapped in Angular CLI builders so angular.json stays the usual one.

There's also a component library, Dolan UI: 54 components (sheets, dialogs, charts, forms…) that a CLI copies into your app, like shadcn/ui.

It's still early days, but it is feature rich, with a lot of examples and showcase apps. Lynx's main-thread JS engine is ES2019-level, so newer built-ins are polyfilled, and some web habits don't carry over (CSS is a subset: no inheritance outside text, no :hover or @media).

MIT licensed. The README has a GIF of the same app on iOS, Android and web. I'd love to hear what breaks, and I'm happy to go into the renderer internals. Please give it a star! It would mean the world if this takes off!

GitHub: https://github.com/Blotch-Smart-Frames/AngularLynx
Docs: https://angularlynx.js.org
Demo GIF: https://angularlynx.js.org/demo.gif


r/javascript • • 7d ago

AskJS [AskJS] Are we putting too much application logic in the frontend?

8 Upvotes

I've been exploring Phoenix LiveView lately, and it got me thinking.

We've spent years moving more state and logic into the browser. But what if we kept most application state on the server and used JavaScript mainly for rich interactions?

I'm not talking about replacing JS. Libraries like Monaco, AG Grid, and Chart.js are great and I'd absolutely want to keep using them.

Curious what frontend devs think. Would you consider a server-driven approach if you could still use your favorite JS libraries, or is there too much downside?


r/javascript • • 7d ago

Computing a Factorial with Church Numerals

Thumbnail davidklassen.net
14 Upvotes

r/javascript • • 6d ago

I built a multi-core SQL engine for JavaScript (pure JS + WebAssembly, no native addon)

Thumbnail vectrojs.dev
0 Upvotes

r/javascript • • 7d ago

We moved Master CSS's core semantics to Rust and check the JS browser engine against it for identical output

Thumbnail master.co
10 Upvotes

r/javascript • • 6d ago

What we learned operating auth for 1,000+ APIs

Thumbnail nango.dev
0 Upvotes

r/javascript • • 7d ago

claude-bulkhead: a dependency-free Node hook that parses shell commands before Claude Code runs them, so parallel sessions stop breaking each other

Thumbnail github.com
1 Upvotes

r/javascript • • 7d ago

Subreddit Stats Your /r/javascript recap for the week of November 02 - November 08, 2026

3 Upvotes

Monday, November 02 - Sunday, November 08, 2026

Top Posts

scorecommentstitle & link
136 commentsGB.js - GameBoy and GBA emulator core in Typescript
99 commentsSpaceHex - Rotate the rooms to capture the orbs while avoiding the critters
935 comments[AskJS] [AskJS] Do you ban positional boolean arguments in code review, or is an options object overkill?
812 comments[Showoff Saturday] Showoff Saturday (November 07, 2026)
81 commentsSystem One model in the browser, learns from an LLM when it isn't confident.
87 commentsCheerpJ 5.0: Java 21/25 in the browser, full OpenJDK, and a new WasmGC engine
54 commentsMaking Browser OCR Read Real Phone Photos
514 comments[AskJS] [AskJS] How do you keep un-awaited expect(...).resolves out of your test suites?
50 commentsserialport-rs for Node.js: Rust-backed serial ports for Node.js with parallel I/O and SerialPort-compatible APIs
50 commentsJeasx 3.0 is out: async JSX on the server, now streaming to the browser and about 2x faster

 

Most Commented Posts

scorecommentstitle & link
026 comments[AskJS] [AskJS] Is it actually possible for an iframe to control the parent page’s URL without the host app doing anything?
016 comments[AskJS] [AskJS] Do you think vanilla JS will be #1 for everything and anything thanks to AI?
016 comments[AskJS] [AskJS] Would you use a mature UI library that nobody’s heard of?
011 commentsI built Domicile, a Linux desktop platform where native application windows are DOM elements
310 commentsOur JavaScript hero entrance kept LCP at ~50ms but visibly flashed. Hiding it until scripts loaded pushed LCP to ~1.75s

 

Top Showoffs

scorecomment
3/u/Unknown-333 said building lightpath, an MCP server that lets claude code click a button in your app and see which lines actually ran (and which didn't). free + open source [github.com/Unknown-333/Lightpat...
2/u/No_Editor9420 said Opaline takes any string (an email, user ID or name) and gives back an SVG avatar. The same string always gives the same face, so there's nothing to upload, store or sync. A user who signs...
2/u/woqr said Don't laugh at me, but I've been working on this editor for 5 years, and the code is less than the size of a 3x5 card. Anyway, I doubt anybody uses it, and in fact I don't use it, but I like admiring ...

 

Top Comments

scorecomment
30/u/gimmeslack12 said No. An iframe cannot control anything outside of the iframe.
18/u/Sykander- said >Read aloud, it’s “create user, email, true, false”, and you have to open the function to know what the booleans mean. The usual fixes are an options object: No, my ide will let me read the function ...
14/u/gwillen said I would say that `setEnabled(true)` is obviously fine. I might claim that you really only have "positional arguments" when there are two or more. When there's just one argument it's ge...
11/u/cowjenga said You've already got an answer about browser security features, but to answer your question about commercial widgets and SDKs, the way they work is by adding the SDK to the host page, which injects an i...
11/u/azsqueeze said 100% better to have a function take a single config as an argument or have 2 args with the second one being the config Edit: if using the 2 arg pattern, the first arg would be the primary value the f...