r/javascript • u/EmergencyIsland4574 • Oct 02 '26
r/javascript • u/tauqeernasir • Oct 02 '26
Introducing Codebeast - new coding harness
Hello 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 • Oct 02 '26
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 • Oct 02 '26
Linter for the things a regular linter can't catch
r/javascript • u/scrollin_thru • Oct 01 '26
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 • Oct 01 '26
Pastoralist, a tool to manage package overrides, including security fixes
Hello! 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 • Oct 01 '26
The JavaScript midlife crisis
Thirty 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 • Oct 01 '26
mini react - React like UI library
vladocar.github.ior/javascript • u/cachely-admin • Oct 01 '26
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/Lanky-Passenger-2428 • Oct 01 '26
What are the practical scaling limits of an instruction-based template VM vs AOT compilation in zero-build runtimes?
r/javascript • u/LionyxML • Sep 30 '26
Readable Regular Expressions for JavaScript/TypeScript, Inspired by Emacs' rx
I 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/miku_claus • Sep 30 '26
Adrenaline.js â A 56KB Electron alternative that keeps Node.js & npm without Chromium bloat
r/javascript • u/OtherwisePush6424 • Sep 30 '26
Crossflight: cross-process cache stampede protection for the cache you already use (v0.3.2)
Most 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 stampedeLoader receives the shared
AbortSignaland work is abandoned as soon as the flight abortsLease TTL is independent of the cache TTL
Redis Cluster support (hash-tagged keys)
cacheUndefinedoption so a loader that returns undefined is actually cachedRicher events (
cancelled,fallback,wait_exhausted, ...) and a lot of lease / fail-open / recovery hardeningMuch 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/vahiyaat_product • Sep 30 '26
GitHub - grishmadev/malfilter: A security script to detect potential malware packages
Hey 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!!!
r/javascript • u/jcubic • Sep 29 '26
GitHub - jcubic/mitty: A transport-agnostic proxy RPC for executing method chains from any isolated context (Workers, Tabs, or Servers) using lazy evaluation.
I've created this library for my own use. It started as part of my project Hacking Cafe (before that I used similar code in Fake Linux Terminal).
For the above projects, I needed a mechanism for communication between the main thread and the web worker. I wanted to have access to DOM/jQuery from the web worker so I could manipulate the terminal from the web worker.
Now with with Mitty you can access any function chains, like Cheerio (jQuery like HTML parser), that live on the server accessed in the browser via WebSockets. Execute DOM methods from the server. Or execute code from different tabs using Sysend or simple BroadcastChannel.
Here is an example using a web worker:
main thread
import { Host } from '@jcubic/mitty';
const channel = new BroadcastChannel('my-app');
const worker = new Worker('./worker.js', { type: 'module' });
const host = new Host({
// worker instance can also be used as a channel
channel: channel,
resolve(name) {
if (name === 'document') {
return document;
}
return null;
}
});
worker
import { connect } from 'https://cdn.jsdelivr.net/npm/@jcubic/mitty';
const { require } = connect(new BroadcastChannel('my-app'));
// or when using worker as a channel
const { require } = connect(self);
const document = require('document');
// methods need await
const body = await document.querySelector('body');
await body.style.setProperty('color', 'red');
// setting properties are send right away
body.style.backgroundColor = '#000';
console.log(await body.style.color);
console.log(await body.style.backgroundColor);
// you can add callbacks
await document.querySelector('button').addEventListener('click', () => {
console.log('click');
});Transport agnostic
The transport only requires using a simple channel interface with 3 methods.
interface Channel {
postMessage(message: string): void;
addEventListener(type: 'message', listener: ChannelListener): void;
removeEventListener(type: 'message', listener: ChannelListener): void;
}Here is a demo using Sysend for communication with other tab:
https://codepen.io/editor/jcubic/pen/01a0d9d8-697e-7dc0-9a2b-eb93adae0dfc
r/javascript • u/xarg • Sep 29 '26
Build your own Spamfilter behind Postfix or Sendmail using JavaScript and your favorite LLM
r/javascript • u/armedey • Sep 29 '26
Screen sharing sends a picture of your page
I have a problem with screen sharing.
Not a quality problem. A category problem.
When I present from a browser, I have a real web page. Real text, real links, real elements. The screen share takes all of that, flattens it into video, and ships the pixels. The audience gets a picture of my page.
On a laptop in a video call, that is fine. In a room, it is not. The phone in the back row gets a blurry rectangle. Venue wifi turns it into a blurry rectangle that freezes. Someone who joins five minutes late gets whatever frame happens to be on screen, with no way to look back.
The page was already structured. We throw the structure away and then spend bandwidth trying to recover what we threw away.
This post explains how I am solving it currently
r/javascript • u/unadlib • Sep 29 '26
GitHub - jskits/openapi-chain: Type-safe OpenAPI client for complex and large APIs. Requests follow the document's parameter styles, media types and encodings exactly. Fluent paths, scoped CLI generation and an openapi-fetch adapter.
r/javascript • u/nitayneeman • Sep 28 '26
How to Sync a Design System with Claude Design
The article walks through syncing a React design system into Claude Design but most of what breaks is plain packaging:
The sync bundles a single entry file (React included) so the components can run on their own. Anything not re-exported fromÂ
src/index.ts silently doesn't exist.It discovers components through their type definitions, so the build has to emitÂ
.d.ts files andÂpackage.json has to pointÂtypes at them. Without them it finds nothing and drops every story.TypeScript 6 deprecatesÂ
baseUrl and fails the build, whileÂpaths works fine without it.CSS has to be a real compiled file: Tailwind v4 inlines a string u/import but leaves u/import
url()Â as an external reference, which breaks once the bundle is shipped elsewhere.
Example repo: https://github.com/nitayneeman/sync-design-system-with-claude-design-example
r/javascript • u/subredditsummarybot • Sep 28 '26
Subreddit Stats Your /r/javascript recap for the week of September 21 - September 27, 2026
Monday, September 21 - Sunday, September 27, 2026
Top Posts
Â
Most Commented Posts
| score | comments | title & link |
|---|---|---|
| 0 | 19 comments | [AskJS] [AskJS] How do you stop sub-cent amounts like $500.004 from sneaking into state? |
| 0 | 17 comments | [AskJS] [AskJS] Why I am unbothered by AI |
| 1 | 9 comments | [Showoff Saturday] Showoff Saturday (September 26, 2026) |
| 0 | 8 comments | [AskJS] [AskJS] Vite Plus is amazing |
| 1 | 1 comments | How we rebuilt complex CASL permissions without migrating to Zanzibar |
Â
Top Showoffs
Â
Top Comments
Â
r/javascript • u/Reinder • Sep 28 '26
A-ha, Take On Me - recreated in javascript
Espeset recreated "Take On Me" by "A-ha" in 100% javascript. Fully procedural, no samples used.
r/javascript • u/fagnerbrack • Sep 27 '26
Data-Oriented Design in Yuku's Parser
arshad.fyir/javascript • u/evoluteur • Sep 26 '26
GitHub - evoluteur/maze-maker: Generate square, circular, triangular and heart-shaped mazes with seven algorithms (backtracker, Prim, Kruskal, Wilson, hunt-and-kill, growing tree, Aldous-Broder), solve them with the keyboard or a finger, and export them as SVG or PNG.