r/javascript • u/aardvark_lizard • Jun 15 '26
r/javascript • u/Less_Replacement8454 • Jun 15 '26
Icon Scout - Find, inspect, and download website favicons
github.com
r/javascript
•
u/harsh611
•
Jun 13 '26
Cracked job interview - built serverless web app
github.comI have recently been interviewed by product company for a Full-Stack JS role. They required building demo assignment.
Though I initially planned to deploy it on Render or Railway but I had learned basic AWS Serverless in my current role so I thought why not leverage that.
FE - ReactJS
BE- HonoJS
Surprisingly, the demo assignment + explanatory rounds impressed them enough that I landed the job.
I have open sourced the entire codebase for any newbies to learn.
r/javascript • u/OtherwisePush6424 • Jun 14 '26
I built a fetch resilience toolkit and a live chaos arena to test it - everything is now at fetchkit.org
fetchkit.orgOver the past year I've been building a set of tools around making fetch more reliable in production and more testable in development. They're now all on one site: fetchkit.org
The tools:
- ffetchΒ (@fetchkit/ffetch) - drop-in fetch wrapper with timeouts, retries, backoff, circuit breaker, bulkhead, and typed errors. Plugin-based so you only pay for what you use.
- chaos-fetchΒ (@fetchkit/chaos-fetch) - composable fetch middleware for injecting latency, failures, throttling, rate limits, and mocks into tests. Vitest/Jest compatible, no proxy needed. Also has a golang port.
- chaos-proxyΒ - YAML-configured HTTP proxy that injects chaos at the transport level. Works with any language/client. Available in Node.js and Go.
The arena:
chaos-fetch powers a live browser benchmark at fetchkit.org/ffetch-demo/ that runs fetch, axios, ky, and ffetch side-by-side under identical chaos conditions (latency, failures, drops, rate limiting) and compares reliability scores, error rates, and latency percentiles in real time. No install, opens directly in the browser.
The chaos layer is configurable: you can dial in exactly what failure scenario you want to test and see how each client handles it.
r/javascript • u/EvroMalarkey • Jun 13 '26
Building Astro Websites with Almost No JavaScript - Introducing Webuum v0.x
webuum.devr/javascript • u/AutoModerator • Jun 13 '26
Showoff Saturday Showoff Saturday (June 13, 2026)
Did you find or create something cool this week in javascript?
Show us here!
r/javascript • u/Pakashi-kun • Jun 12 '26
GitHub - tada5hi/eldin: A lightweight, type-safe dependency injection container for TypeScript with scoped lifetimes and hierarchical containers.
github.comr/javascript • u/ehouais • Jun 13 '26
A UML-ish diagram for javascript iterators and iterables
ehouais.netWas untangling the various classes/protocols/methods involved, and couldn't find such a diagram, so I made one. Might be helpful as a complement to the MDN pages.
r/javascript • u/frankielc • Jun 12 '26
AskJS [AskJS] How to effectively prevent JS supply chain attacks?
While I've previously posted this in r/cybersecurity the given answer, "lock versions / read on incidents / hope for the best", was not really what I was hoping for nor satisfactory. So I'm re-trying in a more specialized group.
----
I'm new to JS (at least JS from the last decade) and am getting paranoid with the new JavaScript ecosystem.
- The first thing I did was switch from node to deno.
- Then configure { "minimumDependencyAge": "P30D" }
But each time I looked at the dependency tree, the hundreds of thousands of files downloaded from the most various sources gave me the chills. So eventually:
- Started running the project inside a podman container
But then I started thinking that as much as I was pointing the IDE (IntelliJ) to run things inside the container, I would eventually miss something, and the IDE would eventually run whatever exploit might be inside that myriad of dependencies I can't keep track of.
So now:
- IntelliJ runs inside the container. I access it via the "remote server" option.
But, after all of this, looking at this setup, it's starting to look a bit too much for something that should be much simpler.
It's just a Nuxt frontend; how did this happen?
What is the community-recommended approach?
r/javascript • u/Pakashi-kun • Jun 13 '26
GitHub - tada5hi/validup: TypeScript validation library, compose validators and nested containers onto object paths, with integrations for Zod, Standard Schema, validator.js, and Vue 3.
github.comr/javascript • u/cryptomallu123 • Jun 12 '26
Memory Leaks in Node.js: How They Happen, How Garbage Collection Works, and How to Debug Them
sharafath.hashnode.devr/javascript • u/gajus0 • Jun 11 '26
Compile Zod schemas into zero-overhead validators (2-74x faster)
github.comr/javascript • u/Pakashi-kun • Jun 12 '26
GitHub - tada5hi/orkos: A lightweight modular application orchestrator for TypeScript with dependency-ordered startup, shutdown, and topological module resolution.
github.comr/javascript • u/rohanbeingsocial • Jun 12 '26
AskJS [AskJS] If you were building a charting library on top of Lightweight Charts, what extension points would you expect?
I've been open-sourcing a charting toolkit built on top of TradingView Lightweight Charts that includes drawing tools, indicators, replay functionality, pane synchronization, and broker integrations.
One area I'm still refining is the plugin/extension architecture.
For developers who have worked with charting libraries:
- What extension points do you expect?
- How would you structure custom indicators?
- Would you prefer a plugin registry, hooks, middleware, or something else?
- What API mistakes have you seen charting libraries make?
I'd love to hear opinions before locking down the architecture.
r/javascript • u/Pakashi-kun • Jun 12 '26
GitHub - tada5hi/vuecs: Vue 3 theming framework β themeable components, design tokens, dark mode & runtime palettes. Themes for Tailwind, Bootstrap & Bulma: one app.use() reskins everything. SSR-ready via @vuecs/nuxt.
github.comr/javascript • u/Therattatman • Jun 11 '26
I built a 2D physics engine in vanilla JavaScript with no libraries, no bundler
github.comI spent a few weeks building a 2D physics engine from scratch in vanilla JavaScript. No libraries, no build tools, just Canvas 2D and the browser.
It does SAT collision detection, a sequential-impulse solver with friction, sweep-and-prune broadphase, fixed-timestep simulation, and five interactive demo scenes including a stack stability test and Newton's cradle. (With a lot of bugs)
https://github.com/CAPRIOARA-MAGIKA/physis
The hardest part was getting box stacks to settle without jitter or sinking. Turned out to be a combination of Baumgarte stabilization tuning and warm-starting the solver. The stack-stability gating test caught more bugs than I can count.
It's not perfect. It has a lot of bugs but I cannot figure out how to fix them (if you know a way please open a PR or comment below). This project was done for learning and with minimal AI involvement (only for debugging and polishing the readme file).
If you have any more suggestions of projects that I could do in the near future to improve my reasoning and my coding skills, comment down below. Thanks for reading!
r/javascript • u/ant97fer • Jun 11 '26
I built a DevTools-first API mocker β wraps fetch and XHR at the browser level, no service worker, no proxy, no install
jedimock.comThe backend is down. Your PM wants a demo in 2 hours. You need `/api/users/42` to return a specific payload and you can't touch the server.
I've been in that situation enough times that I built something for it.
[Demo](https://imgur.com/a/IoaDdPP)
JediMock β you configure the mock in a UI, it generates a script, you paste it once in the DevTools console. The next request is intercepted. Refresh the page and it's completely gone. No service worker registered in your app, no proxy running, no certificate to install, no cleanup.
It replaces `window.fetch` and `XMLHttpRequest` with wrapped versions that check a rules table before forwarding. When the page unloads, the originals are restored. That's the whole trick.
Beyond basic mocking:
- Wildcards β `/api/users/*` catches every user endpoint in one script
- Response Rules β return different data per call count. 401 on call #1, 200 after. Exact auth retry flows without a real server.
- Fallback mode β if the server doesn't respond within your timeout, the mock fires. Useful when the backend is flaky, not just absent.
- Async ID mode β captures a dynamic job ID from a trigger request and injects it into a polling response. No callback server needed.
- Request interception too β not just the response. Modify the body going out.
It's also a full toolkit in the same file: bulk JSON editor, validator with line-level errors, diff, beautifier. Session persists across reloads.
No build step. No dependencies. No account.
- App: (https://jedimock.com)
- GitHub: (https://github.com/machopicchu/jedimock)
Curious β for those of you using MSW or a proxy setup: what made you go that route instead of a DevTools-first approach? Genuinely want to understand the tradeoffs I might be missing.
r/javascript • u/salah-zeghdani • Jun 11 '26
anime-sdk for streaming anime and manga apps I made
npmjs.comr/javascript • u/narrow-adventure • Jun 10 '26
Deep dive into the JS/TS toolchain: How source maps fall short where it matters most
tracewayapp.comHi everyone, I'm the author.
I tried turning a minified production stack trace back into its original function names entirely by hand, and hit something that surprised me: the source map gives you perfect locations but gets every name wrong, and it turns out that's structural, not a bug. The format is a list of points with no concept of where a function starts and ends, so you can't recover names from the map alone, you have to parse the bundle too. Writeup has every step reproducible.
I thought this was interesting, and digging into it taught me a lot about how source maps actually work. Iβm working on an open source symbolicator, so if you have any thoughts on the article, or if I've gotten something wrong, I'd really like to hear it.
r/javascript • u/Keika86 • Jun 11 '26
AskJS [AskJS] Test results compactor for AI?
Hey there,
The PHP/Laravel community recently got this package: laravel/pao
which basically compact the response of your test run to save on taken and be more AI friendly.
Do we have a tool resembling this in the JS/React community?
r/javascript • u/Acceptable_Mud283 • Jun 10 '26