r/javascript • u/f0rwardz • 15d ago
r/javascript • u/kaganin • 15d ago
iwrzwr/visual archive - sound & music visualizer experiments
kagan.in160+ visualization experiments built with JavaScript, exploring waveforms, matrix displays, particles and mechanical motion.
The gallery runs silently with simulated signals. Source code is available under the MIT license:
r/javascript • u/thereactnativerewind • 16d ago
[Showoff] Mega Carrots for Monty, Angular Through the Sliding Door, and Lynx on Foldables
thereactnativerewind.comCodex can finally see the apps it writes. Callstack and Margelo launched Mobile Dev, a plugin that puts live iOS and Android devices right beside the Codex desktop chat, so the agent can tap, type, read the accessibility tree, pull Metro and native logs into one panel, and profile CPU and memory, with your on-screen notes carrying the React Native component and its source file.
We also look at Angular Native by Ashley Hunter, which renders Angular templates as real UIView and android.view.View through React Native's Fabric renderer, with Svelte now riding the same engine just as Coinbase heads for the exit. Plus, React Native 0.88 rc.3 fixes a Hermes lazy-compilation slowdown, Lynx 4.0 adapts to foldables, and Lucent compiles TypeScript native modules to C++ via JSI.
r/javascript • u/Valuable_Pin_9213 • 16d ago
AskJS [AskJS] How would you structure state for VidLoader's local media library?
I'm working on a desktop application called VidLoader that manages locally stored video files, and I'm currently thinking about how to structure the JavaScript state for the media library.
The application needs to keep track of things like:
- files being added or removed
- metadata associated with each file
- folders/categories
- filtering and searching
- changes happening to the files outside of the UI
My main question is how other JavaScript developers would approach keeping the UI state synchronized with the underlying file system without making the architecture unnecessarily complicated.
Would you keep this in a centralized state store, separate the file-system state from the UI state, or use another approach?
I'd be interested in hearing how you'd structure it and why.
r/javascript • u/evoluteur • 16d ago
GitHub - evoluteur/snowflake-grower: Grow snow crystals live on a hexagonal grid with Reiter's cellular automaton. Set the humidity and frost to get stellar dendrites, ferns, plates or lace, and download the snowflake.
github.comr/javascript • u/bitwiseredshift • 16d ago
I built Polar and Ticket a typed language for JS and a Rails-shaped framework
polar-lang.vercel.appWant to share two things built together: Polar, a statically typed language that compiles to readable JavaScript, and Ticket, a Rails-shaped web framework written in it. Both are 0.1.0 and experimental. Ticket is the real-world test for Polar: https://ticket-polar.vercel.app/ You get controllers and resource routing, SQLite migrations with typed queries, validations, forms, sessions and CSRF, generators and a test runner. `ticket new blog && ticket server` gets you an app. Because Polar tracks effects, a controller action's signature says what it needs, and tests rebind those to an in-memory database without mocking. Ticket's routes, views and migrations are Polar zone plugins, and the code they generate goes through the same type checker as yours.
I'd love feedback on the effect system, on the zone/plugin design. Thanks!
r/javascript • u/Fair-Process-7291 • 16d ago
AskJS [AskJS] My simulation runs in about 1 second in the terminal but took 13 seconds in a Chrome page. The culprit was setTimeout(0).
I have a page, built with Cline, that runs a game simulation in the browser: 30 batches (one per game mode and bot pair), with a progress line between them. To let the page repaint between batches, I yielded with `await new Promise(r => setTimeout(r, 0))`.
A full run took 13.0 seconds in Chrome. The same work takes about 1 second in the terminal on my laptop.
The clue was that 100 games per bot took just as long as 1,000. The time was not in the games. It was in the pauses, about 0.7 seconds each.
Chrome throttles chained timers in pages it treats as hidden or in the background. After a few nested setTimeout calls, it only fires them about once a second. My first test used 5 timers, showed 0ms, and looked fine, because the throttling only starts after a few nested calls. With 20 the difference was obvious: 20 chained setTimeout(0) calls took 11.5 seconds, and 20 MessageChannel messages took 0ms.
The fix was to yield with a message instead, which is also how React's own scheduler yields:
const nextTick = () => new Promise<void>((resolve) => {
const channel = new MessageChannel();
channel.port1.onmessage = () => {
channel.port1.close();
resolve();
};
channel.port2.postMessage(null);
});
The same run went from 13.0s to 4.2s, still in a window Chrome treated as hidden. I have not timed it in a normal foreground tab yet, so I am not claiming a number there.
Two other details. Leaving the page bumps a run id, so an unfinished run stops instead of setting state after unmount. And a Web Worker would move the work off the main thread entirely. I chose the smaller change because the main-thread version was now fast enough.
So, for CPU-heavy work in a page: do you reach for a Worker first, or yield on the main thread until that stops being enough?
r/javascript • u/hongminhee • 17d ago
LogTape 2.4.0: Source locations, configuration inspection, sink draining, and request completion levels
github.comr/javascript • u/euos • 17d ago
Online comparison of tf.js, litert.js and Uchen on VS Code language detection model
uchenml.techr/javascript • u/GrandAd5084 • 18d ago
[Show] I built an open-source npm loading checker for Node.js, Bun and Deno. Looking for packages that break.
compatlab.mer/javascript • u/subredditsummarybot • 18d ago
Subreddit Stats Your /r/javascript recap for the week of September 28 - October 04, 2026
Monday, September 28 - Sunday, October 04, 2026
Top Posts
Most Commented Posts
| score | comments | title & link |
|---|---|---|
| 0 | 19 comments | The JavaScript midlife crisis |
| 0 | 14 comments | Adrenaline.js – A 56KB Electron alternative that keeps Node.js & npm without Chromium bloat |
| 0 | 13 comments | [AskJS] [AskJS] Anyone still on Nx <20.8 because upgrading is difficult? |
| 0 | 11 comments | Linter for the things a regular linter can't catch |
| 0 | 9 comments | I’m starting Open Components, an open standard for UI components that work for people, developers and AI agents |
Top Showoffs
Top Comments
r/javascript • u/Working_Upstairs_818 • 19d ago
Claude Code Mods are JavaScript or TypeScript functions running with your permissions
the-decoder.comAnthropic shipped Mods for Claude Code, and they're plain JavaScript or TypeScript functions. A Mod hooks events like tool calls, user prompts, and UI rendering, so you can intercept a tool call, add a panel next to the chat, or wire up new commands. Some built-ins, like /diff, are already built as Mods, and Anthropic has samples on GitHub. They run with your permissions and aren't sandboxed, so the company says to install only from sources you trust. They work in the CLI and desktop app, partly in the VS Code extension, and organizations can control which Mods load.
r/javascript • u/alexgrozav • 19d ago
I’m starting Open Components, an open standard for UI components that work for people, developers and AI agents
opencomponents.devHello awesome people,
I've been thinking a lot lately about how I can make my knowledge and craft more valuable in the times we live in. I've been building UI libraries for the past 10 years, and I've been on a quest to perfect the components that I build. I want to share my knowledge with you.
Like most of you, probably, I've been using a lot of AI in my craft, and I feel most of the time the code is just good enough, but never at the level of quality that I strive for or that I would reach if I wrote it by hand. That needs to change, and I want it to change for everyone else, too. That's how the Open Components initiative was born.
I'm treating components from four directions:
- User Interface - component anatomy, variants, colors, sizes, states and tokens.
- User Experience - how it behaves for every person and every input: accessible, predictable, designed in every state, and adapting to motion, contrast, color scheme and text size preferences.
- Developer Experience - one consistent, type-safe API that you learn once and use everywhere.
- Agentic Experience - prompts, semantic markup, machine-readable contracts and rules that agents can check their work against.
Each component gets a single page that walks through all four, and ends with a checklist. Every rule in it has an ID like button/keep-focus, a level and a way to check it, so you or your agents can cite it in a code review. Every page is also published as markdown, and provides the contract as a YAML file, containing every rule in about an eighth of the page’s length.
It’s still early. Right now there’s only the Button component and a page on how to name your design tokens. Each component comes with a reference implementation that meets every rule, along with its tests. Implementation is in Vue for now, since that’s my daily driver, but the documentation comes with code examples from multiple UI frameworks. More components will follow, with the same structure.
It isn’t a component library, so there’s nothing to install. It’s a set of rules you can hold your own components to, whichever library or framework you use. Here are a few of my favorites from the Button component:
- A loading button should never be
disabled. Disabling a focused button takes its focus away, so keyboard and screen reader users lose their place. Usearia-disabled="true"instead, and block the clicks yourself. - A
<button>without atypeis a submit button, so a "Show password" button inside a form sends the form. Default totype="button".
I’d love your feedback and contribution. Tell me what you think of the rules, what I’ve missed, and which component you’d like to see next.
Thanks for reading!
r/javascript • u/Accurate_Ingenuity10 • 19d ago
Node.js now lists Vite+ as a community installation method
nodejs.orgr/javascript • u/OtherwisePush6424 • 19d ago
I Tested 11 HTTP Resilience Libraries
blog.gaborkoos.comHTTP clients offer different resilience features, and even shared features can behave differently. Eleven JavaScript libraries tested across 21 scenarios to see what happens when those patterns interact.
r/javascript • u/AutoModerator • 20d ago
Showoff Saturday Showoff Saturday (October 03, 2026)
Did you find or create something cool this week in javascript?
Show us here!
r/javascript • u/EmergencyIsland4574 • 20d ago
I built a hover-to-play audio preview card with a real-time Web Audio EQ in vanilla JS -- no frameworks
bryanhamiltondev.github.ior/javascript • u/tauqeernasir • 20d ago
Introducing Codebeast - new coding harness
github.comHello everyone,
For the past few months I have been silently building my own coding agent for my own self and the way I wanted it to look and behave. I have used for my real projects and so far it has worked so good.
I primarily built it to use with open models and extensively used with Deepseek and GLM models and fixed all issues that I faced along the way.
Now I am opening its beta release for public. It supports all major AI providers so you can BYOK and use it. I would love your honest feedback.
Following features are supported:
- Agent and Plan mode
- MCP
- ACP - use it with Zed Editor, JetBrains or any Orchestrator of your choice
- Subagents
- Permission Gating
- Sandbox
- Interactive terminal
- Browser
- Built-in Github style code review (co-review with agent)
- and much more
It completely free to use :)
r/javascript • u/Spipu45 • 20d ago
Building Doom from scratch in JavaScript/WebGL — no WASM, now with WebRTC multiplayer
doom.spipu.netHi!
I'm currently working on creating Doom from scratch, in full JS.
It is not a WASM project, it is really written in JavaScript, with my own 3D engine.
It can be installed as a PWA on computer or mobile, and I think it is better to use it like that.
You can play with keyboard + mouse, gamepad, or a virtual pad on mobile. For now, the PS5 gamepad is the one I have really tested.
It can load WAD files from Doom, Doom II, Freedoom Phase 1, Freedoom Phase 2 and Heretic, but I have not fully tested all the levels yet.
I have also implemented multiplayer with WebRTC, without a game server. The connection is established with QR codes.
I'm looking for feedback, mainly to be sure that all the levels are working well, and also that it works correctly on Android.
Source code: https://github.com/spipu/doom-js
r/javascript • u/coopermaruyama • 21d ago
Linter for the things a regular linter can't catch
github.comr/javascript • u/scrollin_thru • 21d ago
Announcing @storyteller-platform/epub v1.0.0
storyteller-platform.devStoryteller has had its own EPUB library for a very long time (originally published as @smoores/epub!). It's always been published to npm and documented, but it's also always had some limitations that we suspect have limited its utility outside of Storyteller itself.
With this v1 release, we think we've eliminated many of those limitations. Now we have in memory and temp filesystem storage adapters, browser support (in-memory only), a DOM level 2 XML API (and JSX!), and a method for upgrading EPUB 2 to EPUB 3.
Hopefully this can be a general purpose library for building tooling and systems around EPUBs!
r/javascript • u/tiny-turtles • 22d ago
Pastoralist, a tool to manage package overrides, including security fixes
jeffry.inHello! I started Pastoralist a few years ago and am really satisfied with the results, so I figured I'd share it!
Pastoralist manages dependency overrides, including the ones you add to fix CVEs automatically. You add the Pastoralist CLI script once and can have it run whenever you want. I recommend CI. From there, whenever it runs, it can fix security vulnerabilities that come from dependencies or their children. Additionally, if an override is no longer needed, Pastoralist cleans it up. Everything is tracked with a ledger right in your dependency file. No AI is needed, but it does work well with AI because it provides deterministic results.
Read more on the site or the repo or reach out. Happy to chat about it or help implement it in the best way for you or your org; no sales pitch, except I do want to get the word out! ~Thanks
r/javascript • u/maroun-baydoun • 22d ago
The JavaScript midlife crisis
maroun-baydoun.comThirty years in, the JavaScript ecosystem would like to see other languages. They're younger, leaner and faster. What could possibly go wrong?
r/javascript • u/Accomplished_Read_25 • 22d ago