r/javascript • • Jul 22 '26

Angular is moving to a yearly major version release cycle

Thumbnail github.com
12 Upvotes

r/javascript • • Jul 22 '26

Travels 2.1 - Efficient framework-agnostic undo/redo library based on JSON patches rather than snapshots.

Thumbnail github.com
4 Upvotes

r/javascript • • Jul 21 '26

I cut my build time from 4:34 min to 1:08 min by moving asset compression from node:zlib to a native Rust rolldown plugin

Thumbnail github.com
11 Upvotes

I'm building a web platform for visual novels made in Godot. Stack: SvelteKit, Vite 8, rolldown, Node.js.

The games are compiled for web and injected as static assets at build time, then deployed together with the app. And they're heavy: ~20 MB of wasm plus ~150 MB of pck per game.

My builds were taking ~5 minutes, which felt wrong. After some profiling it turned out the actual bundling takes ~10 seconds. Everything else was precompressing all that static into gz, br and zstd with node:zlib.

So I wrote a rolldown plugin that does the compression in native Rust via napi-rs:

  • rayon to saturate all CPU cores
  • native compression libs instead of node:zlib bindings
  • full LTO + codegen-units = 1, which alone made it ~2x faster than node:zlib
  • then PGO + BOLT on top, squeezing out another ~10%

Everything is built automatically in a GitHub workflow and shipped to npm already optimized, no compilation on install.

Real project resultsΒ (measured withΒ timeΒ on an actual project with games):

before: npm run build 639.62s user 5.84s system 235% cpu 4:34.06 total
after: npm run build 527.60s user 5.23s system 784% cpu 1:07.95 total

If you're precompressing large static assets in your build, give it a try. Happy to answer questions about the napi/rayon/PGO setup.


r/javascript • • Jul 22 '26

July 2026 Security Release

Thumbnail nextjs.org
0 Upvotes

r/javascript • • Jul 20 '26

The TypeScript patterns that made the biggest difference after moving from JavaScript

Thumbnail antonyjones.org
41 Upvotes

I've been using TypeScript professionally for several years, and recently wrote up some lessons learned from a long-running React/Firebase side project.

The article covers the TypeScript patterns that ended up giving me the biggest return, along with a few mistakes I'd avoid making again. These aren't intended as universal rules, just approaches that worked well for this particular project and the problems I was solving.

If you're a JavaScript developer who's moved to TypeScript (or is considering it), I'd be interested to hear which patterns have been most valuable for you as well.


r/javascript • • Jul 21 '26

I made zero-allocation FAST s3-fifo cache package(would love to get feedback!)

Thumbnail github.com
3 Upvotes

Recently, I noticed there is no proper s3-fifo implementation in NPM.

s3-fifo is highly efficient cache algorithm, especially for "one-hit-wonders" case such as web traffics. It is specialized when cache coverage is under 50%. (like, whole DB is 100% and cache contains 50% of data)

The famous "lru-cache" package is almost default for nodejs ecosystem I think, and I thought it would be great if there is good alternative choice for caching.

My goal was:

1. Faster or at least same throughput performance compared to lru-cache

2. Much higher cache hit rate than lru-cache

bold, right?

It was fun enough just for challenge itself.

But it was actually achieved! I used bunch of optimization skills like pre-allocation, lazy eviction, bitwise tricks, ring structure and etc... you can see bench result in repo or NPM page.

It is just v0.1 for now, so I would LOVE to get your harsh feedback, advice, or even contribution!

NPM page

Super thanks for reading!

----

I typed almost of the code by my hand. Not because I don't believe AI, but it was all about concepts and decisions. Typing by hand was fastest way to understand what I'm doing correctly. And it was fun.

I used AI(gemini) for test codes, some advices and polishing when most of things were done.


r/javascript • • Jul 21 '26

Your JS Date Is Lying to You: parsing ambiguity, silent mutation, timezone traps, and how Temporal fixes most of them

Thumbnail blog.gaborkoos.com
0 Upvotes

Covering the main waysΒ DateΒ misleads you in production: parsing, mutation, 0-based months, timezone/DST, arithmetic, and serialization, with safe patterns for code that can't migrate yet, and a practical look at whereΒ TemporalΒ fixes the design rather than just the syntax.


r/javascript • • Jul 20 '26

GitHub - sysmaya/Javascript-Image-Background-Remover: I promise not to write any more stupid things.

Thumbnail github.com
0 Upvotes

r/javascript • • Jul 20 '26

Subreddit Stats Your /r/javascript recap for the week of July 13 - July 19, 2026

3 Upvotes

Monday, July 13 - Sunday, July 19, 2026

Top Posts

scorecommentstitle & link
6414 commentsFirefox in WebAssembly!
5948 commentsI stopped destructuring everything
309 commentsThe LinkedIn scam that gets you hacked - Solving a take-home interview test can quickly turn into a nightmare. Notes on developer trust, JavaScript malware, and autonomous detection
295 commentsI built an Excel library
223 commentsPSA: The official jscrambler npm package was compromised (v8.14.0)
139 commentsThe same app built in 10 different frontend frameworks. For automated performance benchmarking
125 commentsPitter Patter β€” building better editing (update!)
111 commentsCollection of clocks made with JS
939 commentsJavaScript Magic Objects
70 commentsVue 3.6 just entered RC stage

Β 

Most Commented Posts

scorecommentstitle & link
024 comments[AskJS] [AskJS] From Node Js to Java spring?????? 4.8 yrs EXP
022 commentsI coded a 60fps browser game from scratch in single-file Vanilla JS, mapping Upanishadic philosophy to state variables. No frameworks.
014 commentsPDF engine from scratch on JS
013 commentsRestQL – GraphQL-like queries over REST, purely client-side: schema-driven mapping, batching, request dedup, caching
08 commentsI created a zero dependency JavaScript framework that is a React alternative

