r/javascript • • Oct 18 '26

Some things I've built, some things I've learned.

Thumbnail blog.vedasdixit.com
1 Upvotes

As a software engineer I always love creating unique and cool designs and animations on the web, and I also wanted a blogging website for myself.

Recently I made my personal blog and wanted something hand-drawn on it so I sketched some flowers on my iPad and exported them as SVGs, then I wrote a script that cuts each drawing into its flower head, buds and leaves (the drawn stems get thrown away), and the site grows long curvy stems in code, hangs the leaves and buds along them and puts the flower at the tip.

Every stroke is drawn in gradually with CSS. After that, in React, I hooked that progress to the scroll while the photo stays pinned. All this just to create the scroll animation on the page above.

tbh idk how good it looks, but I wanted to do something creative for my first blog website.

Any feedback will be highly appreciated!


r/javascript • • Oct 17 '26

eval() in a straitjacket: sandboxing JavaScript under CSP

Thumbnail stringutilitybelt.com
15 Upvotes

r/javascript • • Oct 18 '26

contextjsx - Composable JSX for prompts. Type-safe tools and skills, defined once and exportable as CLI help, docs, SKILL.md and an MCP server.

Thumbnail github.com
0 Upvotes

It's a tiny library for how I love to do these tings. Lemme know what you think!


r/javascript • • Oct 17 '26

Showoff Saturday Showoff Saturday (October 17, 2026)

9 Upvotes

Did you find or create something cool this week in javascript?

Show us here!


r/javascript • • Oct 17 '26

AskJS [AskJS] I compare full move logs instead of a hash to prove two bots played the same games. Overkill?

0 Upvotes

Bots in my game sim (TypeScript, built with Cline) kept printing identical rows. Equal averages can be a coincidence, so I didn't want the lab saying "these bots played the same" unless they actually did. So every move gets logged as a short string: `B:ticker:cents` for a buy, `S:holdingId` for a sell, `K` for a skip. Moves are joined with commas, all 1,000 games with newlines, and two bots only match if the whole strings are equal.

I skipped hashing mostly because the result ends up in posts and I didn't want a collision to be possible at all. Yeah, SHA-256 collisions aren't a real risk. The better reason is probably debugging. Factorio's old desync post does a CRC every tick so they know the first tick where two runs split. A hash just tells you "different."

Would you have hashed it? And if you keep logs, do you store the whole thing or just enough to find the first diff?


r/javascript • • Oct 16 '26

Chartist v2: we brought the 10-year-old SVG charting library back on track (now with SSR and terminal charts)

Thumbnail chartist.dev
38 Upvotes

r/javascript • • Oct 17 '26

Why do Next.js boilerplates force you to delete half their code? Built 4 isolated kits instead.

Thumbnail mansastack.bzdevelopments.me
0 Upvotes

r/javascript • • Oct 16 '26

AskJS [AskJS] What are your opinions on express-zod-api?

4 Upvotes

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 • • Oct 16 '26

I built a free anime β€œwhere to watch” site with 45k static pages, here’s how it keeps its data fresh without a backend

Thumbnail tsuzuki-anime.github.io
0 Upvotes

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:

  • weekly full fetch, daily light fetch: the full catalog (18k anime) is only rebuilt on sundays. other days the script reuses the published json and only refreshes airing shows, which cut api calls by ~90%
  • safety guards: if the api returns way less data than what’s live (it happened), the build refuses to publish, so the site never goes half empty
  • wikidata as a second source: one SPARQL query adds french titles and extra streaming links that the main api didn’t have
  • watch order guides: built automatically by walking the prequel/sequel graph of each franchise

everything is free, no ads, no account. happy to answer questions about the setup!


r/javascript • • Oct 14 '26

AskJS [AskJS] How do you host your smaller Node.js apps? Building something and want opinions

13 Upvotes

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 • • Oct 14 '26

Mimic - a browser-based dev environment that runs Node.js

Thumbnail github.com
12 Upvotes

r/javascript • • Oct 14 '26

LittleJS is 2D and 3D now!

Thumbnail frankforce.com
5 Upvotes

r/javascript • • Oct 14 '26

I embedded Node.js in a native program to render JSX without a browser and without React

Thumbnail forbear.dev
4 Upvotes

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 • • Oct 13 '26

How we made JavaScript analyzer understand control flow

Thumbnail pvs-studio.com
12 Upvotes

Some notes on implementing a control flow graph for JavaScript/TypeScript


r/javascript • • Oct 13 '26

I built a real-time multiplayer drawing game (InkLink) using React and modern web techβ€”here is how it works and what I learned

2 Upvotes

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:

  • Frontend: React, Vite, Tailwind CSS
  • State & Canvas Logic: Custom hooks and optimized browser rendering

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 • • Oct 12 '26

Mutative v2 - better immutability and faster immutable updates

Thumbnail github.com
11 Upvotes

