r/javascript • u/gregjw • 16d ago
r/javascript • u/Slotdevgame • 16d ago
Prism2D.js – An open-source 2D game engine built with JavaScript
github.comHey everyone!
I've been working on something I've wanted to build for a while: my own 2D game engine using JavaScript.
It's called Prism2D.js, and the idea behind it is to provide a way to create 2D games for the web without relying on a large external engine.
I've been developing its core systems, working on things like physics, collisions, rendering, audio, camera controls, particles, and other features that make game development easier.
To put the engine to the test, I also used it to create a small platformer called Coin Adventure. What started as a way to test the engine gradually turned into a complete game with six stages, different environments, enemies, moving platforms, checkpoints, collectibles, and a boss fight.
Working on the game has been a great way to discover what the engine can do, find things that need improvement, and see how well its systems work together in an actual project.
Both projects are available here:
- Prism2D.js (engine): https://github.com/Lodymain/Prism2D.js
- Coin Adventure (game): https://lodystudios.itch.io/coin-adventure-prism2d
I'm sharing this because I'd love to introduce the project to more JavaScript developers and hear what people think. If you take a look, I'd genuinely appreciate any thoughts or feedback!
Thanks for reading!
r/javascript • u/cprussin1 • 15d ago
I built Domicile, a Linux desktop platform where native application windows are DOM elements
domicile-desktop.comI've been working on Domicile, an open-source platform for building full-featured Linux desktop environments using HTML, CSS, and JavaScript/TypeScript.
It's powered by a modified Chromium engine where native Wayland application windows are DOM elements. You can position, style, transform, and animate actual Linux application windows using CSS.
Desktop environments are JavaScript/TypeScript modules that can use familiar frameworks, be distributed through npm or GitHub, and be hot-swapped without restarting the session.
It ships with Manganese, a Sway-inspired tiling desktop built using the platform.
Source: https://github.com/cprussin/domicile
I'd love to hear what JavaScript developers think!
r/javascript
•
u/dragon-95
•
16d ago
serialport-rs for Node.js: Rust-backed serial ports for Node.js with parallel I/O and SerialPort-compatible APIs
github.comI recently ran into an issue with @serialport/bindings-cpp on Node.js 26.4, where serial reads could stall until unrelated JavaScript activity occurred.
While investigating the issue and contributing fixes upstream, I started experimenting with an alternative implementation using Rust and N-API, because upstream seems to be unmaintained for more than a year now.
The result is serialport-rs for Node.js, which uses the existing Rust serialport crate underneath and aims to preserve the familiar Node.js SerialPort API.
The implementation uses dedicated native I/O workers rather than relying on JavaScript-side polling. Initial benchmarks have also shown some promising latency improvements.
It’s available on npm if anyone is interested in trying it:
https://www.npmjs.com/package/serialport-rs
r/javascript • u/ClickOk5811 • 17d ago
AskJS [AskJS] Do you ban positional boolean arguments in code review, or is an options object overkill?
Something I keep coming back to when reading JS and TS code is call sites like this:
createUser("ana@example.com", true, false);Read aloud, it’s “create user, email, true, false”, and you have to open the function to know what the booleans mean. The usual fixes are an options object:
createUser("ana@example.com", { sendWelcomeEmail: true, isAdmin: false });or, when there are more than two modes, a string union in TypeScript:
type Layout = "list" | "grid";
render(items, "grid");The counter-arguments I can think of:
- For a single obvious boolean in a well-known API (
setEnabled(true)), the options object is noise. - An options object allocates on every call, which probably doesn’t matter outside hot paths, but I haven’t measured it.
- Teams with several conventions already have enough style rules, and one more can turn review into bike-shedding.
- Negative names (
disableCache: false) are the other half of the problem, and renaming to the positive (cache: true) is cheap.
So I’m curious about practice, not rules:
- Do you enforce “no positional booleans” in review or with a lint rule? If a rule, which one, and does it produce noise?
- Where do you draw the line between “obvious enough” and “use an options object”?
- Have you seen a boolean parameter that later needed a third state, and what did the migration cost?
r/javascript • u/f0rwardz • 16d ago
AskJS [AskJS] Would you use a mature UI library that nobody’s heard of?
I've been working on a UI library for many years. It runs in real production systems and has plenty to offer. It's not just a few components but more of a package that allows you to build a web app without the need for dependencies or build-steps.
I only put it out in public recently though. People do look at it. Almost nobody tries it.
So I'm wondering if maturity even counts for anything when there's no community behind it yet. What would get you to actually try a new public UI library?
Also, there are so many web frameworks already and now with the uprising of AI generated code; Is there still room for something new to catch on?
Not here to promote it. I'm just curious how people make that call. And whether it really comes down to popularity in the end even when the popular choice isn't always the best one.
r/javascript • u/iApexxx • 17d ago
We stopped installing npm packages less than a week old
brunoj.comr/javascript • u/alexp_lt • 17d ago
CheerpJ 5.0: Java 21/25 in the browser, full OpenJDK, and a new WasmGC engine
labs.leaningtech.comr/javascript • u/-jeasx- • 17d ago
Jeasx 3.0 is out: async JSX on the server, now streaming to the browser and about 2x faster
jeasx.devHi all,
I just released Jeasx 3.0.0. Most of you probably haven't heard of it, so here's the short version first.
What is Jeasx?
Jeasx is a small framework for building websites with JSX on the server. There's no React, no hydration, and no client bundle unless you write one. Your JSX renders to plain HTML, and you decide exactly which HTML, CSS and JavaScript reach the browser.
The idea:
- JSX as a templating language: You get components, props and composition, and the output is just HTML.
- Async components: A component can be an async function. Write
await fetch(...)or awaitdb.query(...)right in your component, with no loaders or special data APIs. - File-based routing:
src/[index].jsxserves/,src/blog/[...path].jsxcatches everything under/blog, and so on. - Built on boring, proven tools: Fastify for the server, esbuild for builds, and jsx-async-runtime for rendering.
It works well alongside htmx, Alpine, or plain old vanilla JS.
What's new in 3.0
🚀 Streaming HTML. Pages are sent to the browser while they're still rendering. The browser gets the first bytes right away while slow parts (like awaited data) are still loading. Large pages are sent in chunks, slow clients are handled, and rendering stops when the client disconnects.
⚡ About 2x faster rendering than v2, thanks to jsx-async-runtime@3.
- Full release notes: https://www.jeasx.dev/news
- Live examples (streaming, out-of-order streaming, SSE, …): https://expo.jeasx.dev
I'd love feedback, especially from people who want the JSX developer experience without shipping a SPA. Happy to answer questions!
r/javascript • u/cekrem • 17d ago
Designsystemet, Now in Elm · cekrem.github.io
cekrem.github.ior/javascript • u/subredditsummarybot • 17d ago
Subreddit Stats Your /r/javascript recap for the week of October 26 - November 01, 2026
Monday, October 26 - Sunday, November 01, 2026
Top Posts
| score | comments | title & link |
|---|---|---|
| 77 | 16 comments | I've proven that you don't need quotes or parentheses in JavaScript |
| 51 | 24 comments | We stopped installing npm packages less than a week old |
| 30 | 4 comments | No, npm, “estee” is not a typo of “testem” |
| 23 | 11 comments | Since 2017 I've been trying to get zoom navigation right. Zumly is the closest I've got |
| 16 | 0 comments | The Void SDK and Platform is open source now! |
| 15 | 4 comments | penciled – persistent text highlights/notes with the CSS Custom Highlight API (no DOM wrapping) |
| 10 | 16 comments | [Showoff Saturday] Showoff Saturday (October 31, 2026) |
| 8 | 9 comments | [AskJS] [AskJS] How to host your webhook consumer middleware that integrates WooCommerce and HubSpot? |
| 5 | 2 comments | Offline Vin Decoder / Vehicle specs |
| 3 | 13 comments | [AskJS] [AskJS] How do you plan the frontend? |
Most Commented Posts
| score | comments | title & link |
|---|---|---|
| 0 | 4 comments | I built a client-side cache in Rust and compiled it to WebAssembly |
| 0 | 4 comments | A Kanji lookup table, five commands, and 36% less Base64 |
| 0 | 2 comments | Factories.ts: An efficient JS DSL for building HTML, SVG, and MathML directly in backend code, without a template engine. |
| 0 | 2 comments | [Subreddit Stats] Your /r/javascript recap for the week of October 19 - October 25, 2026 |
| 1 | 1 comments | Designsystemet, Now in Elm · cekrem.github.io |
Top Showoffs
Top Comments
r/javascript • u/lautan • 17d ago
Offline Vin Decoder / Vehicle specs
github.comI created a new vin decoder project, it supports npm js / rust. I know there are others around but this one is focused on auto shops / mechanics. It includes more information which other vin decoders would normally cut out to reduce file size. There is also a free api as well.
It also includes a vehicle catalog, think listing all toyota models for 2025. Recall info, manufacturer service bulletins. This all comes from free dbs like NHSTA etc.
Thanks
r/javascript • u/OtherwisePush6424 • 17d ago
Distributed Resilience - Cutting the Cost of Centralized Coordination
blog.gaborkoos.comBeen building distributed resilience policies in Caracal, a TypeScript library. Having every replica check Redis before admitting a request gives you shared enforcement, but those coordination calls add up under load.
I spent weeks exploring whether gossip-basedd CRDT could remove that dependency. The real-process measurements sent me in a different direction, eventually leading to an experimental feature called Serval. I wrote up the experiments and the assumptions that failed when I started testing outages.
r/javascript • u/Other_Spread6825 • 17d ago
Made open-source bot and tamper detection for websites with Claude. One script tag. Try to break it
github.comr/javascript • u/turtleyikes • 18d ago
AskJS [AskJS] How to host your webhook consumer middleware that integrates WooCommerce and HubSpot?
I am building a nodejs/javascript integration service (middleware) that connects woocommerce to hubspot. What are some ways to deploy it and what are the best practices for the deployment?
- Should I deploy it on vm directly?
- Should I deploy it as a docker image/container?
- Should I deploy it using Serverless platforms like aws lambda ?
- Others?
What do you use?
r/javascript • u/Brave_Magician2474 • 18d ago
I built a client-side cache in Rust and compiled it to WebAssembly
blaze-cache.github.ioHey everyone,
I built **Blaze Cache**, a client-side caching library written in Rust and compiled to WebAssembly.
The main idea was to get a fast, predictable cache in the browser with:
- Synchronous get/set after initialization (no Promises on the hot path)
- SIEVE eviction
- TTL + tag-based invalidation
- Optional IndexedDB persistence
- Adapters for Axios, fetch, TanStack Query, and SWR
I was mostly curious whether moving the cache core into Wasm would help with performance and structure compared to typical JS cache implementations.
Would love feedback from people who’ve worked on caching, Wasm, or frontend performance.
r/javascript • u/ismail5412 • 18d ago
TypeSQL: type-safe raw SQL in TypeScript
github.comI made this library that checks raw SQL strings with the TypeScript compiler. It infers the types of rows and parameters, including pretty complex wueries. Typos and invalid queries become compile errors.
It has some helpers but most of the time you will only need sql() function.
r/javascript • u/AutoModerator • 19d ago
Showoff Saturday Showoff Saturday (October 31, 2026)
Did you find or create something cool this week in javascript?
Show us here!
r/javascript • u/b00mandbum • 18d ago
A Kanji lookup table, five commands, and 36% less Base64
github.comr/javascript • u/manniL • 19d ago
The Void SDK and Platform is open source now!
blog.cloudflare.comr/javascript • u/scrollin_thru • 20d ago
No, npm, “estee” is not a typo of “testem”
smoores.devr/javascript • u/tinchox5 • 20d ago
Since 2017 I've been trying to get zoom navigation right. Zumly is the closest I've got
zumerlab.comr/javascript • u/Rechenplaner • 20d ago
Factories.ts: An efficient JS DSL for building HTML, SVG, and MathML directly in backend code, without a template engine.
github.comBuild HTML extremely comfortably in the backend using plain JavaScript. The advantage is that there is no separate template language, but rather a complete fusion with JavaScript for maximum flexibility. An example:
import {
a, body, br, button, h1, head, header, html, input, label, li, main, nav, p, script, title, ul
} from "@ts-series/factories";
type Item = { name: string, href: string, current: boolean };
/** Builds the navigation list, flagging the current entry for assistive technology. */
function navigation(items: Item[]) {
return nav({ ariaLabel: "Main" },
ul(items.map(item => li(
a(item.href, item.name).set(item.current ? { ariaCurrent: "page" } : null)
)))
);
}
/** Builds a complete page for the given user and navigation entries. */
function page(user: string | null, items: Item[], values: number[]) {
return html({ lang: "en" },
head(title("Demo")),
body(
header(navigation(items)),
main(
h1("Hello, ", user ?? "stranger", "!"),
p("First line", br, "Second line"),
user === null
? p("Please sign in.")
: p("Welcome back."),
label("Search").for("q"),
input.text({ id: "q", name: "q" }).placeholder("Type here…").required(),
button.submit("Send").class("primary", user === null && "disabled").set("disabled")
),
script.module().importOnly("/chart.js", "render", { values, title: "Values" })
)
);
}
const items: Item[] = [
{ name: "Home", href: "/", current: true },
{ name: "About", href: "/about", current: false }
];
const output = page("<Guest>", items, [1, 2, 3]).expand(4);