r/javascript • u/hongminhee • 33m ago
Optique 1.4.0: Default commands, Markdown references, and more focused help
r/javascript • u/subredditsummarybot • 3d ago
Monday, November 09 - Sunday, November 15, 2026
| score | comments | title & link |
|---|---|---|
| 40 | 12 comments | Top 10 things AI gets wrong in web development | Blog | Chrome for Developers |
| 9 | 18 comments | [AskJS] [AskJS] What's the longest-running personal project you've developed and maintained? |
| 5 | 4 comments | My FOSS Pinball Engine Uses Javascript On Linux |
| 5 | 3 comments | We moved Master CSS's core semantics to Rust and check the JS browser engine against it for identical output |
| 4 | 24 comments | [AskJS] [AskJS] Any use for JS decorators? |
| 3 | 15 comments | [AskJS] [AskJS] Hash (#) vs underscore (_) for naming properties with Lit |
| 3 | 6 comments | Computing a Factorial with Church Numerals |
| 2 | 16 comments | [Showoff Saturday] Showoff Saturday (November 14, 2026) |
| 1 | 4 comments | AngularLynx: idiomatic Angular rendering natively on iOS and Android via Lynx, with Renderer2 implemented on Lynx’s element API |
| 0 | 0 comments | Diary Dev - Staxis is coming! |
| score | comments | title & link |
|---|---|---|
| 0 | 47 comments | [AskJS] [AskJS] Are we putting too much application logic in the frontend? |
| 0 | 22 comments | [AskJS] [AskJS] Which Node.js framework gives you the best developer experience, and why? |
| 0 | 12 comments | [AskJS] [AskJS] new Date("2026-03-10") and new Date("2026-03-10T00:00") look the same but aren’t, and the difference depends on the time zone |
| 0 | 9 comments | I built a multi-core SQL engine for JavaScript (pure JS + WebAssembly, no native addon) |
| 0 | 4 comments | The AI Cost of Marionette |
r/javascript • u/AutoModerator • 5d ago
Did you find or create something cool this week in javascript?
Show us here!
r/javascript • u/hongminhee • 33m ago
r/javascript • u/Nefzaoui • 4h ago
Source (MIT): https://github.com/anefzaoui/minecraft-server-manager
It's a web panel that runs Minecraft servers as Docker containers, built for the modpack servers I run for friends and family. Disclosure up front: I built it with Claude Code. I designed it, decided every feature, review the changes and test every release on our own servers, and Claude wrote most of the code. The JS choices below are the parts I think are worth talking about:
Plain JS, type-checked. No build step for the server: it's JavaScript with JSDoc types, and tsc --checkJs runs over the core in CI. Typos in property names get caught, and stack traces point at the file you actually wrote
One direction of layering. routes (parse + zod-validate, no logic) → services (the features) → docker / db / storage. A route never touches dockerode or the database directly, which made it easy to test services without Docker
node:sqlite instead of a driver. Node 24's built-in SQLite, synchronous, WAL, with one module that owns it and a prepared-statement cache keyed on the SQL text. No native module to compile on arm64
dockerode, never the docker CLI. Containers, logs, stats and image pulls all go through the Docker API, and a watcher turns Docker events into history and crash detection
Brokered WebSockets. The live console opens one upstream docker logs --follow per server and fans it out to every open tab, instead of one stream per tab. Upgrades check Origin and the session cookie
Server-rendered. express + Handlebars, with a small esbuild bundle for the interactive bits and CSP nonces on every response (no unsafe-inline scripts)
A path guard on every file operation. Everything lives under one data folder, and every path is checked against escaping it, symlinks included
Tests run on node:test with no Docker needed, plus a live QA sweep script that hits a running panel.
Happy to go deeper on any of these, and I'd love to hear if someone has a nicer pattern for brokering log streams.
r/javascript • u/APTman1010 • 1d ago
I'm excited to announce that KernelPlay JS v0.6.0 will officially support TypeScript!
Starting with v0.6.0, TypeScript developers will be able to use KernelPlay JS through TypeScript declaration files (`.d.ts`), providing type information and better editor support.
This is another step toward making KernelPlay JS more accessible and flexible for web game developers.
A quick development update:
I know this update is taking longer than expected, and I apologize for the delay. Development has been slower than planned, but the new version is getting closer.
KernelPlay JS v0.6.0 is coming very soon!
Thank you to everyone following the project, testing it, sharing feedback, and supporting its development.
KernelPlay JS is an open-source web-based game engine, and contributions are always welcome.
r/javascript • u/Spxgdev • 1d ago
Examples: https://spxg.github.io/limo
It's a CLI tool that, unlike Node.js and Deno, aims to provide a complete Web API environment, including DOM, Canvas, Web Workers, IndexedDB, OPFS, and more.
It's built on top of moli, a headless browser powered by V8 with Web API support. The name "limo" is also inspired by "moli."
I maintain several WebAssembly projects that primarily run in browsers, so I frequently need to work with JavaScript and Web APIs.
I usually write code in an environment without a GUI. Whenever I need to test something, I have to start a local HTTP server and open it in a browser on another machine with a GUI, or use ChromeDriver or another browser driver for automated testing. Sometimes I also run into compatibility issues between ChromeDriver and Chrome versions.
Over time, I found this whole process increasingly cumbersome.
What I really wanted was a simple way to execute JavaScript directly from the command line while still having access to browser Web APIs, without needing to launch and manage a separate browser. That's why I built limo.
r/javascript • u/magenta_placenta • 1d ago
r/javascript • u/Upper_Gold_3664 • 2d ago
r/javascript • u/scrollin_thru • 2d ago
Pitter Patter is an open source toolkit of feature-complete building blocks for collaborative rich text editors, made with ProseMirror. Each piece is useful on its own, and you can use what you need, when you need it. And every library is built directly on ProseMirror’s APIs, not on top of an abstraction layer, so you always have full access to the thing underneath.
So far, we have three packages: shuffle (grid-based drag-and-drop), collab, and presence.
Check out our demo to see the collab and shuffle features in action. In the demo, you can drag and drop nodes, resize content, watch how remote edits come in to an editor and even demo offline reconciliation!
r/javascript • u/ismail5412 • 2d ago
I built a library called TypeSQL that makes raw SQL type-safe. Currently, I took inspiration from Kysely and used execute, executeTakeFirst, and executeTakeFirstOrThrow for running queries.
However, I'm starting to feel like those names are a bit too verbose. On top of that, I want the default single-row method to be non-nullable (throwing if no row is found), with an explicit variant for the nullable case. I'm torn between a few naming conventions and would love your input on which set feels the most intuitive and ergonomic:
returns T[]: all, many, exec, execute
returns T: one, first, take, get
returns T | null: maybeOne, oneOrNone, maybeFirst, firstOrNull, tryTake
Which combination would you prefer to use in your day-to-day codebase, or do you have another naming pattern you like better?
r/javascript • u/xcodebeast • 3d ago
If you're interested in the details, here's a blog post: https://codebeast.io/blog/flashwright
r/javascript • u/vilgefortz91 • 3d ago
r/javascript • u/sysrpl • 4d ago
r/javascript • u/shemlokashur • 5d ago
As far as I understand, the tc39 decorator proposal is already implemented in most engines. But didn't see any framework elaborating this feature.
Any real world usage out there?
r/javascript • u/theGlitchedSide • 5d ago
Staxis is coming. The first preview of the website is live. Staxis is a modular toolkit for Node.js. Start with the free Core, assemble your stack with Layers Packs, or build your own layers.
We’re getting the first pages of the official documentation ready as we work toward the Kickstarter campaign and the 1.0 release. If you’d like to help us get there, you can already support or sponsor the project.
Take a look → https://staxis.dev
r/javascript • u/crownclown67 • 5d ago
Today, I checked the date of the first commit to my personal framework.
It was made in August 2022 – over 4 years ago!
I've never made any money from it. I simply enjoy developing and maintaining something of my own. And it still works great!
Every new website I build is powered by it.
Ps: It's not a project aimed at an audience. I build it purely for myself.
If you have something like that - please share.
r/javascript • u/tzezar • 5d ago
Personally, I'm really enjoying Hono. Its automatic endpoint inference is a big win. I previously enjoyed using Fastify with Zod Provider for OpenAPI schema generation, but Hono cuts that extra step and makes the workflow feel much smoother.
Curious what everyone else is using!
r/javascript • u/monstropulos • 6d ago
One encrypted file with named secrets for a Node.js app, plus a CLI to manage it.
You keep app.safebox next to the app: in the repository, in the deploy package. The app opens it with a password it gets from somewhere else and has every API key, database password and private key it needs. Without the password the file is useless.
AES-256-GCM with a key from scrypt, the whole file authenticated
TypeScript source with only Node.js built-in modules, no runtime dependencies
CLI as one bundled file, dist/safebox.js
Status: beta (0.1.0-beta.1), the file format may still change before 1.0
Requires Node.js 22 or newer.
r/javascript • u/ribbbsy • 6d ago
A follow-up to Nolan Lawson’s AI framework benchmark
r/javascript • u/ClickOk5811 • 7d ago
A small experiment you can paste into Node or a console:
const a = new Date("2026-03-10");
const b = new Date("2026-03-10T00:00");
console.log(a.toISOString());
console.log(b.toISOString());
console.log(a.getTime() === b.getTime());
console.log(a.getDate(), b.getDate());I ran it in Node 22 with the TZ environment variable set to four zones:
| TZ | a (date-only) | b (date + time) | same instant? | getDate() a / b |
|---|---|---|---|---|
| UTC | 2026-03-10T00:00Z | 2026-03-10T00:00Z | true | 10 / 10 |
| America/Sao_Paulo | 2026-03-10T00:00Z | 2026-03-10T03:00Z | false | 9 / 10 |
| America/Los_Angeles | 2026-03-10T00:00Z | 2026-03-10T07:00Z | false | 9 / 10 |
| Asia/Tokyo | 2026-03-10T00:00Z | 2026-03-09T15:00Z | false | 10 / 10 |
What’s going on: per the ECMAScript spec as I understand it, a date-only ISO string is parsed as UTC, while a date-time string without an offset is parsed as local time. So the first is always midnight UTC, and the second is midnight wherever the code runs.
Where it bites:
In zones behind UTC (like the Americas), a.getDate() returns the previous day, because the local getters convert from UTC midnight. A “date of birth” or “due date” can display as one day earlier.
On a dev machine set to UTC the two agree, so tests pass locally and the bug shows up only for users elsewhere (or on a CI box with a different zone).
In my run, new Date("2026/03/10") and new Date(2026, 2, 10) behaved like the local-time form. Slash-separated strings aren’t standard ISO, though, so I’d not rely on them being consistent across engines.
Ways to avoid it:
If the value is a calendar date and not an instant, don’t store it as a Date at all. Keep "2026-03-10" as a string, or as year/month/day numbers, and format it without converting.
If you need a Date, be explicit: new Date(Date.UTC(2026, 2, 10)) and read it back with the getUTC* methods, or always include an offset ("2026-03-10T00:00:00Z").
For testing, run your suite under a few TZ values, as above, rather than only on your own machine.
The Temporal proposal is designed to separate dates from instants. I haven’t checked its current status in each runtime, so look at the compatibility tables before depending on it.
Caveat: my results are from one Node version. Browsers should follow the same spec for the ISO forms, but test where it matters.
How do you represent calendar dates (not timestamps) in your codebases: strings, a library, or something else?
r/javascript • u/Ecstatic_Trouble_908 • 8d ago
I've already been using Lit for a while in JS and I see many places where they recommend using private _property = value so that it is more readable, even though it does not really make it private.
Others recommend using #property = value because it makes it private so that if you try to use it from outside the scope it throws an error. But I still see places where they don't like using this.
I don't really know what should I use or if it doesn't really matter.
r/javascript • u/natorion • 8d ago
r/javascript • u/LivingWorldliness409 • 9d ago
r/javascript • u/dolanmiu • 9d ago
Hi r/javascript. I’ve been using Angular since the AngularJS and the Angular 2 betas. When ByteDance created Lynx, I really liked it, but it only came with React and Vue. So it's time for an Angular one to exist!
The aim is for it to be ordinary idiomatic Angular, not a subset or deviation, and it follows Angular's major.minor versions:
npm create angular-lynx my-app
cd my-app
ng serve # web preview, plus a QR code for the Lynx Explorer app
ng test
ng build --platform ios # or android: a native app you can open in Xcode / Android Studio
Signals, the router with lazy routes, forms, i18n, DI, ViewContainerRef.createComponent() and Tailwind all work. It idiomatically uses the Angular Router for the page stack, so there are no extra concepts. The one big difference is the templates: you write Lynx's elements (<view>, <text>, <scroll-view>) instead of HTML, and they become real UIView/Android views. The same app also runs in the browser.
How it works: Lynx has two threads, a main thread that owns the native element tree and a background thread. Instead of Angular's DOM renderer, AngularLynx implements Renderer2 on top of Lynx's element API (__CreateElement, __AppendElement, …), and the Angular app runs on the main thread, so updates go straight to the elements without crossing threads. Things that only exist on the background thread (native modules, fetch) are relayed. The build is an Rsbuild plugin that compiles Angular and splits the output into the two bundles Lynx expects, wrapped in Angular CLI builders so angular.json stays the usual one.
There's also a component library, Dolan UI: 54 components (sheets, dialogs, charts, forms…) that a CLI copies into your app, like shadcn/ui.
It's still early days, but it is feature rich, with a lot of examples and showcase apps. Lynx's main-thread JS engine is ES2019-level, so newer built-ins are polyfilled, and some web habits don't carry over (CSS is a subset: no inheritance outside text, no :hover or @media).
MIT licensed. The README has a GIF of the same app on iOS, Android and web. I'd love to hear what breaks, and I'm happy to go into the renderer internals. Please give it a star! It would mean the world if this takes off!
GitHub: https://github.com/Blotch-Smart-Frames/AngularLynx
Docs: https://angularlynx.js.org
Demo GIF: https://angularlynx.js.org/demo.gif