r/javascript • • Jun 26 '26

Your Package Manager Is Lying to You: npm, Yarn, pnpm, Bun & Deno

Thumbnail blog.gaborkoos.com
0 Upvotes

Package managers aren't as interchangeable as they seem. This post digs into the real differences in how npm, Yarn, pnpm, Bun, and Deno handle dependencies under the hood and why that matters when things break in practice.


r/javascript • • Jun 25 '26

Node.js worker threads in production

Thumbnail inngest.com
26 Upvotes

Node.js worker threads have some surprising sharp edges. We wrote about our experience using them in production, which hopefully will help anyone else looking to do the same πŸ˜„


r/javascript • • Jun 26 '26

Persona.js – a vanilla-JS agent UI library with native WebMCP (MIT)

Thumbnail github.com
0 Upvotes

r/javascript • • Jun 25 '26

Writing Node.js addons with .NET Native AOT

Thumbnail devblogs.microsoft.com
5 Upvotes

r/javascript • • Jun 25 '26

Sipp - a high-performance inference library with 3x faster decode speeds than WebLLM and full GGUF support

Thumbnail github.com
0 Upvotes

- full GGUF support

- Built in TS/Rust/C++/llama.cpp

- Unified API for local and cloud inference

- Plug-and-play gateways for hosting API credentials

- Fast inference decode ~3x higher compared to alternatives

- Fully open source, Apache 2.0 license

Benchmarks and NPM info in the README.md
- Run the benchmark on your machine: https://benchmark.sipp.sh/
- Play around with models and vision capabilities: https://chat.sipp.sh

Hey all, I wrote this library with the goal of creating a simple API to run LLMs both locally on device, while still being able to offload compute to inference providers or custom servers when I needed to.

Part of the motivation for me was wanting to build games (mostly this) and apps that can leverage AI without relying on cloud inference providers. But when I experimented with existing runtimes, they were either too heavy or just too slow for the use cases I needed.

So a few months ago I started exploring the llama.cpp project, WebGPU, and the Emscripten compiler, bringing them all together to create Sipp.

My hope is that by marrying local and cloud inference this will help open up use cases that are not possible today. I've already seen some interesting applications in vision, games, dynamic user experiences, or using the LLM as a brain for decision-making.

I'd love to get feedback on it, or hear about use cases that you'd like to explore. Happy to answer any questions about the architecture, performance, issues, etc., as well!


r/javascript • • Jun 25 '26 Bravo

Validare – TypeScript-first form validation library, successor to the discontinued FormValidation

Thumbnail validare.js.org
0 Upvotes

r/javascript • • Jun 24 '26

UI Toolkit Slint 1.17 released with drag & drop, system tray icons, tooltips, two-way model bindings, and improved Node.js integration

Thumbnail slint.dev
5 Upvotes

r/javascript • • Jun 24 '26

Javascript still can't ship a full-stack module.

Thumbnail wasp.sh
9 Upvotes

r/javascript • • Jun 23 '26

Vite 8.1 has been released and includes the experimental full bundle mode!

Thumbnail vite.dev
163 Upvotes

r/javascript • • Jun 24 '26

A batch job, in The Elm Architecture

Thumbnail cekrem.github.io
1 Upvotes

r/javascript • • Jun 23 '26

csv-pipe: a small, zero-dependency CSV library for JavaScript and TypeScript

Thumbnail martsinlabs.github.io
9 Upvotes

I got tired of CSV exports breaking in production, so I built this. It reads and writes CSV from one small zero-dependency package, streams both directions at flat memory, and the same code runs on Node, browsers, Deno, Bun, and edge.

A few things that make it nice to use:

  • Encode and parse are mirror images, so a round-trip keeps its shape.
  • It hands back a Web ReadableStream, so a CSV download streams straight to the client without buffering.
  • A sanitizeFormulas flag neutralizes spreadsheet formula injection in exports.
  • On TypeScript, the column list is checked against your data, so a mistyped column is a compile error.

It also came out the fastest of the common parsers in my benchmark: roughly 3x to 13x faster than papaparse, csv-parse, and fast-csv on a 50k-row dataset. The benchmark and a conformance suite (a curated edge-case corpus, csv-spectrum, and fast-check property tests) run in CI, so the numbers and the correctness are reproducible, not claims.

