r/javascript • • Mar 19 '26

Meta PyTorch OpenEnv Hackathon x SST

Thumbnail scaler.com
0 Upvotes

Hey everyone,

My college is collaborating with Meta, Hugging Face, and PyTorch to host an AI hackathon focused on reinforcement learning (OpenEnv framework).

I’m part of the organizing team, so sharing this here — but also genuinely curious if people think this is worth participating in.

Some details:

  • Team size: 1–3
  • Online round: Mar 28 – Apr 5
  • Final round: 48h hackathon in Bangalore
  • No RL experience required (they’re providing resources)

They’re saying top teams might get interview opportunities + there’s a prize pool, but I’m more curious about the learning/networking aspect.

Would you join something like this?


r/javascript • • Mar 18 '26

We're building a better rich text editing toolkit

Thumbnail handlewithcare.dev
31 Upvotes

Hey folks!

Handle with Care is a software collective that builds and maintains open source rich text editing libraries, including React ProseMirror. We all came from The New York Times’ content management system team, and we spend a lot of time thinking about rich text and collaborative editing.

Now we’re working on something new: Pitter Patter will be a fully featured collaborative rich text editing toolkit, with all of the bells and whistles you need for your own text editor.

The space we’re entering is not devoid of solutions — Lexical, Slate, ProseMirror, and Tiptap are all viable options for building modern, browser-based rich text editors. But we feel pretty confident that we’re going to be able to bring some value, nonetheless.

First of all, Lexical, Slate, and ProseMirror (especially ProseMirror, in our opinion!) are all excellent rich text libraries, but they are also quite low level. You can build nearly anything atop them, but you will have to do quite a lot of the building yourself. Sometimes that’s exactly what you’re looking for — in that case, Pitter Patter can still provide you some value, because we’re going to be releasing individual libraries (like a CodeBlock node view, advanced markdown serialization, and suggest changes) that interop with the existing ProseMirror ecosystem.

But if you want something that’s more batteries-included, you’re mostly left with Tiptap. Tiptap has been dominant in the space for a while, but we think we can do better!

Anyway, we’re posting here for two reasons:

  1. Maybe there are some more collaborative rich text editing nerds here that will be exciting (or not!) to hear about this. Sign up for our newsletter if you want updates!
  2. Maybe there are some companies that are looking for alternative solutions to what’s out there. Consider sponsoring us on GitHub, or reaching out if you want to be more involved!

r/javascript • • Mar 19 '26

Bun is Fast. Your Event Loop is Not.

Thumbnail howtocenterdiv.com
0 Upvotes

Bun wins benchmarks. Your app still bottlenecks on DB connections, blocking CPU work, and N+1 queries. Switching runtimes before fixing those is optimizing the wrong layer. Migrate bun install and bun test today — safe, immediate wins. Move the runtime only when the profiler tells you to.


r/javascript • • Mar 19 '26

Implemented hot config reload in both Node and Go for the same proxy. They felt worlds apart.

Thumbnail github.com
5 Upvotes

I built the same proxy in two codebases, one in Node and one in Go, and implemented the same hot config reload contract in both.

For context, the proxy sits between your app and an upstream API, forwards traffic, and injects failures like latency, intermittent 5xxs, connection drops, throttling, and transforms.
I built it first in Node for JS/TS testing workflows, then rewrote it in Go for performance. And then I decided to add hot config reload to both. Same external contract:

  • POST /reload with full config snapshot
  • build then swap, all-or-nothing
  • deterministic in-flight behavior
  • reject concurrent reloads
  • same status model: 400, 409, 415, success returns version and reload duration

I expected similar implementations. They were very different.

  • Runtime model: Node implementation stayed dynamic: rebuild middleware chain and swap active runtime object. Go implementation pushed toward immutable runtime snapshots: config + router + version behind an atomic pointer.
  • Concurrency shape: Node: most complexity is guarding reload so writes are serialized. Go: explicit read/write split: read path loads snapshot once at request start, write path locks reload, builds fresh state, atomically swaps pointer. Same behavior, but Go makes the memory/concurrency story more explicit.
  • In-flight guarantees: Both guarantee request-start snapshot semantics. In Node, that guarantee is easier to violate accidentally if mutable shared state leaks into request handling. In Go, snapshot-at-entry is structurally enforced by the pointer-load pattern.
  • Router lifecycle: Node composition is lightweight and ergonomic for rebuilds. Go required reconstructing a fresh chi router on each reload and re-registering middlewares deterministically. More ceremony, but very predictable.
  • Validation and rollback boundaries: Both use parse -> validate -> build -> swap. Node gives flexibility but needs extra discipline around runtime guards. Go’s type-driven pipeline made failure paths and rollback behavior cleaner to reason about.
  • Stateful middleware behavior: Both rebuild middleware instances on reload, so in-memory counters/tokens reset by design. Same product behavior, different implementation feel.

