r/javascript • u/cekrem • Aug 21 '26
Bun and Elm (: r)Are Friends · cekrem.github.io
cekrem.github.ioWhy simple is better 🤤
r/javascript • u/cekrem • Aug 21 '26
Why simple is better 🤤
r/javascript • u/DiodeInc • Aug 20 '26
r/javascript • u/Ahmed33033 • Aug 19 '26
Hey y’all!
I made a fork of actions/typescript-action to make some valuable updates!
It updates the following:
local-action script to local-gha (gha for github action) to avoid conflict with dependency name.lmk what you think!
r/javascript • u/Forward_Dark_7305 • Aug 17 '26
I’m working in a VanillaJS repository (plugin type code for an existing project that I do not own) where I’ve written a signal implementation.
Today I was working on a tooltip like implementation and I found myself wondering how far to go with the signal/effect ecosystem vs running the “core” logic in the event handler.
The implementation detects the `<tr>` that the user has hovered and assigns that row to the “current row” signal. A computed signal identifies an IP address from the current row. An effect loads Whois metadata from the IP and assigns it to a `<div>`, and another effect shows that `<div popover>` from the parent `<tr>`.
The question I have is when in VanillaJS how would you decide when to use signals and effects vs writing the side effect directly in the event handler? In my case I find either to be equally readable, though I have less local variables to deal with when using signal/effect. Looking for reasons your might pick one over the other.
r/javascript • u/Mantas_rst • Aug 17 '26
r/javascript • u/subredditsummarybot • Aug 17 '26
Monday, August 10 - Sunday, August 16, 2026
| score | comments | title & link |
|---|---|---|
| 38 | 25 comments | Signals and Effects Using Vanilla JavaScript & Web APIs |
| 21 | 8 comments | Your Modules Are Lying to You |
| 13 | 6 comments | C99 real mode compiler written in TS that outputs raw bootable 16bit binaries |
| 13 | 13 comments | I made a Windows 98 styled portfolio website with an applet system, and many nostalgic things to discover |
| 7 | 0 comments | rapiq: typed query params for REST APIs (filters, sort, pagination, fields, relations) that run on TypeORM, Prisma, Drizzle or plain arrays |
| 5 | 1 comments | [AskJS] [AskJS] I reproduced a PDF.js Worker mismatch caused by dependency hoisting |
| 5 | 15 comments | [Showoff Saturday] Showoff Saturday (August 15, 2026) |
| 4 | 2 comments | Building KernelPlay-JS together — looking for open-source contributors |
| 4 | 0 comments | flo-webcomponents: Take back control of rendering + events using WebComponents with one minimal superclass. |
| 3 | 1 comments | I built a MapLibre GL utility to keep markers visible around UI overlays |
| score | comments | title & link |
|---|---|---|
| 1 | 121 comments | [AskJS] [AskJS] Are employed Developers still programming with vanilla JavaScript ? |
| 0 | 19 comments | [AskJS] [AskJS] TypeScript 7 is 10x faster, but typed linting still runs on the 6.0 API. What are you doing in the gap? |
| 0 | 15 comments | [AskJS] [AskJS] I'm sick of AI slop; I want to learn how to use ESLint properly. |
| 0 | 12 comments | [AskJS] [AskJS] jsbin is down?? |
| 0 | 11 comments | We built the same data grid in React, Vue & Svelte, here's what we learned |
| score | comments | title & link |
|---|---|---|
| 3 | 8 comments | [AskJS] [AskJS] How much do you actually trust the version number on an npm update? |
| 1 | 5 comments | [AskJS] [AskJS] How to find the best/ideal ratio or dimensions for a device? |
r/javascript • u/Wooden-Bicycle-6069 • Aug 17 '26
This one is awful because the build succeeds.
The host app installs pdfjs-dist@6.1.200. A PDF renderer depends on pdfjs-dist@5.4.624. If asset-copy code resolves the Worker from the app root, it can copy 6.1.200. The renderer code still uses API 5.4.624. Vite serves the wrong Worker, and the browser reports a version mismatch.
The fragile version looks like this:
const worker = require.
I changed the lookup to resolve pdfjs-dist from the renderer package that owns it. The build now fails if the resolved asset version differs from the renderer dependency.
I ran the harness today across npm and pnpm, nested and hoisted layouts, Vite dev and build, and real cold installs. In every case the copied Worker, CMaps, WASM, and fonts had to come from 5.4.624, while the app kept 6.1.200. The asset manifest also records the source package and version. No more "it probably resolved correctly."
Should build tools always resolve runtime assets from the dependency that owns them, or should packages force one PDF.js version across the whole app?
r/javascript • u/Several-Ad6876 • Aug 16 '26
r/javascript • u/dywan_z_polski • Aug 15 '26
Hi, a few years ago I wrote a C99 compiler that generates a bootable binary which, once loaded onto a floppy disk, can be run in x86 real mode. It supports x87 floating-point operations, has a simple IR, optimizes the generated code, and produces output of fairly decent quality (by toy compiler standards). Maybe someone will find it interesting.
r/javascript • u/EqualTumbleweed512 • Aug 15 '26
I am working on a P2P video calling client using webRTC.
I am using getMediaDevices() to get the users' stream. If I just do {video: true} it gives me a smaller stream than my device supports.
By default it gives me a 640 x 480 stream. I can set it manually to the max dimensions which is 1920 x 1080.
How can I find the max dimension for any device?
Another thing I wanted to know. I have the video element in a div, which has the width of fit-content. When the incoming stream first arrive from the other peer, The video starts smaller and keeps growing, why is this?
r/javascript • u/AutoModerator • Aug 15 '26
Did you find or create something cool this week in javascript?
Show us here!
r/javascript • u/LovishMahajan7 • Aug 15 '26
I'm working through how a team decides whether an automated dependency update is safe to merge, and one of the baselines I'm testing is the obvious one: trust semver. Auto-merge patch and minor, hold majors for review.
My assumption is that this baseline is weak — that in practice a meaningful share of breaking changes ship in patch and minor releases, and that a major bump is often just a dropped Node version or a TypeScript signature change that doesn't affect anyone.
If that's right, the version number is close to noise and the semver rule is mostly giving teams a false sense of having a policy.
But I've only got my own experience to go on, and I'd rather be corrected before I build on it.
Interested in specific packages and versions if you remember them, more than general opinions on semver as a concept.
r/javascript • u/OtherwisePush6424 • Aug 14 '26
import and require are not interchangeable. Live bindings, copied values, circular dependencies, separate caches, conditional exports, and dual-package hazards can all make modules behave differently from what the syntax suggests.
r/javascript • u/otashliko • Aug 14 '26
At SVAR, we build UI components for React, Svelte, and Vue. Just shared our experience with a data grid – how to make it fast in all three frameworks.
What surprised us: the expensive bits (virtualization, memoization, data flow) are almost entirely framework-independent, and framework overhead is a rounding error next to DOM size.
Curious if you have seen similar patterns in your projects?
r/javascript • u/TJ51097 • Aug 13 '26
During an interveiw yesterday, I tried opening jsbin but seems its shouting 503!!
Any minimal JS playground, you people using/suggest
EDIT: The sites up, I opened an issue on GitHub and the maintainers resolved it
r/javascript • u/_tshepo • Aug 13 '26
I've been programming on the side since 2017 and I've never really hunted a developer job. I've always thought about building my own things, mainly to supplement things I do like woodworking, tutoring, video editing and others.
Since then, I've programmed mainly with JavaScript, I started with C++ and Python but never really built anything solid outside JavaScript.
So I'm fluent with JavaScript and its ecosystem.
One of my 2026 goals is to be job ready for a Developer role, as a Fullstack or Backend Developer.
One of the recommended languages is Typescript, which I've been learning since March. I must say, it's not my favorite 😂
I'm curious to know if there are any companies that are not enforcing Typescript or are there freelancers who are still using vanilla JavaScript over Typescript for their clients' projects.
[ Update ] thanks y'all! I get the picture. TypeScript is inevitable, as vanilla JS codebases(or companies who are focused on it) seem to be very few judging by the comments.
r/javascript • u/Ahmed33033 • Aug 13 '26
This is a next app I made that I'd like to define the magical buzzwords that exist in the GenAI space. It's meant to be run by humans to simply and concretely define terms like "agents", "harness" and "hallucinations"
r/javascript • u/Pakashi-kun • Aug 12 '26
r/javascript • u/APTman1010 • Aug 12 '26
Hey everyone!
I'm working on KernelPlay-JS, an open-source 2D game engine made with JavaScript.
The project is growing, and I've already had a few developers contribute. I've also been working on ready-to-use templates such as a platformer, a top-down character controller with animation, and parallax backgrounds.
I'm hoping to find more people who are interested in open-source game development and want to experiment, build features, share ideas, or just contribute when they have time.
There are plenty of areas where we can improve KernelPlay-JS:
* ECS and core engine systems
* Rendering and animation
* Physics and collision
* Developer tools
* Game templates
* Documentation
* Performance and optimization
You don't need to make a huge commitment or contribute every day. Even small contributions, ideas, testing, or feedback can help.
I'd love to see KernelPlay-JS grow as a community project where we can learn, experiment, and build a game engine together.
If you're interested, feel free to check it out or message me.
r/javascript • u/EveYogaTech • Aug 11 '26
r/javascript • u/techlord45 • Aug 10 '26
I’m a strong advocate for “you don’t need to lock yourself in a web framework ecosystem to take advantage of their amazing features”. JavaScript and Web Standards alone allow you…
r/javascript • u/jaredce • Aug 10 '26
Got annoyed that there wasn't a dependabot tool for BitBucket and that the Dependabot CLI wouldn't open PRs on BitBucket, so I built a tool that would take the output from Dependabot CLI and open PRs.
Would love help testing it out on GitLab as I have BitBucket covered at work.
If you do end up using it, would love to have feedback around what can be done better.
r/javascript • u/Besmaah • Aug 11 '26
I'm really sick of Claude Code or Codex messing things up it creates the same function 30 times, generates 200 lines functions, and casts everything or tweaks the schemas just to make it seem like it works. And if I'm not there to check everything, it's a total mess.
Anyway, I’ve installed TypeScript-ESLint with strict type checking, SonarJS, and Knip to at least stop the AI from messing things up.
But I’d like to take it further. People often talk about static code analysis like linters and good tests but I don’t know where to start. By the way, AI tools do all sorts of nonsense in tests—they check if a button is in the right place, which is ridiculous.
So I’m looking for relevant resources to help me learn how to set this up on a large project I’m developing on my own. I have an Nx monorepo with several apps inside, including Next.js, React Native, Fastify, and a Python app.
r/javascript • u/sonemonu • Aug 10 '26
UQL is the lightest ORM of all, and here is what it deleted (and upgraded as well) for the edged and mobile.
r/javascript • u/Whole_Pangolin9312 • Aug 10 '26