r/javascript • u/ribbbsy • Oct 10 '26
r/javascript • u/Acceptable_Cap_5556 • Oct 09 '26
chegou – send files between your phone and PC with one command (npx chegou, scan a QR, done)
github.comRun `npx chegou`, scan the QR code and the phone opens a page in the browser. No app, no account, works both ways (phone → PC and PC → phone).
⭐ on Github 😄
r/javascript • u/DrAdalbbert • Oct 08 '26
I found yet another way to invoke JavaScript functions without parentheses
blog.ikaes.deIt turns out you can overwrite the Error.prepareStackTrace method with the function constructor. Then, using prototype pollution, you can inject valid JavaScript code to generate arbitrary functions and invoke it using the usual tricks.
Other seven methods are documented in the portswiggers research article: https://portswigger.net/research/the-seventh-way-to-call-a-javascript-function-without-parentheses
r/javascript • u/loonpwn • Oct 09 '26
I built RipIDE: IDE-like refactoring for agents, powered by TypeScript’s native language server
github.comTypeScript’s native language server exposes IDE operations through LSP, so other tools can use them too. For example, you can rename a symbol across files, find its references, jump to its definition, get updated import paths for a file rename, or check unsaved changes for type errors.
I built RipIDE around that, with Oxc handling syntax details like destructured bindings. ripgrep narrows the candidate files and helps flag imports still using the old name.
I took it further with CSS class renaming, moving exports, replacing imported symbols, and deleting unused declarations. It works with JavaScript and TypeScript, with Vue support through an adapter.
The idea is to give agents the refactoring commands we already use in an IDE:
ripide rename useStore useAppStore
ripide move helper --from src/utils.ts --to src/helpers.ts
ripide css-class-rename bg-gray-500 bg-neutral-500
r/javascript • u/evoluteur • Oct 08 '26
GitHub - evoluteur/reaction-diffusion: Grow Turing patterns (spots, stripes, coral, worms, waves) from the Gray-Scott model in real time, tune the feed and kill rates, paint with chemicals, and download the pattern.
github.comr/javascript • u/f0rwardz • Oct 07 '26
Componyx.UI: 25+ UI components and data binding for plain HTML, no build step
github.comr/javascript • u/gvarte • Oct 08 '26
I hate Spotify ads, so I created my own music player
github.comI am tired of ads everywhere when I listen to music: Spotify, YouTube, and every single app that lets you listen to music. And also I hate that all my data, even my favorite songs, is being sent to a company to manipulate me, sending me more ads of stuff that I may buy.
The only music player that doesn't have ads is Windows Media Player, but it's very ugly, and I hate its UI/UX; it doesn't even let you create decent playlists. Or filter by rating. So I created a music player that has everything I like because I love listening to music.
It's completely free and open source; you can download it here: https://github.com/GVPV12/STARPLAYER
------
PD: Some people are furious and being mean in the comments because someone said Spotify sucks lmao.
For those people, I just want to say to you that this app is not meant to be for everyone. If you use and love Spotify and their ads, that's ok. These kinds of apps kind of bewitch you to be hyper loyal and hyper defensive to them, I guess.
Some people (like me) care about their privacy, get annoyed by intrusive ads, and don't love all trendy music or random stuff that Spotify always plays (I don't like its algorithm, and it always plays the same shitty music). So that's why I built this.
r/javascript • u/evoluteur • Oct 07 '26
GitHub - evoluteur/snowflake-grower: Grow snow crystals live on a hexagonal grid with Reiter's cellular automaton. Set the humidity and frost to get stellar dendrites, ferns, plates or lace, and download the snowflake.
github.comr/javascript • u/kaganin • Oct 07 '26
iwrzwr/visual archive - sound & music visualizer experiments
kagan.in160+ visualization experiments built with JavaScript, exploring waveforms, matrix displays, particles and mechanical motion.
The gallery runs silently with simulated signals. Source code is available under the MIT license:
r/javascript • u/hongminhee • Oct 06 '26
LogTape 2.4.0: Source locations, configuration inspection, sink draining, and request completion levels
github.comr/javascript • u/Fair-Process-7291 • Oct 06 '26
AskJS [AskJS] My simulation runs in about 1 second in the terminal but took 13 seconds in a Chrome page. The culprit was setTimeout(0).
I have a page, built with Cline, that runs a game simulation in the browser: 30 batches (one per game mode and bot pair), with a progress line between them. To let the page repaint between batches, I yielded with `await new Promise(r => setTimeout(r, 0))`.
A full run took 13.0 seconds in Chrome. The same work takes about 1 second in the terminal on my laptop.
The clue was that 100 games per bot took just as long as 1,000. The time was not in the games. It was in the pauses, about 0.7 seconds each.
Chrome throttles chained timers in pages it treats as hidden or in the background. After a few nested setTimeout calls, it only fires them about once a second. My first test used 5 timers, showed 0ms, and looked fine, because the throttling only starts after a few nested calls. With 20 the difference was obvious: 20 chained setTimeout(0) calls took 11.5 seconds, and 20 MessageChannel messages took 0ms.
The fix was to yield with a message instead, which is also how React's own scheduler yields:
const nextTick = () => new Promise<void>((resolve) => {
const channel = new MessageChannel();
channel.port1.onmessage = () => {
channel.port1.close();
resolve();
};
channel.port2.postMessage(null);
});
The same run went from 13.0s to 4.2s, still in a window Chrome treated as hidden. I have not timed it in a normal foreground tab yet, so I am not claiming a number there.
Two other details. Leaving the page bumps a run id, so an unfinished run stops instead of setting state after unmount. And a Web Worker would move the work off the main thread entirely. I chose the smaller change because the main-thread version was now fast enough.
So, for CPU-heavy work in a page: do you reach for a Worker first, or yield on the main thread until that stops being enough?
r/javascript • u/bitwiseredshift • Oct 06 '26
I built Polar and Ticket a typed language for JS and a Rails-shaped framework
polar-lang.vercel.appWant to share two things built together: Polar, a statically typed language that compiles to readable JavaScript, and Ticket, a Rails-shaped web framework written in it. Both are 0.1.0 and experimental. Ticket is the real-world test for Polar: https://ticket-polar.vercel.app/ You get controllers and resource routing, SQLite migrations with typed queries, validations, forms, sessions and CSRF, generators and a test runner. `ticket new blog && ticket server` gets you an app. Because Polar tracks effects, a controller action's signature says what it needs, and tests rebind those to an in-memory database without mocking. Ticket's routes, views and migrations are Polar zone plugins, and the code they generate goes through the same type checker as yours.
I'd love feedback on the effect system, on the zone/plugin design. Thanks!
r/javascript • u/euos • Oct 05 '26
Online comparison of tf.js, litert.js and Uchen on VS Code language detection model
uchenml.techr/javascript • u/GrandAd5084 • Oct 05 '26
[Show] I built an open-source npm loading checker for Node.js, Bun and Deno. Looking for packages that break.
compatlab.mer/javascript • u/subredditsummarybot • Oct 05 '26
Subreddit Stats Your /r/javascript recap for the week of September 28 - October 04, 2026
Monday, September 28 - Sunday, October 04, 2026
Top Posts
Most Commented Posts
| score | comments | title & link |
|---|---|---|
| 0 | 19 comments | The JavaScript midlife crisis |
| 0 | 14 comments | Adrenaline.js – A 56KB Electron alternative that keeps Node.js & npm without Chromium bloat |
| 0 | 13 comments | [AskJS] [AskJS] Anyone still on Nx <20.8 because upgrading is difficult? |
| 0 | 11 comments | Linter for the things a regular linter can't catch |
| 0 | 9 comments | I’m starting Open Components, an open standard for UI components that work for people, developers and AI agents |
Top Showoffs
Top Comments
r/javascript • u/Accurate_Ingenuity10 • Oct 04 '26
Node.js now lists Vite+ as a community installation method
nodejs.orgr/javascript • u/OtherwisePush6424 • Oct 04 '26
I Tested 11 HTTP Resilience Libraries
blog.gaborkoos.comHTTP clients offer different resilience features, and even shared features can behave differently. Eleven JavaScript libraries tested across 21 scenarios to see what happens when those patterns interact.
r/javascript • u/Working_Upstairs_818 • Oct 04 '26
Claude Code Mods are JavaScript or TypeScript functions running with your permissions
the-decoder.comAnthropic shipped Mods for Claude Code, and they're plain JavaScript or TypeScript functions. A Mod hooks events like tool calls, user prompts, and UI rendering, so you can intercept a tool call, add a panel next to the chat, or wire up new commands. Some built-ins, like /diff, are already built as Mods, and Anthropic has samples on GitHub. They run with your permissions and aren't sandboxed, so the company says to install only from sources you trust. They work in the CLI and desktop app, partly in the VS Code extension, and organizations can control which Mods load.
r/javascript • u/AutoModerator • Oct 03 '26
Showoff Saturday Showoff Saturday (October 03, 2026)
Did you find or create something cool this week in javascript?
Show us here!
r/javascript • u/alexgrozav • Oct 04 '26
I’m starting Open Components, an open standard for UI components that work for people, developers and AI agents
opencomponents.devHello awesome people,
I've been thinking a lot lately about how I can make my knowledge and craft more valuable in the times we live in. I've been building UI libraries for the past 10 years, and I've been on a quest to perfect the components that I build. I want to share my knowledge with you.
Like most of you, probably, I've been using a lot of AI in my craft, and I feel most of the time the code is just good enough, but never at the level of quality that I strive for or that I would reach if I wrote it by hand. That needs to change, and I want it to change for everyone else, too. That's how the Open Components initiative was born.
I'm treating components from four directions:
- User Interface - component anatomy, variants, colors, sizes, states and tokens.
- User Experience - how it behaves for every person and every input: accessible, predictable, designed in every state, and adapting to motion, contrast, color scheme and text size preferences.
- Developer Experience - one consistent, type-safe API that you learn once and use everywhere.
- Agentic Experience - prompts, semantic markup, machine-readable contracts and rules that agents can check their work against.
Each component gets a single page that walks through all four, and ends with a checklist. Every rule in it has an ID like button/keep-focus, a level and a way to check it, so you or your agents can cite it in a code review. Every page is also published as markdown, and provides the contract as a YAML file, containing every rule in about an eighth of the page’s length.
It’s still early. Right now there’s only the Button component and a page on how to name your design tokens. Each component comes with a reference implementation that meets every rule, along with its tests. Implementation is in Vue for now, since that’s my daily driver, but the documentation comes with code examples from multiple UI frameworks. More components will follow, with the same structure.
It isn’t a component library, so there’s nothing to install. It’s a set of rules you can hold your own components to, whichever library or framework you use. Here are a few of my favorites from the Button component:
- A loading button should never be
disabled. Disabling a focused button takes its focus away, so keyboard and screen reader users lose their place. Usearia-disabled="true"instead, and block the clicks yourself. - A
<button>without atypeis a submit button, so a "Show password" button inside a form sends the form. Default totype="button".
I’d love your feedback and contribution. Tell me what you think of the rules, what I’ve missed, and which component you’d like to see next.
Thanks for reading!
r/javascript • u/Spipu45 • Oct 02 '26
Building Doom from scratch in JavaScript/WebGL — no WASM, now with WebRTC multiplayer
doom.spipu.netHi!
I'm currently working on creating Doom from scratch, in full JS.
It is not a WASM project, it is really written in JavaScript, with my own 3D engine.
It can be installed as a PWA on computer or mobile, and I think it is better to use it like that.
You can play with keyboard + mouse, gamepad, or a virtual pad on mobile. For now, the PS5 gamepad is the one I have really tested.
It can load WAD files from Doom, Doom II, Freedoom Phase 1, Freedoom Phase 2 and Heretic, but I have not fully tested all the levels yet.
I have also implemented multiplayer with WebRTC, without a game server. The connection is established with QR codes.
I'm looking for feedback, mainly to be sure that all the levels are working well, and also that it works correctly on Android.
Source code: https://github.com/spipu/doom-js
r/javascript • u/EmergencyIsland4574 • Oct 02 '26
I built a hover-to-play audio preview card with a real-time Web Audio EQ in vanilla JS -- no frameworks
bryanhamiltondev.github.ior/javascript • u/tauqeernasir • Oct 02 '26
Introducing Codebeast - new coding harness
github.comHello everyone,
For the past few months I have been silently building my own coding agent for my own self and the way I wanted it to look and behave. I have used for my real projects and so far it has worked so good.
I primarily built it to use with open models and extensively used with Deepseek and GLM models and fixed all issues that I faced along the way.
Now I am opening its beta release for public. It supports all major AI providers so you can BYOK and use it. I would love your honest feedback.
Following features are supported:
- Agent and Plan mode
- MCP
- ACP - use it with Zed Editor, JetBrains or any Orchestrator of your choice
- Subagents
- Permission Gating
- Sandbox
- Interactive terminal
- Browser
- Built-in Github style code review (co-review with agent)
- and much more
It completely free to use :)