r/javascript • u/Content-Set-1356 • 27m ago
r/javascript • u/AutoModerator • 6d ago
Showoff Saturday Showoff Saturday (November 21, 2026)
Did you find or create something cool this week in javascript?
Show us here!
r/javascript • u/subredditsummarybot • 4d ago
Subreddit Stats Your /r/javascript recap for the week of November 16 - November 22, 2026
Monday, November 16 - Sunday, November 22, 2026
Top Posts
| 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) |
Β
Most Commented Posts
Β
Top Showoffs
Β
Top Comments
Β
r/javascript • u/APTman1010 • 9h ago
KernelPlay JS v0.6.0 Released β Modular Architecture, Universal Renderer Cores & Decoupled Physics!
github.comI'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:
1. Universal Renderer Architecture
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.
2. Decoupled Physics Engine Core
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.
3. Future Physics Plugins
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.
4. Official TypeScript Support
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/ClickOk5811 • 3h ago
AskJS [AskJS] Utility functions named like verbs are the worst API design in JS libraries
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/Browhair3834 • 21h ago
Remote procedure calls for interactive applications
willybrauner.comr/javascript • u/sa2bin • 1d ago
Isoloop: event-loop isolation for JavaScript apps (0.1, open source)
isoloop.devIsoloop 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 • 1d ago
VinUI: copy-in UI components for HTML, React, Vue and Svelte, with a CLI and an upstream diff command
github.comr/javascript • u/fagnerbrack • 2d ago
The V8 JavaScript Runtime Undermined My Constant-Time JavaScript Library
soatok.blogr/javascript • u/Stupistic • 1d ago
AskJS [AskJS] Try this new JSON explorer and let me know what else can i make in changes in it
Hi I have built a json explorer and want a bit review of its current functionality and is it really helpfull at all or not ...
open for any criticsss
added link in comments thankss
r/javascript • u/JadeLuxe • 1d ago
Fix Dev Server Host Errors Behind an HTTPS Tunnel
instawormhole.comr/javascript • u/luruke • 2d ago
WebGL pen and a 6M-parameter model on the CPU, that predicts the next pen movement.
penna.luruke.comr/javascript • u/playcodenap • 2d ago
CodeNap - snap real Python, JavaScript and TypeScript code together, piece by piece, like a puzzle (free, no sign-up)
play.codenap.appHi! 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 • 2d ago
A Jupyter-style notebook for JavaScript and TypeScript: server code and browser code in one document, calling each other. Local, with a CLI, an MCP server and a debugger.
github.comThe 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 • 3d ago
Introducing the KernelPlay Web Scene Editor β Coming with KernelPlay JS v0.9.0
kernelplay-js.vercel.appI'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/RatioPractical • 3d ago
Complete Prompt for LLM free chatbot for any business use case based on DynaJS runtime
gist.github.comr/javascript • u/fkih • 4d ago
Bypassing iOS Safariβs 60 FPS Limit to Build Web Applications That Feel Native
rida.devr/javascript • u/theGlitchedSide • 4d ago
Diary Dev: Staxis Platform - Funds page and Documentation was improved
staxis.devStaxis 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 :)
r/javascript • u/jorgeurios • 4d ago
AskJS [AskJS] I tested concurrent download limits in PostgreSQL. Here's what happened.
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/AllThingsSmitty • 4d ago
Hot take: Sometimes three boring statements beats one clever expression
allthingssmitty.comSometimes 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/QuarterSilver5245 • 5d ago
Every scenario that triggers V8's "slow mode" for objects
yuval.hashnode.devV8 usually caches direct offsets to memory addresses of actual raw object property values - in a way that allows an optimized "Inline Caching" (IC). For some scenarios - they switch an object to "slow mode" - which uses a different structure to save those (a hash table instead of an array) - this affects the way it's cached on the IC (it forces an additional look-up via the hash-table) - they call it "Dictionary mode" (aka "Slow mode"). Having broad familiarity with the optimization techniques used internally in V8 - and knowing they generally avoid using hash tables - I recently learned about this additional mode and its implications - while working on an open-source project of mine - a client-side State library that heavily relies on native Prototype lookups for composition, and was intrigued to find out in what scenarios the engine decides to do the "switch".
I found out that it's possible in NodeJS (with a switch flag) - to expose internal functions amongst which are some that can test if an object is in 'slow mode' - so I asked an AI to create a test suite that tries to cover scenarios where a switch to 'slow mode' is made. The suite is new, it likely does NOT show a full coverage (I am still adding to it, occasionally) - and it doesn't aim to - if you have a reason to suspect a switch in your project - investigate it.
I keep updating it - itβs an ongoing research - if you know of an interesting scenario - or one that is/was used as a βtrickβ to trigger switch modes - reply with it- some of these were mentioned in replies here and were tested to show that current version exhibit different results - and they no longer work.
Due to the nature of these optimizations - V8 maintainers keeps updating/changing the paths they are implemented in - since I βm not on V8 team these changes gradually become
known to my attention since I published the post - so be aware this is an ongoing research.
There is a link to the github repo for it at the end of the article, plus a summary of the findings (being updated).
(*The article is NOT a deep-dive into the specifics or how the specific intrinsic optimizations are implemented in V8 - it gives a background why switching to the so-called 'dictionary mode' matters in abstract terms - It is introductory and aims to give enough background so any developer at any level can grasp what the trade-off actually is, so they can pay attention in their projects. I'm not an expert on all the different internal paths and choices of when the switch is actually made internally - so if you want to know about specific rationales for a given path - or if a path exist for specific scenarios - research it - though I encourage public questions in the thread because they give more insights - if I answer - it's because I was curious enough to look it up - and also this post will likely become a top result on search engines - so we and I might as well try to cover scenarios that are asked about - I am not an active V8 maintainer/developer! I doubt if there's any active V8 team member who can answer what exactly are all the paths as they are changed often between versions).
r/javascript • u/JadeLuxe • 5d ago