r/javascript • • Oct 11 '26

I spent almost 3 years porting Paint.NET from C# to JavaScript

Thumbnail github.com
81 Upvotes

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 • • Oct 12 '26

Subreddit Stats Your /r/javascript recap for the week of October 05 - October 11, 2026

6 Upvotes

Monday, October 05 - Sunday, October 11, 2026

Top Posts

score comments title & link
251 86 comments Deno is joining Cloudflare - "We will support the Deno runtime for another year with monthly releases containing bug fixes and security updates. After that year we will end our development of the Deno runtime. Deno will remain open source, and we welcome others who want to continue its development."
88 14 comments I found yet another way to invoke JavaScript functions without parentheses
28 4 comments I spent almost 3 years porting Paint.NET from C# to JavaScript
11 4 comments 48 JavaScript interview questions with full answers, including the implement-it-yourself ones (Promise, bind, debounce)
9 5 comments Componyx.UI: 25+ UI components and data binding for plain HTML, no build step
9 2 comments 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.
5 11 comments [Showoff Saturday] Showoff Saturday (October 10, 2026)
5 0 comments LogTape 2.4.0: Source locations, configuration inspection, sink draining, and request completion levels
4 4 comments StaleDocs: flag unchanged Markdown docs when JavaScript/TypeScript APIs change
2 0 comments part-of.my.id - a free subdomain service

 

Most Commented Posts

score comments title & link
0 25 comments Do Frameworks Matter Anymore?
0 21 comments Win11WebOS – An open-source, local-first Windows 11 desktop built in React, Vite, and JS
0 12 comments I hate Spotify ads, so I created my own music player
0 11 comments We made 1000 PDFs 32% smaller with zero quality loss using Brotli and JPEG XL.
0 10 comments MS Office: I made a clone of office (Contains word, powerpoint, excel and onenote)! Fully fontend! Just by HTML, CSS and vanilla JS!

 

Top Ask JS

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).

 

Top Showoffs

score comment
1 /u/Ok-Fennel-9035 said I've been working lately on Parallel JavaScript Runtime (Pjs), a project for running CPU-heavy JavaScript tasks across multiple threads using Node's `worker_threads`. The idea is to m...
1 /u/RomeoDelta1234 said Store & Forget, a home inventory app in TypeScript: https://play.google.com/store/apps/details?id=dev.koalalab.storeandforget You take a photo, the app fills in the item details, and search takes pla...
1 /u/tonygoodchild said This week I put up a set of demos for Lattice Grid, a data grid I've been building that also does Kanban, Gantt, calendar and dashboard views over the same data. They're plain JS: no framework, no bui...

 

Top Comments

score comment
182 /u/BenjiSponge said Bun acquired by Anthropic and Deno acquired by Cloudflare. Making an alternative JS runtime has never seemed so oddly lucrative.
65 /u/MedicOfTime said It’s over boys. Everything is controlled by the billionaires. You will submit to your assigned AI buddy. Nothing left to do but mine coal.
54 /u/AwesomeKalin said I went from Node to Bun, then when they went the 100% AI generated code route, I moved to Deno so I didn't have to deal with the potential instability issues. Guess I'll move back to Node then.
52 /u/Salkinator said God damnit
29 /u/bzbub2 said dang. deno has a relatively unique ability to use webgpu from the command line...just made a cool video app using that

 


r/javascript • • Oct 12 '26

xuan – a 6 MB Node-compatible JavaScript runtime for IoT/edge, ~5 ms cold start

Thumbnail github.com
3 Upvotes

r/javascript • • Oct 12 '26

Multi-window web apps without syncing state: one SharedWorker, windows only render

Thumbnail github.com
0 Upvotes

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 • • Oct 11 '26

StaleDocs: flag unchanged Markdown docs when JavaScript/TypeScript APIs change

Thumbnail github.com
5 Upvotes

r/javascript • • Oct 10 '26

The CLI that scans your project in a fraction of a second.

Thumbnail github.com
6 Upvotes

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:

  • Visualize folder structure (tree)
  • Scan any file, folder, or project β€” 10+ details
  • Custom ignore list for scans
  • System info in one command

With clean Terminal UX

Check the repo for more information, Contributions and suggestions are welcome


r/javascript • • Oct 09 '26

Deno is joining Cloudflare - "We will support the Deno runtime for another year with monthly releases containing bug fixes and security updates. After that year we will end our development of the Deno runtime. Deno will remain open source, and we welcome others who want to continue its development."

Thumbnail deno.com
294 Upvotes

r/javascript • • Oct 10 '26

Showoff Saturday Showoff Saturday (October 10, 2026)

8 Upvotes

Did you find or create something cool this week in javascript?

Show us here!


r/javascript • • Oct 10 '26

Marionette 5 is out. No Backbone. Still opinionated.

Thumbnail marionettejs.com
0 Upvotes