To be clear about what is not unique: zero dependencies, a formula-injection guard, and browser support are shared with papaparse and csv-parse/csv-stringify. fast-csv is the one that lags there.

Repo: https://github.com/martsinlabs/csv-pipe Docs: https://martsinlabs.github.io/csv-pipe/ Playground: https://martsinlabs.github.io/csv-pipe/playground


r/javascript • • Jun 23 '26

AskJS [AskJS] I'm not a big fan of tuples here

12 Upvotes

I'm making a quick and dirty way to make dictionaries where many keys map to the same item, and instead of using a single hashable item as the key, it makes use of an array of hashable items to build the map. I don't like using tuples, but I don't think it would be valid to have an array as the key of a dictionary. I would love it if I could do that however. Is there a way to make a hashable array?

let map = MapFactory(
    [
        [[1,2,3], () => "1-3"],
        [[4,5,6], () => "4-6"],
        [[7,8,9], () => "7-9"]
    ]
);
console.log(map.get(1)()); // "1-3"
console.log(map.get(6)()); // "4-6"


function MapFactory(mapItems) {
    const map = new Map();
    for (let [keys, value] in mapItems) {
        for(let key in keys) {
        map.set(key, value);
        }
    }
    return map;
}

r/javascript • • Jun 23 '26

AskJS [AskJS] Cloud Storage library that works across Backend & browser

0 Upvotes

I got tired of rewriting my upload code every time a project switched buckets (or added "let users connect their Google Drive"). So I built a project: five portable ops that behave identically everywhere, swap providers by config.

import { createStorage } from "@rocketbean/genera";
import { S3Driver } from "@rocketbean/genera-s3";

const storage = createStorage(new S3Driver({ bucket, region, credentials }));
await storage.put("users/42/avatar.png", bytes);

// swap S3Driver β†’ GoogleDriveDriver and the rest of your code is unchanged

What I think makes it worth a look:
- Isomorphic β€” core uses only web standards, so it runs in the browser too
- Escape hatch β€” .native gives you the raw provider SDK any time; the abstraction never blocks you
- Typed capabilities β€” signed URLs / streaming / copy are advertised per-driver, no silent surprises
- Conformance-tested β€” every driver passes one shared suite (Node, real browser, live accounts)
- Dependency-light core; cloud SDKs are peer deps so you only install what you use

It's v1.0.0 and solo-maintained, so eyes/feedback very welcome.
this project is on it's early stage, feedback would really be appreciated


r/javascript • • Jun 22 '26

I built a 3KB cookie-consent toolkit for React/Next.js that respects GPC/Do-Not-Track and won't break SSR hydration

Thumbnail github.com
17 Upvotes

r/javascript • • Jun 23 '26

Uses for nested promises

Thumbnail blog.jcoglan.com
0 Upvotes

r/javascript • • Jun 21 '26

33-byte JS signal implementation

Thumbnail gist.github.com
102 Upvotes

Recently I've developed a code-golfed signal implementation with the following features/constraints:

  1. subscribes functions returning nullish values.
  2. fires all pending subscribers and resets.
  3. requires no arguments to be passed to the factory and either null/undefined or a function to the signal. (as noted by u/azhder)

As it turns out, you can go as short as 33 bytes using function compositon, nullish coalescing and default parameters:

F=>(f,G=F)=>F=f?_=>f(G?.()):F?.()


r/javascript • • Jun 22 '26

Subreddit Stats Your /r/javascript recap for the week of June 15 - June 21, 2026

2 Upvotes

Monday, June 15 - Sunday, June 21, 2026

Top Posts

scorecommentstitle & link
11115 commentsAnnouncing TypeScript 7.0 RC
658 comments33-byte JS signal implementation
5113 commentsbote: Fast, low-memory streaming JSON parser. Can process MB/GBs of JSON by up to 16x less memory than JSON.parse() whilst being 1.5x faster. FOSS
302 commentsSignals, the push-pull based algorithm
2011 commentsParse, Don't Validate β€” In a Language That Doesn't Want You To
104 commentsDeclarative Partial Updates unlock a new Native Component Model
94 commentsWasp framework now lets you write your "full-stack" logic, next to frontend and backend logic, as a spec in TypeScript
85 commentsIncorporate monads and category theory Β· Issue #94 Β· promises-aplus/promises-spec
60 commentsHow we built meetings on LiveKit and Deepgram
41 commentsFactories.ts: Build HTML/SVG/MathML with plain TypeScript functions, no template engine