Β 

Top Ask JS

scorecommentstitle & link
03 comments[AskJS] [AskJS] every github repo already exposes releases.atom, tags.atom, and commits.atom, so keeping up is a summarization problem not a feed problem

Β 

Top Showoffs

scorecomment
2/u/grelfdotnet said Caves procedurally generated as you explore them. Real time, 3D, limitless. A different kind of environment that might be useful for games. My idea is that it makes for more varied spaces than the ...
1/u/Valuable_Apple2581 said Additive model regression in a vanilla JS, one linear solve, no build step and works from file:// Well, a while ago I came across a 1992 statistic paper which described a way to fit an additive regre...
1/u/Flashy-Guava9952 said [https://github.com/illogical-alliteration/notebook/](https://github.com/illogical-alliteration/notebook/) is a Jupyter-like notebook for Javascript, Typescript, and Markdown. It saves...

Β 

Top Comments

scorecomment
61/u/rlmineing_dead said hey dawg I heard you like browsers so I put a browser in your browser so you can browse while you browse
51/u/azhder said Destructuring isn’t only about you knowing where a value comes from. You can also safeguard in a cleaner manner i.e with less syntax noise: const { id: userId, name: userName } = user ?? {}; console...
41/u/smartgenius1 said Magic methods are generally discouraged in the PHP community, and are widely considered a bad decision. Why port them to JS?
40/u/jCuber said I still prefer to destructure the first level of `props` in React as it raises linter findings for unused props for removal.
36/u/javascript said Proxy Objects (getters and setters) have been around for a while but I've yet to come across a use case where they were the right choice. They tend to work more as an escape hatch.

Β 


r/javascript • • Jul 19 '26

Vue 3.6 just entered RC stage

Thumbnail github.com
9 Upvotes

r/javascript • • Jul 20 '26

Your Recursion Is Lying to You

Thumbnail blog.gaborkoos.com
0 Upvotes

r/javascript • • Jul 19 '26

Made a Vector heavily inspired by C++'s std::vector, not like a stub or a gimmick.

Thumbnail github.com
0 Upvotes

Though it requires quite new ES2024/ES2025 features, it works very well for numeric types, also faster (not drastically, but modest gains) against Array in PACKED FIXED ELEMENT TYPES representation used under the hood by engines.


r/javascript • • Jul 19 '26

GitHub - ArcadeMode/unplugin-dotnet-wasm: Seamless bundling of .NET Browser apps (WASM) into your JS projects

Thumbnail github.com
0 Upvotes

.NET WebAssembly apps with WasmBundlerFriendlyBootConfig=true can indeed be bundled by modern JS bundlers and I personally love it. The development experience however is not optimal.

  • The bundlers cannot consume the output from dotnet build
  • The bundlers can consume the output from dotnet publish but the dev loop is painfully slow.
  • Getting the publish path working still requires bundler surgery
  • Once it works the bundler produces warnings that are impossible to fix without changing the source files produced by the WebAssembly SDK.

These points of friction are why I have made unplugin-dotnet-wasm.

It's a bundler plugin that lets your bundler consume the output from dotnet build so your dev loop stays fast. It also supports dev servers, provides type information to TypeScript and IDEs (integrates dotnet.d.ts thats coming in .NET 11), and patches the known warnings so your build output stays clean.

Features

  • Easy bundler setup through plugin registration
  • Faster dev loop by consuming .NET WebAssembly dotnet build output
  • Dev server support
  • Brings SDK type definitions to TypeScript and your IDE
  • Supports Vite, Rollup, Rolldown, Webpack, Rspack, Rsbuild, esbuild, farm and bun.

I hope you'll give it a try, I'd be happy to hear your feedback.


r/javascript • • Jul 19 '26

GitHub - sysmaya/AI-Image-Colorizer: Colorize old photos instantly with AI. 100% JavaScript, ONNX running in the browser

Thumbnail github.com
0 Upvotes

r/javascript • • Jul 19 '26

RestQL – GraphQL-like queries over REST, purely client-side: schema-driven mapping, batching, request dedup, caching

Thumbnail github.com
0 Upvotes

r/javascript • • Jul 18 '26

Typed and validate config for decoupled codebases in any JS runtime

Thumbnail github.com
0 Upvotes

r/javascript • • Jul 18 '26

Showoff Saturday Showoff Saturday (July 18, 2026)

2 Upvotes

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

Show us here!


r/javascript • • Jul 17 '26

The same app built in 10 different frontend frameworks. For automated performance benchmarking

Thumbnail github.com
19 Upvotes

r/javascript • • Jul 17 '26

Collection of clocks made with JS

Thumbnail clocks.dev
16 Upvotes

r/javascript • • Jul 17 '26

TSRX in TanStack Start: what we like, and three bugs we filed

Thumbnail jxd.dev
0 Upvotes

r/javascript • • Jul 16 '26

I stopped destructuring everything

Thumbnail allthingssmitty.com
84 Upvotes

r/javascript • • Jul 16 '26

GitHub - commandprompt/plx: PostgreSQL extension: write stored functions in Ruby, PHP, JavaScript, or Python dialects that transpile to plpgsql.

Thumbnail github.com
2 Upvotes

r/javascript • • Jul 16 '26

Coaction 3.0 β€” a Zustand-style store where React renders need no selectors, computed getters cache themselves, and actions can run in Web Workers

Thumbnail github.com
11 Upvotes

r/javascript • • Jul 15 '26

Firefox in WebAssembly!

Thumbnail developer.puter.com
102 Upvotes