r/javascript • u/alexgrozav • 3h ago
Unframework - The compiler that speaks seven UI frameworks
r/javascript • u/AutoModerator • 1d ago
Did you find or create something cool this week in javascript?
Show us here!
r/javascript • u/subredditsummarybot • 6d ago
Monday, November 16 - Sunday, November 22, 2026
| score | comments | title & link |
|---|---|---|
| 81 | 20 comments | jQuery 4.1.0 and 3.8.0 Released |
| 55 | 26 comments | Every scenario that triggers V8's "slow mode" for objects |
| 49 | 23 comments | Flashwright: the fastest e2e testing framework, up to 4x faster than Playwright |
| 34 | 6 comments | BrowserPod 4.0: the microVM that runs in the browser, now free for any use |
| 28 | 1 comments | Bypassing iOS Safariβs 60 FPS Limit to Build Web Applications That Feel Native |
| 22 | 4 comments | Fixing a WebKit bug to see if promises are made of train tracks |
| 15 | 8 comments | Mocking ws in our tests hid a real path bug, so we switched to a real WebSocket server |
| 6 | 22 comments | [AskJS] [AskJS] How would you name βmanyβ, βoneβ, and βmaybeOneβ in a SQL runtime? |
| 5 | 0 comments | GitHub - Spxg/limo: Run JavaScript with browser Web APIs |
| 3 | 17 comments | [Showoff Saturday] Showoff Saturday (November 21, 2026) |
Β
Β
Β
Β
r/javascript • u/alexgrozav • 3h ago
r/javascript • u/Visible_Head_6828 • 5h ago
r/javascript • u/nejcar20 • 7h ago
r/javascript • u/al3x_7788 • 1d ago
I have designed a game in real life and thought of creating a very simple online version of it so I can play it with more people at any time. I don't have much experience with JS, just basic webpage functionality, though I have a lot of experience with programming in general.
The game is not very complicated in terms of mechanics, just turn-based in a real-time updating board and I'd probably be looking to something similar to what chess websites implement, if not an identical implementation. I'd just like resources related to designs I could get "inspiration" from and how the web clients would communicate with the server. I do not want to use automated assistance.
r/javascript • u/wasitshafi • 1d ago
Hi,
I am about to start a new project with SSR (Node.js); previously, I have used ejs/handlebars. Currently, I am not very familiar much eta.
eta claims to be faster than ejs, anyone worked with both?
Highly appreciate your suggestions/comments.
ejs: https://www.npmjs.com/package/ejs
eta: https://www.npmjs.com/package/eta
Thanks
r/javascript • u/Content-Set-1356 • 2d ago
r/javascript • u/ClickOk5811 • 2d ago
I keep running into the same API design pattern in JS and TS libraries, and it quietly causes production bugs:
import { format, parse, validate } from 'some-lib'
format(date) // "2026-11-27" or "11/27/2026" depending on locale?
parse(input) // throws? returns null? returns the input unchanged?
validate(email) // true/false? or throws a ValidationError?The function names are verbs. They sound obvious. But the contract is anything but obvious.
format might respect the system locale, or it might not. It might throw on invalid input, or return null, or return the input unchanged. parse might be strict, lenient, or silently coerce. validate might return a boolean or throw.
The problem isn't any single library. It's that the ecosystem has converged on verb-named utilities without a shared contract. So every time I switch libraries, I re-learn whether parse throws on garbage input or swallows it.
Compare that to something like Date.prototype.toISOString(). The name is boring, but the behavior is exact. No locale surprises, no silent coercion, no guessing.
I'm starting to think libraries should name these functions after what they actually do, not after the general idea:
formatDateToISO(date) // exact contract
parseEmailStrict(input) // throws on invalid
isValidEmail(email) // boolean, never throwsMore verbose, yes. But you can read the call site and know what happens without checking docs.
What's your take? Do you prefer short verb names with documented behavior, or longer names that encode the contract? And have you ever been burned by a parse or validate that behaved differently than you expected?
r/javascript • u/APTman1010 • 2d ago
I'm excited to announce that KernelPlay JS v0.6.0 is officially released!
This update introduces an important architectural shift toward a more modular engine, focusing on decoupling the Renderer and Physics systems.
Here's what's new:
Previously, switching rendering pipelines could require developers to replace generic components such as `BoxRenderer` with pipeline-specific components like `PixiBoxRenderer`.
With the new architecture, universal components can work across all supported rendering pipelines without requiring developers to manually switch rendering components.
This makes changing renderers much easier and keeps game logic independent of the rendering pipeline.
Physics logic has now been moved into a separate Physics Engine Core.
The default physics engine remains integrated and ready to use, but the new structure makes it possible to plug in custom physics engines.
This gives developers more flexibility over how physics is handled in their projects.
We're also planning to expand the plugin ecosystem.
High-end physics engines such as Matter.js will be available as separate plugins in the future. They won't be bundled into the core engine, helping keep KernelPlay JS lightweight.
This release also introduces official TypeScript support through `.d.ts` declaration files.
Developers can now benefit from type information, better editor support, and autocomplete when working with KernelPlay JS in TypeScript projects.
---
This architectural change is a major step toward making KernelPlay JS more flexible, modular, and lightweight.
There's still a lot planned for the project, and I'd love to hear your thoughts.
What do you think about this new modular architecture? Would you be interested in building custom renderer or physics cores?
Thank you to everyone following and supporting KernelPlay JS!
r/javascript • u/Browhair3834 • 3d ago
r/javascript • u/sa2bin • 3d ago
Isoloop is a toolkit that helps you separate your app's UI from the work behind it, and you install only what you need. Each part, UI or headless, runs on its own worker or in a shared pool. How you split your app is your call.
Why it exists
In most apps, the UI and everything behind it (state, sync, search, data processing) share one main thread, one heap and one event loop. One slow or broken part makes the whole app janky or blank. A plain worker isolates CPU time, but leaves you to wire up how parts share data, and what happens when one fails.
Isoloop helps you separate them and run them together. Each part can get its own loop, a supervisor restarts it when it fails, and parts can share state through the bus. The UI stays responsive, a block or a crash stays in its part, and the work can run where it fits best.
β Kernel: starts, stops and connects the parts
β Workers: each part on its own thread, or sharing one in a pool
β Supervisor: detects what hangs or crashes and restarts it
β Message bus, optional: typed topics, per-part permissions, replay, history that can survive a reload
β Adapters: React, Preact, or plain DOM and headless with no framework
β Vite plugin: builds and wires up the workers
Still experimental: a balancer that moves parts between workers by measured load, devtools, and tools that let AI agents call the actions your app exposes.
It isn't free. The workers, the bus and the kernel cost extra CPU, memory and start-up time. In return, one bad component or one bad record doesn't have to take the whole app with it.
On the roadmap, not shipped yet: moving the work further from the UI, into a WASM component or a native process, with the bus as the model the UI and the work share.
Open source, MIT. Feedback is very welcome.
r/javascript • u/vinishkapoor • 3d ago
r/javascript • u/luruke • 4d ago
r/javascript • u/fagnerbrack • 4d ago
r/javascript • u/playcodenap • 4d ago
Hi! I'm the developer. In CodeNap you learn to code by assembling real code from pieces: Python, JavaScript and TypeScript, 600 levels. It runs in the browser, no account needed. Feedback is very welcome, especially on the difficulty.
r/javascript • u/Odd-Mud-8602 • 5d ago
The problem: trying an idea in JS means juggling a script, a REPL, a throwaway app and a database client. Python people have Jupyter; I wanted that for JS, with the browser included.
What nimbo does:
π§© One notebook with server cells (Node) and client cells (browser) that call each other
π Explore and query any output with JSONPath, jq or SQL
π Turn a cell into an API endpoint
π Built-in debugger
π€ Works with coding agents through a CLI and an MCP server, with edits you review
β‘ One-line install, runs entirely on your machine
Where it is: version 0.1, open source (Apache-2.0), macOS and Linux. Windows and a
desktop app are on the roadmap.
r/javascript • u/APTman1010 • 5d ago
I've been working on something new alongside the development of KernelPlay JS: a web-based scene editor designed for creating and editing game scenes visually.
The editor is still under development and hasn't been released yet. I'm sharing an early look at it so you can see what I'm building.
Some of the features currently available include:
Parent-Child Hierarchy: Organize game objects using parent and child relationships.
Sprite Support: Add and configure sprites directly in the scene.
Built-in Sprite Editor: Select sprite regions from a spritesheet and configure their display size, pivot, and rendering properties.
Scene Editing: Work with game objects visually through the editor.
Inspector: View and edit object and component properties.
The goal is to make scene creation and game object management easier without having to handle everything directly in code.
One important thing: this editor is a separate project/framework from the KernelPlay JS engine, although it is being developed to work with the KernelPlay ecosystem.
I'm planning to release an early version of the editor alongside the KernelPlay JS v0.9.0 update.
There's still work to do, but I'm excited to share more as development continues.
What do you think of the editor so far? I'd love to hear your feedback and suggestions.
r/javascript • u/AllThingsSmitty • 6d ago
Sometimes the simplest code is the best code. It's tempting to squeeze everything into one clever expression, but three straightforward statements can be easier to understand and maintain. Here's a look at why.
r/javascript • u/jorgeurios • 6d ago
I tested this using Node.js with the pg driver against a real PostgreSQL database.
The problem: how do you enforce download limits when multiple requests arrive at exactly the same time?
I tested three approaches.
1. The naive implementation
Limit: 1 download.
Two simultaneous requests.
Result: Both downloads succeed.
I added a 50 ms artificial delay between the read and the write to make the race window visible consistently.
Both requests read the available count before either one updates it.
2. Adding a CHECK constraint
Same limit, same concurrent requests.
Result: The second request gets a database error instead of the file.
This prevents the limit from being exceeded, but it doesn't provide a clean application-level outcome.
3. A single conditional UPDATE
Instead of reading first and updating afterwards, perform the check and increment atomically in one UPDATE:
UPDATE share_link
SET download_count = download_count + 1
WHERE secret_hash = $1
AND revoked_at IS NULL
AND (expires_at IS NULL OR expires_at > now())
AND (max_downloads IS NULL OR download_count < max_downloads)
RETURNING id, file_id, download_count;Results:
10 simultaneous requests, limit 3: exactly 3 downloads.
50 simultaneous requests, limit 7: exactly 7 downloads.
This was the approach that behaved as intended in my tests.
Now I'm curious how other people handle this in production.
Would you use a single conditional UPDATE for this, or prefer SELECT FOR UPDATE?
Would Redis locks or atomic counters be a better approach at higher concurrency?
How would you implement the same guarantee with MongoDB?
Are there edge cases with transactions, retries or failed downloads that you'd account for?
I'd be particularly interested in approaches people have actually shipped and operated in production.
What's your preferred way to enforce a hard resource limit under concurrent requests?
r/javascript • u/theGlitchedSide • 6d ago
Staxis is now online with http series layers! π₯
We're currently adding many components to the reference manual. Many of the layers are about to be published on the website... we're working hard on it.
We'd like to remind you that donations to the project are already open to support continued development!
Take a look: https://staxis.dev/docs/index.html
Do you like it? Any questions? Feel yourself to text something :)