r/javascript • u/AutoModerator • Oct 17 '26
Showoff Saturday Showoff Saturday (October 17, 2026)
Did you find or create something cool this week in javascript?
Show us here!
r/javascript • u/AutoModerator • Oct 17 '26
Did you find or create something cool this week in javascript?
Show us here!
r/javascript • u/ty_namo • Oct 16 '26
Context: I'm coming from Python with FastAPI and want to try build a similar app using express, but the thing i'm most lazy about is definitely configuring swagger, compared to the built-in swagger integration that fastapi provides. apparently express-zod-api tries to bridge that gap, but i don't know how good is it?
r/javascript • u/Appropriate-Letter87 • Oct 16 '26
hey! tsuzuki is a free site that tells you which legal platform streams an anime in your country
source code: https://github.com/tsuzuki-anime/tsuzuki-anime.github.io
no server, no database, just node scripts + github actions + github pages. a few things i figured out along the way:
everything is free, no ads, no account. happy to answer questions about the setup!
r/javascript • u/Busy-Speech-3164 • Oct 16 '26
r/javascript • u/kierzniak • Oct 14 '26
I'm building a host for JavaScript apps and I'd like opinions from people who ship Node.js.
The idea is shared hosting for JS. Your app runs as plain Node.js, with its database, files and cron jobs side by side in one region. When nobody visits, the app is suspended to disk and holds no memory, and the next request usually wakes it in about 0.2 seconds. That's how many apps can share one server, the way PHP hosting always worked.
The trade-off is that your code doesn't run at the edge. My bet is that for most apps, a database next to the code matters more than a server near every visitor.
A few questions for you
- How do you host side projects and smaller production apps today?
- Does edge compute actually help your apps, or is the database round trip the real cost?
- Would a 0.2 s wake-up after idle be fine for your apps?
r/javascript • u/archieofficial • Oct 14 '26
r/javascript • u/gabrielmfern • Oct 14 '26
I'm building a UI library in Jai, and this is an experiment with rendering its UI from JavaScript. Node.js is embedded into the program, so the native side reads the JSX objects straight out of V8, with no IPC and no JSON. It then lays out and draws the whole UI from scratch every frame, at 240 Hz on my Linux computer.
Async isn't supported on it yet, and I've only started implementing some event handling. Here's the source code: https://github.com/gabrielmfern/forbear
Has anyone built something like this? If so, I'd love some advice on how I can reduce the C++ layer and have more of it in Jai instead.
r/javascript • u/Calm-Conflict6309 • Oct 13 '26
Hey everyone! I wanted to share a project I recently built called InkLink (Live Demo).
As a full-stack developer focusing on the MERN stack and TypeScript, I wanted to challenge myself by building a seamless, responsive drawing platform with smooth canvas states and clean UI navigation.
Tech Stack Used:
You can check out the source code on my GitHub (AmnaScript). I'm currently taking on freelance full-stack and AI-integration projectsโif you want to check out my work or get in touch, my portfolio is at amnasabahat.netlify.app or you can find my freelance services on Fiverr.
Happy to answer any questions about the build process! InkLink
r/javascript • u/Xaneris47 • Oct 13 '26
Some notes on implementing a control flow graph for JavaScript/TypeScript
r/javascript • u/unadlib • Oct 12 '26
r/javascript • u/TobiasUhlig • Oct 12 '26
A common way to give a panel its own browser window is a second instance of the app, plus messages (BroadcastChannel, postMessage, storage events) to keep the copies in agreement. Every missed message is a place where they drift.
In Neo.mjs, components, stores and state already live in a worker. Switch that worker to a SharedWorker and every window of the app connects to the same one, so a window only renders. Drag a panel onto your second monitor and it is the same JS object, with the same store and one undo history across windows.
It's one line in the app's neo-config.json:
{
"useSharedWorkers": true
}A dock workspace is two configs, a catalog of panes and the zones they go into (trimmed from the first Dock Layout tutorial):
class MainView extends Workspace {
static config = {
className: 'Guides.dockFirst1.MainView',
panes: {
editor : {module: Component, header: {text: 'Editor'}, html: 'Editor'},
preview: {module: Component, header: {text: 'Preview'}, html: 'Preview'}
},
zones: {
center: {
orientation: 'horizontal',
sizes : [0.6, 0.4],
children : [{items: ['editor']}, {items: ['preview']}]
}
}
}
}One lesson from building it: our automated check for the cross-window drag was green while the real gesture did nothing. Viewport emulation has no window chrome, real windows do, and three bugs hid in that gap. The article walks through them.
Limits, up front: the cross-window measurements are Chrome's, and one shared heap is a shared fate for every window.
Disclosure: I maintain Neo.mjs. The article was written by Grace, one of our AI maintainers, and edited by me.
How do you handle state across windows today?
r/javascript • u/Weak_Cherry_4878 • Oct 12 '26
r/javascript • u/subredditsummarybot • Oct 12 '26
Monday, October 05 - Sunday, October 11, 2026
ย
ย
| score | comments | title & link |
|---|---|---|
| 1 | 3 comments | [AskJS] [AskJS] How would you structure state for VidLoader's local media library? |
| 0 | 6 comments | [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). |
ย
ย
ย
r/javascript • u/LabyStudio • Oct 11 '26
A bit of background on how I built this:
When I switched to Linux, Paint.NET was one of the Windows apps I missed the most, so I started porting the old open-source C# version (3.36.7) to JavaScript back in 2024, while recreating the UI based on the newer 5.x versions.
I went through the original implementation class by class, comparing the outputs of the C# methods with my JavaScript versions. At the same time, I recreated the UI in HTML/CSS, using screenshots to get it as close to the original as possible.
Over time, I connected both parts and implemented the tools, effects, and other features. More recently, I've been using AI to help find and fix bugs, improve performance across browsers, and implement the remaining tools and effects.
It's now largely feature-complete and runs in the browser, as well as on Linux and macOS through Electron.
You can try the browser version here: https://paintjs.net
Would love to hear what you think!
r/javascript • u/AbessCrau • Oct 11 '26
r/javascript • u/ribbbsy • Oct 10 '26
r/javascript • u/Soroush_WP • Oct 10 '26
Link2Repo: https://github.com/soroushosouli/node-scout
Written in Node.js. One command to install. Reads a 300MB folder in ~1 second. Smaller project, faster scan.
What it does:
With clean Terminal UX
Check the repo for more information, Contributions and suggestions are welcome
r/javascript • u/AutoModerator • Oct 10 '26
Did you find or create something cool this week in javascript?
Show us here!
r/javascript • u/magenta_placenta • Oct 09 '26
r/javascript • u/loonpwn • Oct 09 '26
TypeScriptโ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-500r/javascript • u/Acceptable_Cap_5556 • Oct 09 '26
Run `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
It 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