This was honestly a lot of fun to build.
Tests pass and behavior looks right, but I am sure both versions can be improved.
Would love feedback from people who have built hot-reload systems across different runtimes and had to preserve strict in-flight consistency.


r/javascript • • Mar 18 '26

Build Privacy Policies Your Customers Actually Want to Read

Thumbnail openpolicy.sh
5 Upvotes

r/javascript • • Mar 18 '26

"Vite+ is kinda underwhelming" - a comprehensive review of the new release

Thumbnail github.com
6 Upvotes

r/javascript • • Mar 18 '26

Library that generates web interfaces from data.

Thumbnail github.com
0 Upvotes

r/javascript • • Mar 18 '26

Codegen based on .env.schema from varlock

Thumbnail github.com
1 Upvotes

Varlock has a pretty neat spec building around .env files: https://github.com/dmno-dev/varlock/discussions/17, but Varlock itself is still in its infancy regarding non-JS projects. We wrote envgen as a workaround, and it works for our use case.

Check it out as well as Varlock.


r/javascript • • Mar 17 '26

ORM Comparison (2026)

Thumbnail uql-orm.dev
9 Upvotes

r/javascript • • Mar 17 '26

Edge.js: Running Node apps inside a WebAssembly Sandbox

Thumbnail wasmer.io
19 Upvotes

r/javascript • • Mar 18 '26

I built a shadcn/ui-inspired PDF component library for React — pdfx add heading (like shadcn add button). Looking for honest feedback.

Thumbnail github.com
0 Upvotes

Hey r/reactjs,

I've been frustrated with PDF generation in React for a while. The options are basically:

- Write raw `@react-pdf/renderer` JSX (verbose, no design system)

- Pay for SaaS tools that lock you in

- Pray someone made a template that kinda fits

So I built **PDFx** — a copy-paste PDF component library inspired by shadcn/ui.

The idea: instead of installing a package, you run `pdfx add heading` and the component lives in your codebase. You own it, modify it, theme it.

---

## What's working right now (alpha)

**CLI commands:** `pdfx init`, `pdfx add`, `pdfx list`, `pdfx diff`, `pdfx theme switch`

**20 components:** heading, text, table, data-table, badge, card, form, graph, signature, page-header, page-footer and more

**Theme system** with Professional, Modern, Minimal presets

**7 templates:** 3 invoice styles + 4 report types

---

## Quick start

```bash

npx @akii09/pdfx-cli@alpha init

pdfx add heading text table

```

- GitHub: [github.com/akii09/pdfx](https://github.com/akii09/pdfx)

## What I'm genuinely trying to figure out

  1. Is the copy-paste model the right approach for PDFs, or would you rather a proper npm package?
  2. What templates would actually be useful? (Invoice? Resume? Report? Something else?)
  3. Is the CLI friction too high for a first experience?

Roast me if needed. Alpha = rough edges exist and I'd rather know about them.


r/javascript • • Mar 17 '26

Introducing Revise.js – A foundational library for building contenteditable-based web text editors

Thumbnail revise.js.org
17 Upvotes

r/javascript • • Mar 17 '26

I needed a tiny frontend framework with no bloat, so I built a 1.7kb one

Thumbnail github.com
15 Upvotes

Hey there o/
I've been building an ecosystem of zero-friction, local-first productivity tools called "That Just Works". For the UI, I needed something incredibly fast and lightweight. I love the ergonomics of Vue/React, but I didn't want a 40kb+ payload.
So, I built Sigwork.
It's a 1.7kb (gzipped) fine-grained reactive engine based on signals. Instead of VDOM diffing, components run exactly once. When a signal changes, it surgically updates only the affected text node or DOM attribute via microtask batching.

A few highlights:
JSX or Buildless: You can use it with Vite/JSX, or directly in the browser via CDN, maybe paired with htm for a JSX-like experience.
Built-in components: <Component> and <Transition>
Features: Props, events, slot, provide/inject, life-cycle hooks. Basically everything I usually use on Vue.

I've just released v0.1.0 and would love to hear your thoughts on it.

Docs & Demos: https://framework.thatjust.works
Repo: https://github.com/thatjustworks/sigwork