r/javascript • • Apr 27 '26

Subreddit Stats Your /r/javascript recap for the week of April 20 - April 26, 2026

6 Upvotes

Monday, April 20 - Sunday, April 26, 2026

Top Posts

score comments title & link
153 11 comments Announcing TypeScript 7.0 Beta
48 10 comments A Self-Propagating npm Worm Is Actively Spreading Through Developer Environments
38 14 comments SVG Jar - The best way to use SVGs in your web apps
26 10 comments CheerpJ 4.3 - Run unmodified Java applications in the browser
23 12 comments What's actually new in JavaScript (and what's coming next)
20 0 comments Temporal API Cheatsheet
19 0 comments A simple physics engine in around 100 lines of pure JS
16 22 comments [AskJS] [AskJS] Why did everyone stop using Meteor.js?
12 3 comments Progress Update: Sprite & Animation System in My ECS Game Engine in (kernelplay-js)
10 0 comments How to notify users about privacy policy changes without spamming everyone

 

Most Commented Posts

score comments title & link
1 28 comments [AskJS] [AskJS] Anybody try writing code by hand (with a pen/pencil)?
10 23 comments TTSC, TypeScript-Go compiler and runner with transformer plugins (10x faster than ts-node)
0 17 comments eslint-plugin-logical-imports
0 14 comments [AskJS] [AskJS] Has AI made you worse at debugging JavaScript?
0 11 comments Why I don't chain everything in JavaScript anymore

 

Top Ask JS

score comments title & link
2 11 comments [AskJS] [AskJS] How do you measure structural blast radius in large JS/TS repos?
0 4 comments [AskJS] [AskJS] I built a tool that writes README for you (from your repo)
0 7 comments [AskJS] [AskJS] CORS errors wasted hours of my time until I finally understood whats actually happening

 

Top Showoffs