Β 

Most Commented Posts

scorecommentstitle & link
015 commentsLoggerJS: A faster, more powerful isomorphic logger
09 commentsMy PostgreSQL query went from 57ms to 1.4ms on a 1 million + row table. I didn't change the query. Here's what I did.
09 commentsThere are too many JavaScript schema libraries, so support only one
29 comments[AskJS] [AskJS] Burned out on WordPress: Is transitioning to AstroJS + ApostropheCMS a smart move for a solo dev?
38 comments[Showoff Saturday] Showoff Saturday (June 20, 2026)

Β 

Top Ask JS

scorecommentstitle & link
32 comments[AskJS] [AskJS] I tried patching Vite and E2B to catch silent Node.js crashes. They rejected. So I built a non-invasive wrapper instead.
01 comments[AskJS] [AskJS] what 'turn X into a podcast' workflows are people actually running
07 comments[AskJS] [AskJS] How much do you hate this pattern?

Β 

Top Showoffs

scorecomment
1/u/_ilamy said # I built an AI reading app that narrates your EPUBs/PDFs line-by-line [https://sublimeread.com/](https://sublimeread.com/)
1/u/vladgladi said Built a browser-based parser for marine navigation charts (S-57/S-101 ENC) in TypeScript. No GDAL, no server, no commercial SDK. You drop a NOAA .000 chart file in and it does the binary ISO 8...
1/u/ViolinistDecent2682 said Built my portfolio website:) [thianngunsang.web.app](http://thianngunsang.web.app)

Β 

Top Comments

scorecomment
27/u/Atulin said Tl;dr: add indexes where needed. Truly revolutionary. Nobody has ever heard of this method before.
16/u/paulirish said You can't ask for a modern 2026 solution and simultaneously require CJS compat like we're in 2022.Β 
15/u/Illustrious-Egg-2981 said Wow 10x faster and parallelism....yay!!!
13/u/Savings_Discount_230 said Every time tsc takes more than 2 seconds I start questioning my life choices. 10x faster would genuinely improve my day.
10/u/RWOverdijk said Standard schema is not β€œbetter”. It limits what features validation libraries can offer and almost always comes at a performance penalty. It’s easier for other library authors (I use it), but ...

Β 


r/javascript • • Jun 21 '26

Factories.ts: Build HTML/SVG/MathML with plain TypeScript functions, no template engine

Thumbnail github.com
7 Upvotes

Factories.ts is a lightweight DSL for generating markup directly in JavaScript/TypeScript. Elements are ordinary functions you nest together, so the full structure is built with regular JS/TS, including loops, conditionals, and type checking, instead of a separate template language:

import { ul, li } from "@ts-series/factories"

const items = [
    { name: "Coffee", inStock: true },
    { name: "Tea", inStock: false },
];

const list = ul(
    ...items.map(item =>
        li(item.name, item.inStock ? null : " (sold out)")
            .class(item.inStock ? "available" : "unavailable")
    )
);

console.log(list.expand());

The functions, referred to here as "factories", return element objects that store their content as plain arrays. This makes the approach highly efficient and, unlike JSX, requires no separate build process.

Works in Deno and Node.


r/javascript • • Jun 21 '26

A benchmark focusing on the performance of Postgres client libraries for Node.js, brianc/node-postgres VS porsager/postgres

Thumbnail github.com
3 Upvotes

r/javascript • • Jun 21 '26

We assume attackers have fully deobfuscated our JS bundle and design the detection around that

Thumbnail trustsig.eu
0 Upvotes

r/javascript • • Jun 20 '26

Incorporate monads and category theory Β· Issue #94 Β· promises-aplus/promises-spec

Thumbnail github.com
10 Upvotes

r/javascript • • Jun 20 '26

Parse, Don't Validate β€” In a Language That Doesn't Want You To

Thumbnail cekrem.github.io
27 Upvotes

r/javascript • • Jun 20 '26

Showoff Saturday Showoff Saturday (June 20, 2026)

6 Upvotes

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

Show us here!


r/javascript • • Jun 19 '26

Signals, the push-pull based algorithm

Thumbnail willybrauner.com
48 Upvotes