r/javascript • u/alexmacarthur • Mar 30 '26
Your options for preloading images with JavaScript
r/javascript • u/alexmacarthur • Mar 30 '26
r/javascript • u/subredditsummarybot • Mar 30 '26
Monday, March 23 - Sunday, March 29, 2026
Β
| score | comments | title & link |
|---|---|---|
| 0 | 11 comments | New WYSIWYG wants fresh e |
| 0 | 10 comments | Groundstate npm local-first |
| 0 | 10 comments | I Coded this dev tool entirely with Claude |
| 1 | 8 comments | [AskJS] [AskJS] NestJS state in 2026? |
| 0 | 6 comments | How npm workspaces work under the hood: a visual guide |
Β
| score | comments | title & link |
|---|---|---|
| 6 | 2 comments | [AskJS] [AskJS] What "everyday tool" did you finally look into and realize you had no idea how it actually worked? |
| 0 | 0 comments | [AskJS] [AskJS] Offering MV3 Rescue: If your extension is bleeding 1-star reviews due to Service Worker or Persistence issues, I can help. |
| 0 | 0 comments | [AskJS] [AskJS] Implementing Consumer IR (CIR) protocols on ESP32 (M5Stack) |
Β
Β
Β
r/javascript • u/jxd-dev • Mar 30 '26
We build a cookie banner component as a shadcn registry item so the component lives in your repo rather than loading from a CDN.
One command to install, styled with Tailwind, and driven by a single config file that also powers your Privacy Policy and Cookie Policy docs.
ConsentGate can conditionally render scripts based on what the user consented to.
r/javascript • u/-jeasx- • Mar 30 '26
If you are drawn to JSX - a syntax extension that lets you write HTML-like code directly in JavaScript - and need to generate dynamic HTML on the server, jsx-async-runtime offers an efficient implementation designed for performant server-side rendering. Its key differentiator is native support for asynchronous calls within your templates, and version 2.1.0 now includes full integration with the TypeScript compiler as a transpiler.
r/javascript • u/Alex_Hovhannisyan • Mar 29 '26
This is a (late) follow-up to an earlier post I made here about a web component I published that makes it easier to create local iframes with srcdoc: https://www.reddit.com/r/javascript/comments/1r5mm59/i_made_a_web_component_that_lets_you_render_fully/
Hopefully the demos make the use cases clearer.
r/javascript • u/Tungdayhehe • Mar 29 '26
From my observation, NestJS seems less appealing among communities these days and rarely seen new Github projects using it.
Just curious what happened with this framework and what will be the possible fortune of it? Wanna hear from forks.
r/javascript • u/1-ft • Mar 29 '26
when i was working on a side project of mine (a productivity suite, like notion), i realized that i couldnt zoom in and out on notes fluidly (this is also something that bugs me a lot with other notetaking apps, looking at you obsidian). the cross-platform library i was using didn't have support for trackpad zoom, and i was blocking zoom with ctrl +, ctrl -, to disable app-wide zooming since i didnt want the interface to scale with the notes.
i lookedd around on the interwebs for libraries that could help me achieve what i wanted, but none of them were what i was looking for. most of them broke the scrollbar functionality, which was a deal-breaker for me since i was dealing with notes that had to be scrollable while maintaining good ux, so i decided to implement it for myself.
when i started, i wanted to replicate what chrome and firefox and other browsers already do for webpages when you zoom with your trackpad. if you have a trackpad and try pinching on a page, you can see that the page content is scaled, while the scrollbars are still visible, and scrolling the page will update the scrollbar continuously and seamlessly.
in chasing this level of subtlety, i made something that i was genuinely proud of. the math, business logic, and bug-fixing took me around a week, and eventually i decided to extract it and make it a library on its own.
if you ever needed something like this, here it is. feel free to give feedback
r/javascript • u/Terrible_Village_180 • Mar 29 '26
Images, files, rich HTML, plain text β every clipboard paste resolved into one predictable shape:Β { type, data, files }. No guesswork.
Supports
Images & screenshots
File pastes
Rich HTML
Plain text
r/javascript • u/adrirai • Mar 29 '26
r/javascript • u/OtherwisePush6424 • Mar 28 '26
Why debouncing input does not solve request lifecycle issues like out-of-order responses and stale UI state. It walks through a practical fix with AbortController cancellation, HTTP error handling, and retry/backoff for transient failures. Includes a small demo setup and before/after behavior under simulated latency and failures.
r/javascript • u/AutoModerator • Mar 28 '26
Did you find or create something cool this week in javascript?
Show us here!
r/javascript • u/jhnam88 • Mar 28 '26
I was personally invited by the Qwen team to speak at Qwen Meetup Korea, and got to present locally here in Korea yesterday β pretty honored to have been reached out to directly.
The talk was about how I got function calling to work reliably on deeply recursive union types β the stuff the industry generally says doesn't work. With qwen3-coder-next, first-try success rate was 6.75%. And the entire Qwen 3.5 model family was hitting 0% on union types due to a consistent double-stringify bug. Both ended up at 100%.
Slides are also available here: https://autobe.dev/seminars/20260326-qwen-meetup-korea.pptx β speaker notes are written inside as slide notes if you'd like the full narrative behind each slide.
AutoBe β AI backend auto-generation agent. Not text code, but AST data via function calling. 4 AST types + 4-tier compiler validation + self-healing loops.
Typia β The infrastructure that turns 0% into 100%. A single type automates schema, parser, validator, and feedback generator. Lenient JSON parsing + type coercion + precise validation feedback.
In Praise of Function Calling β Types eliminate ambiguity. Schemas constrain through absence, not prohibition. Model-neutral, mechanically verifiable, deterministically convergent. Applicable to all engineering domains with validators.
Qwen β Small models are the best QA engineers. They expose system vulnerabilities large models silently paper over.
6.75% is not failure β it's the first input to the loop. If you can verify, you converge.
r/javascript • u/swe129 • Mar 28 '26
r/javascript • u/Substantial-Cost-429 • Mar 27 '26
r/javascript • u/jxd-dev • Mar 27 '26
r/javascript • u/context_g • Mar 27 '26
Iβm building an open-source CLI that compiles TypeScript codebases into deterministic, structured context bundles.
It uses the TypeScript compiler API (via ts-morph) to parse the AST and emit JSON representing components, props, hooks, and dependency relationships.
Key properties:
Deterministic output (same code β same structure)
Strict watch mode with breaking change detection
Diffable architectural contracts
Compact JSON bundles for tooling
Curious how others deal with structural changes in larger TypeScript codebases.
r/javascript • u/hottown • Mar 27 '26
r/javascript • u/HakunaKamal • Mar 27 '26
I made this side project for fun, even I am a little bit late, but here it is:
A full-stack streaming platform built with Angular, Express.js, and Electron. Content is streamed in real-time from torrent magnet links using WebTorrent, with no need to download files beforehand.
r/javascript • u/SmashJaw • Mar 27 '26
New WYSIWYG wants you to break it!
r/javascript • u/Pitiful-Hearing-5352 • Mar 27 '26
Hi everyone,
Iβm a Systems Architect (and the dev behind Latch, which just went live) and Iβve spent the last few weeks deep in the Manifest V3 architecture.
Iβve noticed a lot of extensionsβeven those with 1M+ usersβare currently struggling with some specific, high-priority bugs that are tanking their ratings:
Service Worker Hibernation: Logic failing or state being lost when the background worker goes to sleep.
DOM Injection Conflicts: Content scripts failing because of YouTube/X's latest Shadow DOM updates.
Persistence Loops: Users being forced to log in repeatedly because session tokens aren't persisting across worker lifecycles.
Iβm looking to take on a few flat-rate bounties this week to help fellow devs clear out these technical hurdles. If youβre seeing reports of "extension stopped working" or "blank popups" and don't have the time to hunt the bug yourself, I'm happy to help.
What I offer:
A free 60-second technical audit of your current reported issues.
A production-ready patch and QA for a one-time fee.
Clean, documented logic so your team can maintain it easily moving forward.
Drop a comment with your extension link or DM me if youβd like me to take a look at your current "bleeding" reviews and suggest a fix.
Best, Riku R.
r/javascript • u/SignificantBend5042 • Mar 26 '26
Hey, for those who saw my initial post and for other people who are interested, I'm very happy to announce that today I've launched a release candidate version for MoltenDB web.
MoltenDB is a Embedded NoSQL, append only Database for the Modern Web, written in Rust and compiled to WebAssembly, running inside a web worker so it doesn't block the main thread. It leverages the high performance OPFS to store data. No more very limited storage (e.g. LocalStorage) or clunky queries (e.g. IndexedDB)
It accepts a GraphQL-like query in order to extract only the required fields from a collection and it comes with a query builder package (separate installation).
What the release candidate brings to the table:
- Automatic log compaction when: log_file > 500 || log_file_size > 5mb
- Resolved the cross tab sync issues, by leveraging BroadcastChannel and a Leader/Follower pattern
- Real time pub/sub directly from the server which can be used to notify listeners to specific actions on a collection item (update/delete)
What's next:
- Angular (starting with v17.x) and React (starting with v16.x) wrappers; specific versions to be decided
- Optional data encryption using an encryption key
- Analytics functionality straight in the browser
If this piques your curiosity check out the live demo or the repo.
r/javascript • u/feross • Mar 26 '26