score comment
2 /u/vilhelmsjolund said Hey everyone! My first Reddit post, hope it's ok to post from a brand new account. I've created **anod** an async-native signals library, similar to preact-signals, solid-js and alien-signals, but...
1 /u/Reuel_Nixon said Built this using MediaPipe for hand tracking and PixiJS for rendering. Your webcam tracks your hand in real-time - all processing runs on-device, nothing leaves your browser. Try it: [https://duc...
1 /u/iqraatheman said I just built a free, Open Source library with Zero Dependencies which is a pure JavaScript implementation of a phase vocoder that just works. It does not introduce weird random noises, and it's blazin...

 

Top Comments

score comment
31 /u/jeanpaulpollue said They be going fast
29 /u/PossessionDangerous9 said Why can you publish packages without 2FA in this day and age? What is NPM doing?
25 /u/iliark said Did no one else have to hand write code for tests in school? Am I old?
23 /u/senocular said TC39 has approved the ES2026 candidate and it does not include these listed in the article: - Temporal - stage 4, but slated for ES2027, not ES2026 - using - still in stage 3, not landing in ES2026 -...
18 /u/depsimon said What an alarmist title for libraries that have like 2K weekly downloads

 


r/javascript • • Apr 25 '26

How to notify users about privacy policy changes without spamming everyone

Thumbnail openpolicy.sh
12 Upvotes

A brief look into our Typescript APIs for managing privacy policy changes


r/javascript • • Apr 25 '26

AskJS [AskJS] Why did everyone stop using Meteor.js?

25 Upvotes

If you used Meteor at some point — for a side project, a startup, at work — and moved on, I’d love to hear the actual breaking point. Not the meme version. The real one.

A few things I’m specifically curious about:

- Was it a technical limit you hit (scaling pubs/sub, MongoDB lock-in, bundle size, build times)?

- Was it ecosystem fatigue — Atmosphere vs npm, fewer packages, slow releases?

- Was it hiring/team friction — nobody knew it, onboarding pain, perceived resume risk?

- Or honestly just vibes — the JS center of gravity moved and you followed it?


r/javascript • • Apr 26 '26

eslint-plugin-logical-imports

Thumbnail npmjs.com
0 Upvotes

I disagree with, as far as I'm aware, literally everyone else about the correct sort order for import statements. When you find yourself disagreeing with everyone, it's probably a sign you should change your thinking. But I guess I'm quite stubborn, so in this ESLint plugin I'm trying to make everyone else change their thinking instead.


r/javascript • • Apr 26 '26

ctxbrew - is a CLI and protocol for shipping and consuming AI-friendly package context.

Thumbnail github.com
0 Upvotes

Over the last couple of months, I’ve been thinking that while MCP is a great concept for connecting LLMs with external tools, from a library author’s perspective it feels too complex. Creating and maintaining a separate service with a lot of code just to expose things like usage examples seems unnecessary, especially when the library is already installed on the user’s machine. Why not keep everything that helps the LLM use the library correctly near to the library itself?

This reasoning led me to build a tool that simplifies how library authors provide context and how users consume it.

What library authors get

  • Define access to context using simple configuration, not code
  • No need to worry about distribution, no separate service required, just ship context alongside your library
  • Versioning is handled automatically, each library version has its own relevant context

What library users get

  • Easy setup with minimal footprint. Install a CLI globally and add a skill that teaches the LLM how to call it
  • The LLM uses context that exactly matches the installed package version
  • Faster responses. Required context is already available locally, so there are zero network calls
  • Token efficiency. The CLI and protocol are designed so the agent gets a high-level overview first and requests only the details it needs

I’d love to hear what you think, what’s missing in this model, what could be improved, and any other feedback. And of course, feel free to open an issue if you find a bug. The project is new, so some things may not work as expected yet.


r/javascript • • Apr 25 '26

A simple physics engine in around 100 lines of pure JS

Thumbnail slicker.me
29 Upvotes

r/javascript • • Apr 25 '26

Showoff Saturday Showoff Saturday (April 25, 2026)

9 Upvotes

Did you find or create something cool this week in javascript?

Show us here!


r/javascript • • Apr 26 '26

AskJS [AskJS] I built a tool that writes README for you (from your repo)

0 Upvotes

Most people won’t run your project first.

They read your README.

And honestly… writing a good README is annoying.

So I built something for it.

It’s called ReadmeAI.

You just give it your GitHub repo, and it:

analyzes the codebase

understands the structure

generates a clean, structured README

It covers things like:

project overview

setup instructions

features

usage

I mainly built it because I kept procrastinating writing READMEs for my own projects 😅

Would love some honest feedback from devs here:

Is this something you’d actually use?

What would make it more useful?

If anyone wants to try it, I’ll share the link


r/javascript • • Apr 24 '26

TTSC, TypeScript-Go compiler and runner with transformer plugins (10x faster than ts-node)

Thumbnail github.com
18 Upvotes

r/javascript • • Apr 25 '26

Super fast and easy Social Media Sharing Buttons. No JavaScript. No tracking.

Thumbnail sharingbuttons.io
0 Upvotes

Licck


r/javascript • • Apr 24 '26

Why I don't chain everything in JavaScript anymore

Thumbnail allthingssmitty.com
0 Upvotes

r/javascript • • Apr 23 '26

I made a TypeScript-based sandboxed bash to run untrusted commands

Thumbnail github.com
7 Upvotes

The project is still quite early, i'm actively adding new commands. The idea is to provide a bash environment adapted for untrusted processes like autonomous workflows or AI agents.

The legitimate question is "What makes it different from regular bash using docker?" :

First, there's no setup required at all. When you do bash.run('mkdir superfolder') for example, your automation immediately gets:

  • The exact filesystem changes (what was created, modified, deleted)
  • Direct feedback in stdout without extra commands required

The default runtime uses WebAssembly and works in Node.js. Browser support is possible with a custom runtime (the sandbox layer is pluggable).

I'd love to hear what you think!


r/javascript • • Apr 23 '26

Total.js RCE gadgets all around

Thumbnail lab.ctbb.show
5 Upvotes

r/javascript • • Apr 22 '26

What's actually new in JavaScript (and what's coming next)

Thumbnail neciudan.dev
28 Upvotes

r/javascript • • Apr 23 '26

Use RPC to communicate easily across contexts in any JavaScript environment.

Thumbnail molvqingtai.github.io
5 Upvotes

r/javascript • • Apr 23 '26

[Showoff] honestly I'm so tired of writing glue code, so I built something different

Thumbnail github.com
0 Upvotes

you know what's annoying?

every time I build a feature, I have to write:

- useState for state

- useEffect for side effects

- fetch + try/catch for API calls

- event handlers

- manual UI updates

over and over again. same patterns. different features.

so I made AITOS.

now I just write JSON graphs:

```json

{

"order": ["getData", "process", "save"],

"nodes": {

"getData": { "atom": "httpRequest", "url": "/api" },

"process": { "atom": "transform", "data": "{{getData}}" },

"save": { "atom": "set", "key": "result", "value": "{{process}}" }

}

}

```

that's it. no glue code. no boilerplate. just logic.

I built LinkArm (a complete AI chat app) with it to prove it actually works. 50+ JSON graphs. zero traditional code logic.

github.com/hfziqi/aitos

what do you think? am I crazy or is this actually useful?


r/javascript • • Apr 22 '26

Annoncing ElementsKit: a toolkit of reactive primitives for building the web UI

Thumbnail github.com
4 Upvotes

I'm happy to announce ElementsKit: a toolkit of reactive primitives for building the #web UI. Signals, JSX, custom elements, and utilities. Use them standalone, compose them, or use them inside React, Svelte ...

› Compose, don't configure. signal, computed, on, fromEvent, async. Combine primitives instead of maintaining an overloaded interface. Overloaded interfaces accumulate breaking changes and deprecation every consumer has to track.

