r/javascript 27d ago

[Showoff] Vercel Eve, Tauri Desktop Shells, and Buying Canned Food for a Cat Named Coke

Thumbnail thereactnativerewind.com
0 Upvotes

Hey Community,

We look at Eve, Vercel's framework for structuring AI agents as regular folders. We also dive into Pake, a Tauri-backed CLI tool that packages web apps into native desktop apps under 5MB.

Plus, Software Mansion introduces react-native-morph-view to melt shapes and images together using real GPU shaders instead of standard crossfades.

And this week we're also raffling one free ticket to Chain React 2026 in Portland, Oregon 🎟️

If we made you nod, smile, or think "oh… that's actually cool" β€” a share or reply genuinely helps ❀️


r/javascript 28d ago

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

Thumbnail wasp.sh
7 Upvotes

r/javascript 29d ago

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

Thumbnail vite.dev
163 Upvotes

r/javascript 28d ago

A batch job, in The Elm Architecture

Thumbnail cekrem.github.io
1 Upvotes

r/javascript 29d ago

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 29d ago

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
18 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

score comments title & link
111 15 comments Announcing TypeScript 7.0 RC
65 8 comments 33-byte JS signal implementation
51 13 comments bote: 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
30 2 comments Signals, the push-pull based algorithm
20 11 comments Parse, Don't Validate β€” In a Language That Doesn't Want You To
10 4 comments Declarative Partial Updates unlock a new Native Component Model
9 4 comments Wasp framework now lets you write your "full-stack" logic, next to frontend and backend logic, as a spec in TypeScript
8 5 comments Incorporate monads and category theory Β· Issue #94 Β· promises-aplus/promises-spec
6 0 comments How we built meetings on LiveKit and Deepgram
4 1 comments Factories.ts: Build HTML/SVG/MathML with plain TypeScript functions, no template engine

 

Most Commented Posts

score comments title & link
0 15 comments LoggerJS: A faster, more powerful isomorphic logger
0 9 comments My 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.
0 9 comments There are too many JavaScript schema libraries, so support only one
2 9 comments [AskJS] [AskJS] Burned out on WordPress: Is transitioning to AstroJS + ApostropheCMS a smart move for a solo dev?
3 8 comments [Showoff Saturday] Showoff Saturday (June 20, 2026)

 

Top Ask JS

score comments title & link
3 2 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.
0 1 comments [AskJS] [AskJS] what 'turn X into a podcast' workflows are people actually running
0 7 comments [AskJS] [AskJS] How much do you hate this pattern?

 

Top Showoffs

score comment
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

score comment
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
8 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)

7 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
49 Upvotes

r/javascript Jun 19 '26

bote: 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

Thumbnail github.com
63 Upvotes

  • ModernΒ AsyncIteratorΒ API
  • Integrates withΒ Standard Schema
  • Allows you to navigate to any parts of JSON, without considering order of appearance in a stream
  • Structural (e.g. {}[]) position bitmap construction, caching and navigation, written in Rust

Benchmarks are in the README.md.

Hey folks. wrote this library to satisfy an itch for me: To make an ergonomic streaming JSON library whilst still being incredibly fast.

I took lessons from simdjson and JSONSki and applied it to a low-memory environment niche. Inspired from a situation at work where we didn't have control over the data and we're parsing a 10MB JSON in order to aggregate some data to the frontend (ugh). Existing streaming JSON libraries in node were too slow, outdated or you weren't able to control how much memory you want to balance.

Disclaimer: I had AI help but not vibe coded. I wrote the JS part but since I was new to Rust, I needed some hand-holding. Was a labour of love for 6 months, was always on the wheel, made a lot of effort to verify the quality of the Rust code and dogfooded it but I wanted to be transparent regardless.

If this is useful to anyone or if there's anything wrong to my claim, let me know and I'm happy to chat!


r/javascript Jun 19 '26

AskJS [AskJS] I tried patching Vite and E2B to catch silent Node.js crashes. They rejected. So I built a non-invasive wrapper instead.

6 Upvotes

Been running Node processes in production and you know that thing where a process just dies and leaves nothing in the logs? Yeah. I tried sending PRs to Vite and E2B to add a crash hook. They rejected it, which honestly fair enough β€” why would they add an env var for something most people don't need. So I made a tiny wrapper instead. You just do FATAL_HANDLER=/usr/bin/logger npx @misaka-net/fatal-guard -- node app.js and when it crashes it writes a small JSON to syslog with the reason and pid. Zero deps, MIT, works with any Node CLI. Why a wrapper instead of normal process events? When Node.js crashes catastrophically under high load, the V8 event loop often terminates so instantly that upstream logging libraries don't get enough event loop ticks to flush remaining write-buffers to disk. By running as a parent observer, fatal-guard completely bypasses this race condition, ensuring the telemetry tombstone always flies out.


r/javascript Jun 19 '26

There Are No Instances in atproto

Thumbnail overreacted.io
4 Upvotes

r/javascript Jun 19 '26

Open source JS browser interfaces for hacked POS terminals used as live instruments

Thumbnail vlasvlasvlas.github.io
6 Upvotes

Open source browser interfaces for hacked POS terminals used as live instrument


r/javascript Jun 18 '26

Announcing TypeScript 7.0 RC

Thumbnail devblogs.microsoft.com
134 Upvotes

r/javascript Jun 20 '26

Nifra - The full stack framework for AI

Thumbnail github.com
0 Upvotes

r/javascript Jun 18 '26

Declarative Partial Updates unlock a new Native Component Model

Thumbnail jadjoubran.io
14 Upvotes