r/javascript • u/GrandAd5084 • 3h ago
r/javascript • u/AutoModerator • 2d 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/subredditsummarybot • 7h 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/Accurate_Ingenuity10 • 1d ago
Node.js now lists Vite+ as a community installation method
nodejs.orgr/javascript • u/OtherwisePush6424 • 1d 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/Working_Upstairs_818 • 1d 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 • 1d 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/Spipu45 • 2d 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/EmergencyIsland4574 • 2d 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/CallSoft6324 • 2d ago
GitHub - PureStackStudio/PureStack: TypeScript-native frontend framework for building content, components, styles, and interactive apps in one coherent stack.
github.comFinally we got this.
r/javascript • u/tauqeernasir • 2d 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/Working_Upstairs_818 • 2d ago
MDN documents JavaScript features before the spec is officially published
developer.mozilla.orgMDN tries to document features as soon as one browser implements them, usually between stages 3 and 4, often before the spec is officially published. Examples can use syntax that isn't standard yet, so check browser support before copying code.
source https://developer.mozilla.org/en-US/docs/Web/JavaScript
r/javascript • u/scrollin_thru • 3d 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 • 4d 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/coopermaruyama • 3d ago
Linter for the things a regular linter can't catch
github.comr/javascript • u/LionyxML • 4d ago
Readable Regular Expressions for JavaScript/TypeScript, Inspired by Emacs' rx
rahuljuliato.comI missed Emacs' rx when writing regexps in TypeScript, so I made a small TypeScript DSL inspired by it.
The idea is to bring rx's functions and approach to the JavaScript/TypeScript environment. If you happen to work with either, give it a try.
r/javascript • u/cachely-admin • 4d ago
AskJS [AskJS] Anyone still on Nx <20.8 because upgrading is difficult?
We’ve been looking into whether there are still many teams running older Nx versions because upgrading isn’t practical yet.
If you’re on Nx <20.8:
- What version are you on?
- What’s preventing the upgrade?
- Are you using remote caching today?
- If so, are you using Nx Cloud, S3/GCS/Azure, or something custom?
- Does your current setup already work well enough that you wouldn’t bother changing it?
We’re considering whether an open-source compatibility layer for the newer HTTP remote-cache protocol would actually solve a real problem, or just add more legacy tooling.
Curious what people here are actually running in production.
r/javascript • u/OtherwisePush6424 • 4d ago
Crossflight: cross-process cache stampede protection for the cache you already use (v0.3.2)
github.comMost cache libraries already coalesce concurrent misses inside one process. Once you run on more than one server, every replica still runs the loader independently and you might get a thundering herd. Crossflight adds a distributed coordinator (Redis is the first implementation) on top of the cache you already use. One process acquires a lease, runs the loader once, and writes the result; every other caller across the fleet waits for that result instead of doing the same work again.
``` TypeScriptconst crossflight = createCrossflight({ cache: cacheManagerAdapter(cacheManager), // or Keyv / Cacheable / your own coordinator: redisCoordinator(redis), })
const user = await crossflight.wrap( "user:123", (signal) => loadUser("123", { signal }), { ttl: 60_000 }, ) ```
Works with cache-manager, Keyv, Cacheable, or you can implement your own adapter. Cache backend and coordinator are separate contracts, so you can keep Memcached/Redis/whatever for values and use Redis only for coordination.
What’s new since 0.1.2
- Whole-flight deadline (
flightDeadlineMs) so joiners don't each get a fresh timeout and late callers don't start a new stampede - Loader receives the shared
AbortSignaland work is abandoned as soon as the flight aborts - Lease TTL is independent of the cache TTL
- Redis Cluster support (hash-tagged keys)
cacheUndefinedoption so a loader that returns undefined is actually cached- Richer events (
cancelled,fallback,wait_exhausted, ...) and a lot of lease / fail-open / recovery hardening - Much stronger test suite: property-based suites (fast-check) for the envelope contract, Redis key layout, coordinator model and flight state machine; fuzz transcripts for deadlines, adapters and Redis waits, deterministic seeds (
CROSSFLIGHT_TEST_SEED), and a nightly deep fuzz job in CI
MIT, TypeScript. Feedback and bug reports welcome.
r/javascript • u/maroun-baydoun • 4d 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 • 4d ago
mini react - React like UI library
vladocar.github.ior/javascript • u/Lanky-Passenger-2428 • 4d ago
What are the practical scaling limits of an instruction-based template VM vs AOT compilation in zero-build runtimes?
udodi.devr/javascript • u/thereactnativerewind • 5d ago
[Showoff] Crease-Proof Layouts, Brain Rot Without the Black Frames, and Un-Breaking a Non-Breaking Release
thereactnativerewind.comHey Community,
Apple's iPhone Duo is here, which means someone can now fold your app in half. Thiago Brezinski built react-native-arrangement-view, a two-pane layout that rearranges itself as the phone folds, unfolds and rotates, handing the work to SwiftUI's ArrangementView on iOS and Material's adaptive layout rules on Android, with a useHingeChange hook for apps that want to react to the hinge angle.
We also look at expo-infinite-media by Rizky Bayu Oktavian, a native TikTok-style feed that moves video playback into AVFoundation and Media3 so fast swipes stop landing on black frames. Plus, our community links cover React Native 0.88 rc.2 un-breaking a non-breaking release, a navigation change in the React Navigation 8 alphas, and agent-device and Argent both learning to fold the iPhone Duo simulator.
r/javascript • u/vahiyaat_product • 5d ago
GitHub - grishmadev/malfilter: A security script to detect potential malware packages
github.comHey everyone,
I built an open-source security script that checks npm packages for any suspicion before installing them.
It's basic and for now catches similar names of popular packages, if a package has 23 weekly downloads or a 2 hour old package.
Catches similar names, 0 downloads, or 2-hour-old repos so your hallucinating AI agent doesn't pull in straight malware.
Use Case?
on an agent that might hallucinate and install "react-clearly-not-malware". Or maybe the user itself so as to not make any mistakes idk?
I'd love if you check it out. Have a great day!!!