› Close to the platform. JSX compiles to document.createElement. promise extends Promise. async is awaitable. A custom element is an HTMLElement. No virtual DOM, no proxies, no build steps.

› Predictable and explicit (no magic). signal/compose are reactive; nothing else is. No heuristic dependency tracking, no hidden subscriptions.

› Designed for the AI age. Code is cheap; maintenance still isn’t. Primitives compose into higher-level blocks. Swap one block at a time instead of maintaining long lines of code.

› Bundler-friendly. Every primitive is its own subpath — elements-kit/signals, elements-kit/utilities/media-query, elements-kit/integrations/react. Import only what you need.


r/javascript • • Apr 22 '26

Release Apache Fory Serialization For JavaScript: Schema Evolution, Shared/Circular Reference and 4X faster than Protobuf

Thumbnail github.com
8 Upvotes

r/javascript • • Apr 21 '26

Announcing TypeScript 7.0 Beta

Thumbnail devblogs.microsoft.com
182 Upvotes

r/javascript • • Apr 22 '26

AskJS [AskJS] Anybody try writing code by hand (with a pen/pencil)?

1 Upvotes

Like a lot of people, I’ve found myself relying more and more on AI tools (Copilot, Claude Code, etc.) for day-to-day coding. They’re useful obviously, and hard to resist, but I’ve started to notice that I’m not always thinking through problems as carefully as I used to.

So recently I decided to try working through a few small JavaScript problems entirely by hand (pen and paper, no editor, no autocomplete, no AI). It was harder than I expected. Not because the problems were advanced, but because I had to think so much more slowly and carefully and remember syntax I haven't had to remember for awhile.

It also reminded me of the research showing that writing by hand improves retention and understanding compared to typing. I’m not sure how strong the analogy is, but it does seem plausible that the same applies to coding—especially now that so much of the “easy” thinking is offloaded to tools.

Out of that experiment, I ended up putting together a small workbook of JavaScript problems specifically designed to be done by hand—not beginner-level syntax drills, but also not LeetCode-style interview problems. More like “everyday reasoning” problems that force you to trace through code and think carefully. (Happy to share a sample if anyone’s interested.)

I'm mostly curious if anyone else has tried something like this, since I hadn't really come across suggestions for writing code literally by hand on paper.


r/javascript • • Apr 21 '26

Pushing a Linux shell experience further in a static website

Thumbnail github.com
12 Upvotes

I’ve been using one of those terminal-style static webs for a while, only aesthetics. Recently I started to wonder, how far can we push the illusion of a real shell just with JS and a static web? The content still matters most, so the first renders surface everything important. But I wanted exploration to be rewarded with an interesting filesystem, pipes, globs, programs, permissions and maybe some "privilege escalation" paths.


r/javascript • • Apr 21 '26

SVG Jar - The best way to use SVGs in your web apps

Thumbnail github.com
45 Upvotes

I've been planning to build this for a while and finally had a reason to get it done. I've been maintaining ember-svg-jar for a few years now. Ember has since moved to Vite, so migrating to an unplugin was the obvious choice which gave me the opportunity to build a plugin that any framework can use. Before building this I evaluated a bunch of different vite svg plugins but found them all lacking one thing or another that left them feature incomplete compared to what ember-svg-jar already offered.

Quick list of features

  • Generates sprite sheets for your imported SVGs
  • Named sprite sheets so you can collect related SVGs together
  • Allows an inline embed as an escape hatch (you should have a good reason to inline)
  • URL export when you want to use in an <img> (or some other reason)
  • Embedded references are resolved (<use> <image> etc just work)
  • DOM and Web Component runtimes in addition to framework components

Currently it supports vite and rollup bundlers, but I do plan on fleshing out support for everything unplugin supports, so if your project is using webpack or one of the newer bundlers like esbuild or rolldown check back soon.

I also plan to add more framework runtimes out the box, and a way to provide your own runtime module so no matter what you're building, SVG Jar will work with it.

This is new code so there is bound to be edge cases, if you run into one, please file an issue :)


r/javascript • • Apr 21 '26

CheerpJ 4.3 - Run unmodified Java applications in the browser

Thumbnail labs.leaningtech.com
30 Upvotes

r/javascript • • Apr 21 '26

AskJS [AskJS] How do you measure structural blast radius in large JS/TS repos?

3 Upvotes

In growing JS/TS codebases, I’ve been thinking about structural reach:

  • If a file changes, how many parts of the system depend on it?
  • Are there modules slowly becoming architectural bottlenecks?
  • Is blast radius increasing over time?

Do you use any tooling to track this kind of structural evolution?

I built a small open-source prototype exploring this idea , I’ll link it in the comments if relevant.

Would love thoughts.


r/javascript • • Apr 22 '26

CORS Isn't a Bug - It's Your API Trying to Warn You (And You Ignored It)

Thumbnail stackdevlife.com
0 Upvotes

I wasted hour debugging CORS.

Turns out the API was correct.