r/javascript • u/philnash • Aug 26 '26
r/javascript • u/der_gopher • Aug 26 '26
How to drive your frontend from the backend
packagemain.techr/javascript • u/APTman1010 • Aug 26 '26
KernelPlay-JS v0.5.0 Released — Unified Input Manager
github.comKernelPlay-JS v0.5.0 is now available.
This release introduces a new Unified Input Manager designed to provide a consistent API for handling keyboard, mouse, gamepad, and touch input.
The goal is to make input handling simpler at the game-logic level while keeping the underlying input devices abstracted away.
Example:
import { Input } from "kernelplay-js";
update(dt) {
const x = Input.getAxis("horizontal");
const y = Input.getAxis("vertical");
this.rb.addForce(800 * x, 800 * y);
if (Input.wasPressed("jump")) {
this.jump();
}
if (Input.isPressed("attack")) {
this.attack();
}
}
v0.5.0 also supports two ways of defining input bindings.
Programmatic registration:
Input.registerAction("shoot", {
keys: [KeyCode.Z, KeyCode.X],
buttons: [GamepadButton.X, GamepadButton.RB]
});
Or declarative JSON configuration:
{
"actions": {
"jump": {
"keys": ["Space", "ArrowUp"],
"buttons": ["A", "B"]
},
"go": {
"keys": ["x", "z"],
"buttons": ["DPadRight"]
}
}
}
The JSON approach is intended to make configurable controls and runtime key rebinding easier to implement without changing game logic.
This release is part of the ongoing work toward making KernelPlay-JS a more complete, Unity-inspired game engine for JavaScript.
Feedback and suggestions for the v0.5.x releases are welcome.
r/javascript • u/jfmengels • Aug 26 '26
Problem with concurrent linter fixes
jfmengels.netr/javascript • u/KernelVoltage • Aug 25 '26
AskJS [AskJS] Building an in-browser APK compiler — binary XML streams and signature blocks in client-side JS
Hey everyone,
I built AppShunya Engine — an open-source, in-browser web-to-APK compiler that converts live URLs or HTML5 bundles into Android APKs using JSZip, without local IDEs.
I'm currently stuck on two low-level technical hurdles and need architectural feedback:
- In-browser V2/V3 APK signing: Injecting signature blocks into ZIP Central Directory via JS/WASM.
- Dynamic AXML package renaming: Modifying package IDs inside binary XML streams on the fly.
Search "AppShunya Engine" on Google to try the live Vercel tool or check the repo. Would love your thoughts!
r/javascript • u/Landkey • Aug 25 '26
AskJS [AskJS] referring to parent or grandparent class instance properties
How do you all refer to parent or grandparent (or related) class instances and their properties?
I have a bunch of classes that create instances of other classes as properties. Suppose ClassA has properties that are instances of ClassB, ClassC, and ClassD, and the ClassD class has properties ClassD1 through ClassD9, and each of those is a different class instance with various methods.
Currently, when I start with myClassAObject and I call one of its ClassD9 methods and that method needs a property from its uncle ClassB, I feel awkward and/or dumb for doing this by passing myClassAObject to that method:
const returnval = myClassAObject.itsClassDObject.theClassD9method(myClassAObject);
…and then that method gets the property from myClassAObject.itsClassBObject.theProperty
I know this functions, but it shouts “inelegant” every time I do it. Do y’all know a more elegant way? TIA
r/javascript • u/cekrem • Aug 25 '26
`bun-plugin-elm`: import { Elm } from "./Main.elm" (Made by Hand, btw) · cekrem.github.io
cekrem.github.ior/javascript • u/lukehaas • Aug 24 '26
Learning music theory through JavaScript, with runnable Web Audio examples
runjs.appr/javascript • u/skamansam • Aug 25 '26
AskJS [AskJS] How common is the term "Barrel" and do you know what it means?
I was talking with an LLM trying to get some ideas ("rubber ducking" basically) and it kept saying, "Barrel." I have been a JS programmer for 30 years and never heard the term. Does anyone else use the term or even know what it means?
I told it to use "import surface" instead instead because ... wtf is a Barell? I just want to know if I am behind the times and need to update my jargon or whether this really is a weird LLM thing.
r/javascript • u/moving808s • Aug 24 '26
Modernising Project GoldScript for 2026
projectgoldscript.comProject GoldScript is a tactical RPG engine I have been building in the open for over a decade. It’s composed of a a web stack (with three.js and react under the hood) aimed at shipping a real game to Steam, mobile and consoles. This year I finally did the migration I had been putting off: two aging create-react-app repos (engine in one, game in the other) collapsed into a single pnpm and Vite monorepo, with the engine broken into eleven focused packages that are guarded against circular dependencies.
r/javascript • u/Safe_Scientist5872 • Aug 24 '26
Announcing a maintained PptxGenJS fork
github.comr/javascript • u/deb_91 • Aug 25 '26
AskJS [AskJS] Can someone provide me Roadmap to be become an AI specialist.
Please provide some stories that has worked for you. I want to start from basics.
r/javascript • u/fagnerbrack • Aug 23 '26
How an Underrated Refactor Saved 90% Memory Usage
tanstack.comr/javascript • u/subredditsummarybot • Aug 24 '26
Subreddit Stats Your /r/javascript recap for the week of August 17 - August 23, 2026
Monday, August 17 - Sunday, August 23, 2026
Top Posts
| score | comments | title & link |
|---|---|---|
| 67 | 28 comments | [AskJS] [AskJS] Our app didn't leak memory,it leaked memory four hundred modals later |
| 48 | 9 comments | How an Underrated Refactor Saved 90% Memory Usage |
| 15 | 21 comments | Made a small library called strokes.js. |
| 12 | 2 comments | [Subreddit Stats] Your /r/javascript recap for the week of August 10 - August 16, 2026 |
| 11 | 2 comments | The Structured Clone Algorithm: What JavaScript Can and Cannot Move Between Boundaries |
| 10 | 5 comments | YouTube Notification Expander is here! Version 1.0 |
| 10 | 13 comments | [AskJS] [AskJS] Signal/Effect vs Event Handler |
| 8 | 0 comments | React Native 0.87, Instant Paywall A/B Testing, and Buying Mike Hardy a Beer |
| 7 | 0 comments | Updated Typescript GitHub Action Template |
| 5 | 0 comments | Bringing Type1 support to Opentype.js |
Most Commented Posts
| score | comments | title & link |
|---|---|---|
| 0 | 39 comments | LilScript makes js modules 20% smaller |
| 5 | 28 comments | A from-scratch JSON engine for JavaScript: recursive descent parser, escape-aware tokenizer, and spec-compliant serializer. No dependencies, no shortcuts, 107 tests. |
| 0 | 19 comments | [AskJS] [AskJS] I built a reactive JS framework where components are plain HTML files |
| 4 | 12 comments | [Showoff Saturday] Showoff Saturday (August 22, 2026) |
| 0 | 4 comments | Cerious-Scroll v1.1.0 adds Masonry layouts with Dynamic Heights |
Top Showoffs
Top Comments
r/javascript • u/EveYogaTech • Aug 24 '26
Web Components with Type Validation without Build Tools/TypeScript
github.comr/javascript • u/Suitable_Language_37 • Aug 23 '26
Cerious-Scroll v1.1.0 adds Masonry layouts with Dynamic Heights
ceriousdevtech.github.ior/javascript • u/Decent-Blacksmith761 • Aug 22 '26
Bringing Type1 support to Opentype.js
github.comIf anyone is interested in reviewing and approving PFA and PFB support i tried to bring to opentype.js check my pull it will give more chances to get approval on merge.
r/javascript • u/OtherwisePush6424 • Aug 22 '26
ffetch: a production-ready http client with resilience features and a plugin architecture
github.comI posted an earlier version of ffetch here a while ago. I've continued working on it, and it has grown into a production-ready, TypeScript-first drop-in replacement for native fetch or any fetch-compatible implementation.
It preserves the familiar fetch API and native Request and Response objects while adding resilience features:
- Timeouts
- Abort-aware retries with exponential backoff and jitter
- Circuit breaking
- Bulkheading with concurrency and queue limits
- Hedged requests to reduce tail latency
- In-flight request deduplication
It also has optional convenience plugins for:
client.get(),.post(),.put(),.patch()and.delete()client(url).json(),.text()and.blob()- Download progress callbacks
- Stable context IDs across retries and hedged requests
The core also supports lifecycle hooks, per-request overrides, pending-request monitoring, configurable HTTP error handling, specific error classes, and custom fetch implementations for SSR, edge and framework environments.
Everything optional is implemented through tree-shakeable plugins, so you only include the features you need. The core is around 3 kB minified and has zero runtime dependencies.
I recently gave the project a substantial maintenance pass: extensive property-based and fuzz testing, hardened and pinned CI workflows, CodeQL analysis, dependency auditing, npm provenance, release SBOMs, and a strong OpenSSF Scorecard (for a solo project).
I've also built three related tools for injecting network failures into tests:
- chaos-fetch: inject failures directly into
fetch, without running a proxy - chaos-proxy: a standalone Node.js proxy
- chaos-proxy-go: the same idea as a lightweight Go binary
Depending on the tests, failures can be injected inside the process, through a Node.js proxy, or through a standalone Go proxy.
Feedback is welcome.
r/javascript • u/inc_23 • Aug 22 '26
Made a small library called strokes.js.
a-elhaag.github.ioMade a small library called strokes.js. Instead of using a "handwriting" webfont (which looks identical everywhere it's used), it renders each letter as an actual hand-drawn SVG path — real strokes, drawn in with stroke-dashoffset, with small random variation (rotation, baseline drift, glyph variants) so no two renders of the same word look identical.
Demo: https://a-elhaag.github.io/glyphed.js/
npm:
npm install glyphed.js
r/javascript • u/jhnam88 • Aug 22 '26
ttsc/packages/evidence at master · samchon/ttsc
github.com/**
* @evidence docs/discount.md#coupon-stacking States the per-issuer stacking limit this section defines, in the buyer's words.
* @evidence POST:/orders/{orderId}/coupons Explains the rejection this endpoint returns for an over-stacked coupon set.
* @evidence {@link hooks.useCouponStacking} Renders the limit this hook resolves.
* @evidence docs/principles.md#no-hard-coding Renders limits from props instead of branching on known issuer names.
* @evidenceExclude docs/principles.md#fix-root-causes-not-symptoms No failure to fix.
*/
export function CouponStackingNotice(props: IProps): JSX.Element;
I built Evidence Graph, a compiler rule that turns requirements skipped by coding agents into compile errors.
You declare which code, tests, schemas, or documents owe which specification units. The agent must cite each unit and state why the artifact satisfies it. Checklist mode can also require every selected function to answer project-wide principles such as "No hard coding" and "Fix root causes."
This does not make the agent's statements automatically true. It makes omissions mechanically detectable and narrows human review to checking the truth of explicit claims. Reviews carry fingerprints that expire when the cited content changes.
I tested it on four frozen application tasks. Plain runs covered 51.6-85.5% of the predefined requirement edges; Evidence Graph runs covered 100% while using 4.8-13.3x fewer tokens.
- Project: https://github.com/samchon/ttsc/tree/master/packages/evidence
- Benchmark: https://ttsc.dev/docs/benchmark/evidence
- Raw sessions: https://github.com/samchon/evidence-benchmark-results
r/javascript • u/AutoModerator • Aug 22 '26
Showoff Saturday Showoff Saturday (August 22, 2026)
Did you find or create something cool this week in javascript?
Show us here!
r/javascript • u/OtherwisePush6424 • Aug 22 '26
The Structured Clone Algorithm: What JavaScript Can and Cannot Move Between Boundaries
blog.gaborkoos.comstructuredClone() preserves more than JSON, but class instances, proxies, getters, errors, and transferables still have surprising behaviour. This article covers what survives, what changes, and what throws.
r/javascript • u/ziflex • Aug 21 '26
GitHub - ziflex/pinterval: Advanced setInterval
github.comHello everyone!
I rewrote my old interval library around async execution and cancellation and decided to share it with the world :)
Would love to hear what you think!
r/javascript • u/Right-Principle-4877 • Aug 22 '26
AskJS [AskJS] I built a reactive JS framework where components are plain HTML files
I wanted to see how far I could push the idea of writing an app using mostly the HTML syntax developers already know.
The interesting part is the template API. There are only a few places where OlumJS treats an attribute as code:
wheneachon*keyhtml
Everything else is a string, with {expr} interpolation when you need a value.
So instead of introducing directives like :class, v-if, *ngIf, etc., the idea is to keep the distinction HTML already has between something like onclick="..." and class="...".
For example, the component itself is just:
<script>
const state = { name: "Olum", taps: 0 };
</script>
<h1>Welcome to {state.name}!</h1>
<input value="{state.name}" oninput="(e) => state.name = e.target.value" />
<button onclick="state.taps++">clicked {state.taps} times</button>
State is also intentionally simple — you mutate it directly and the DOM reacts to the changes.
There’s routing, scoped CSS, and a small store as well, but the main experiment is really: can you get SPA-style reactivity while keeping the component model close to vanilla HTML/JS?
It's currently aimed at prototypes and small apps rather than large production codebases.
For those who work with JS frameworks: do you think keeping components as plain HTML files is a useful abstraction, or does it become limiting as an application gets more complex?
r/javascript • u/cekrem • Aug 21 '26
Bun and Elm (: r)Are Friends · cekrem.github.io
cekrem.github.ioWhy simple is better 🤤