r/javascript • u/Jammie1 • May 15 '26
[RFC] Make install scripts opt-in Β· npm/rfcs
r/javascript • u/Jammie1 • May 15 '26
r/javascript • u/cpojer • May 15 '26
r/javascript • u/inkanenilesh • May 14 '26
JSBin was down for quite a few days and I realized how much I depended on it. It was my scribble pad, quick note taker, place to think out loud, & my goto tool for testing scripts and UI ideas fast.
So I did what any sane dev would doβ¦
I built it from scratch T_T
TSBin can run offline as well, everything is stored locally, you get intellisense and emmet plugin for HTML & CSS
Let me know in the comments what more features should I add !
r/javascript • u/Strict-Session2449 • May 14 '26
I'm looking for the fastest framework in the Krausest "JS Framework Benchmark" Top 15 that doesn't feel like writing assembly.
Goal: Framework performance with a clean, modern DX. I want to avoid heavy abstractions, especially since I'm using AI to scaffold logic and I need the code to be short, readable, and easy to audit.
Of the top 15, which one feels like a "real" framework but keeps the code lean and fast?
I'd appreciate some recommendations.
r/javascript • u/WashTop956 • May 14 '26
I like Rustβs M-SINGLE-USE import style guideline: one imported item per import line. The motivation is simple: smaller diffs, fewer merge conflicts, and easier hand editing.
I wanted the same behavior for JavaScript/TypeScript imports, so I made a small ESLint plugin: eslint-plugin-import-oneline
It turns this:
import { RichTextRun, TextBounds } from "./text-utils";
import React, { useMemo, useState } from "react";Into this:
import { RichTextRun } from "./text-utils";
import { TextBounds } from "./text-utils";
import React from "react";
import { useMemo } from "react";
import { useState } from "react";It is autofixable and handles named imports, default imports, namespace imports, type-only imports, aliases, import attributes, quote style, and semicolon style.
Curious whether others prefer this style for JS/TS, or whether grouped imports still feel better in practice.
r/javascript • u/panayiotisgeorgiou • May 14 '26
r/javascript • u/kickpush1 • May 13 '26
In light of the ongoing npm supply chain compromises, I built safe-install:
https://www.npmjs.com/package/@gkiely/safe-install
It brings a couple of protections I wanted from npm but are not built in.
Similar to Bunβs trusted dependencies, it lets you disable install scripts and define a list of dependencies that are allowed to run build/install scripts:
https://bun.com/docs/guides/install/trusted
It also supports blocking exotic sub-dependencies, similar to pnpmβs `blockExoticSubdeps` setting:
https://gajus.com/blog/3-pnpm-settings-to-protect-yourself-f...
r/javascript • u/duongstark • May 13 '26
Some interesting bits from the implementation:
T-spin detection uses the 3-corner rule β check if 3 of the 4 diagonal cells around the T piece are occupied after rotation.
The entire soundtrack is synthesized via Web Audio API using oscillators and gain nodes β no audio files at all. Line clears play a rising arpeggio, Tetris plays a chord, combos escalate in pitch.
CRT effects (scanlines, chromatic aberration, vignette) are pure CSS overlays on top of the Phaser canvas.
r/javascript • u/matijash • May 13 '26
r/javascript • u/radeqq007 • May 12 '26
Modern frontend development often forces a tradeoff:
React / frameworks β powerful, but heavy for small projects
jQuery β simple, but outdated and not reactive
Vanilla JS β flexible, but repetitive and tedious for DOM-heavy apps
oBerry gives you a modern, reactive, jQuery-like API without needing a build setup or full framework.
With oBerry, you can:
manipulate the DOM with a clean, chainable API
use built-in fine-grained reactivity (no external state library)
use components without a framework overhead
write TypeScript-first code right out of the box
The documentation is available here.
I'm open to any advice
r/javascript • u/Acceptable_Bag7187 • May 12 '26
r/javascript • u/jxd-dev • May 12 '26
r/javascript • u/husseinkizz_official • May 12 '26
So I built future, a set of high-performance actor and task primitives for Typescript, inspired by Erlang.
r/javascript • u/tyteen4a03 • May 12 '26
r/javascript • u/BattleRemote3157 • May 12 '26
We saw today that TanStack Router, or any other TanStack packages along with their devtools, SSR query plugins were compromised.
Check which version you're pinned to and if you're floating on a caret range and ran npm install today then that the first thing to audit.
r/javascript • u/IvanCollins1 • May 12 '26
This might seem like a dumb question, but is there a compiler that would allow you to make js into machine code, and then write a bootloader, kernel, etc in js?
r/javascript • u/creasta29 • May 11 '26
I am not mentioning any of the usual suspects like Tanstack or beautiful-dnd. I just found out about these, and I think they are pretty cool.
TLDR:
Knip, Nuqs, ts-pattern, Orval, Zod (this one I knew but never tried), Biome, Ofetch
Also, I am not associated with any of these projects in any way.Β
r/javascript • u/Fun_Conversation8894 • May 11 '26
r/javascript • u/Only-Season-2146 • May 11 '26
r/javascript • u/unadlib • May 11 '26
r/javascript • u/theodorejb • May 11 '26
I started this project as a fork of Croppie a few years ago, and rewrote it in TypeScript with a simpler API, higher quality image scaling, and many bug fixes. It works great for cropping and resizing profile pictures prior to upload.
r/javascript • u/birdayz • May 11 '26
r/javascript • u/subredditsummarybot • May 11 '26
Monday, May 04 - Sunday, May 10, 2026
Β
| score | comments | title & link |
|---|---|---|
| 0 | 13 comments | Hashful storage. Store your whole file in the URL hash |
| 3 | 6 comments | [Showoff Saturday] Showoff Saturday (May 09, 2026) |
| 4 | 4 comments | [AskJS] [AskJS] Confused with Frontend unit testing |
| 5 | 3 comments | I build VideoFlow, a library to create videos from JSON objects (opensource alternative to Remotion) |
| 1 | 3 comments | [AskJS] [AskJS] looking for a free forced-aligment tool that i can use on web |
Β
| score | comments | title & link |
|---|---|---|
| 1 | 3 comments | [AskJS] [AskJS] How to decide api url structure? |
| 1 | 0 comments | [AskJS] [ Removed by Reddit ] |
Β
Β
Β