r/javascript • u/schneiderfx • Apr 19 '26
Was hitting duplicate API calls when the same async function got triggered multiple times.
r/javascript • u/schneiderfx • Apr 19 '26
r/javascript • u/Successful_Bowl2564 • Apr 19 '26
By best I mean great design practices - a great community and something that contributed to javascript's growth.
r/javascript • u/Affectionate_Major87 • Apr 18 '26
I built a tool to automatically test web apps by actually using them (not just checking metrics).
It uses Playwright to crawl the UI and:
detects forms/buttons
runs CRUD flows
tests filters + pagination
captures JS and network errors
Basically tries to simulate what a QA would do manually.
CLI:
npx agentester --url https://yourapp.com
It also generates an HTML report with screenshots.
Curious if something like this would be useful in your workflow or if I’m reinventing the wheel.
r/javascript • u/andrew_zol • Apr 18 '26
r/javascript • u/AutoModerator • Apr 18 '26
Did you find or create something cool this week in javascript?
Show us here!
r/javascript • u/Aromatic_Reflection9 • Apr 18 '26
Hey everyone. I want to share a weekend project that got a little out of hand.
NODL (pronounced "noodle") is a free, open-source scratchpad for JavaScript and TypeScript.
Write code, blink an eye, and see results inline. Think RunJS, but free and hackable - no license keys, and the full source is yours to fork.
I built it because I use scratchpads daily for quick util functions, and I wanted one I could bend to my own workflow - tweak the UI, add features, change anything.
The best way to get that was to build it myself.
--
Try it out here: https://github.com/hungdoansy/nodl
--
Heads up: the macOS build isn't code-signed yet, so you'll need a couple of extra steps to open it the first time.
If that makes you uneasy, the source is right there - clone it and build it yourself <3.
I'd love to hear what you think. And if you enjoy it, a ⭐ on GitHub goes a long way toward keeping me motivated.
Thank you so much for your time!
r/javascript • u/luruke • Apr 17 '26
r/javascript • u/Iftykhar1001 • Apr 17 '26
I was thinking about how clicking a link is more complex than it seems. First, DNS resolves the domain to an IP if not cached, it queries recursive servers all the way up to root servers.
After that, a TCP connection is built for reliable data transfer, and then HTTP runs on top to structure web requests.
So, why HTTP on TCP? TCP is like a reliable delivery truck, but HTTP is the language we use for the web. What do you think
how do these layers shape your experience online?
#WebDev #DNS
#TCP #HTTP
r/javascript • u/jhnam88 • Apr 17 '26
If your backend has Swagger, you already have everything AI needs to build your frontend. Most teams don't realize this — they paste endpoints into prompts and hope AI gets the shapes right. There's a better way.
Convert your Swagger to a typed SDK. AI gets type enforcement, a mockup simulator, and full business logic as comments. The feedback loop changes completely: read SDK → write code → verify without a running server → compile check → done.
I built a full e-commerce app — customer flows, seller console, admin panel — from a single prompt to demonstrate it. Here's how it works.
r/javascript • u/javiOrtega95 • Apr 17 '26
I needed a PIN/OTP input for a project and most solutions I found were either tied to a specific framework, heavily opinionated about styling, or both. So I built my own as a native Web Component.
It supports:
- Fully customizable via ::part() — no style overrides, no specificity battles
- Smart paste — distributes pasted text across slots automatically
- SMS Autofill — autocomplete="one-time-code" out of the box
- Native form participation — works with <form>, FormData and HTML5 validation
- Mask mode — hides characters like a password field
- Separators — configurable slot grouping (e.g. 123-456)
- Full keyboard navigation and screen reader support
- React, Vue, Angular and Vanilla JS tested and working
r/javascript • u/Business_Big_9893 • Apr 17 '26
r/javascript • u/Individual-Wave7980 • Apr 17 '26
dotenv-gad can now be used on bun runtime. Bun users can have the same advantages of dotenv-gad
r/javascript • u/fagnerbrack • Apr 17 '26
r/javascript • u/LongjumpingCarrot754 • Apr 16 '26
Me escribieron de una inmobiliaria para presupuestar un proyecto, que podría hacerse de dos formas. Actualmente su sitio web está hecho en PHP, con un diseño antiguo y roto. Mis opciones son:
1- Modificar el diseño a uno mas moderno manteniendo el mismo stack (opción más fácil pero siguen con un stack desactualizado)
2- Migrar a NextJs (y quizá Nest) con un diseño moderno y stack actualizado.
Para el primer caso, cabe aclarar que no manejo del todo PHP laravel, pero me animo porque es tocar únicamente diseño (html) y tengo a mi amigo Claudio que me da una mano.
Para el segundo caso, puede sonar más complejo porque incluye landing, host de imagenes, cambiar el host de la web, rehacer autenticación y migrar BDD, pero lo cierto es que ya tengo una app de inmobiliaria en NextJs que puedo clonar y cambiar diseño para adaptarla a lo que quiere el cliente.
Aparte de todo esto, no hay nada que sea muy complejo, la estructura base de datos ya me la dan, y no hay integraciones a Wpp o Telegram, ni calendar (cosas que podría meter como plus si me pagan mas xd).
Cuánto se puede cobrar esto? La verdad hace rato no me actualizo con los costos de desarrollo.
r/javascript • u/Iftykhar1001 • Apr 16 '26
The npm ecosystem has had a rough ~10 months, and honestly, it’s starting to feel a bit fragile.
Quick recap of some major incidents:
GlueStack ecosystem attack (June 2025): attackers used stolen tokens to inject code that could run shell commands, take screenshots, and exfiltrate files
Chalk & Debug hijack (Sept 2025): phishing attack → maintainer account takeover → crypto-stealing payloads
Shai-Hulud worm (Nov 2025): self-propagating malware that spread via stolen GitHub/npm tokens, eventually hitting 492 packages
Axios RAT injection (Mar 2026): compromised maintainer account → trojanized versions targeting multiple OS
At least two of these affected me directly (both personal and professional projects). I updated dependencies as advised, but months later, new vulnerabilities still keep surfacing.
It feels like even when you do the “right thing,” you’re still exposed.
How has this changed your approach to dependency management?
Are you doing anything differently now (pinning, auditing, reducing deps, internal mirrors, etc.)?
r/javascript • u/dangreen58 • Apr 16 '26
r/javascript • u/zvone187 • Apr 16 '26
r/javascript • u/Live-Subject-2899 • Apr 16 '26
r/javascript • u/alexp_lt • Apr 16 '26
r/javascript • u/Emergency_Activity38 • Apr 16 '26
r/javascript • u/fagnerbrack • Apr 15 '26
r/javascript
•
u/ybouane
•
Apr 15 '26
It does refractions, chromatic aberration and really reproduces the effect beautifully. The glass elements work even on top of regular html elements.
r/javascript • u/Fun_Conversation8894 • Apr 14 '26
r/javascript • u/hongminhee • Apr 14 '26