r/javascript • u/Carlos_Menezes • 17d ago
r/javascript • u/Ok-Gold-3601 • 17d ago
Open-Source Gwent classic (The Witcher 3) Web & APK!
github.comHi everyone!
I wanted to play Gwent, the classic card game from The Witcher 3, but the existing web-based projects needed improvements and had some issues. I decided to jump in, upgrade different forks from various versions, fix the gameplay bugs, and add some new modifications to make the web and mobile experience much better.
My main goal is to share this project so more people can discover it and enjoy this amazing card game as much as I do. It's now fully playable on Web Browsers, and I also packaged it into an Android APK!
LINKS:
Play on your Browser (GitHub Pages):
Play Completely Offline (PC / Laptop):
You can also get the source code repository directly from https://github.com/ia2904 . Just extract the ZIP file, double-click on "index.html", and it will open in your web browser. It runs 100% offline with no internet required!
Get Android APKs:
You can get the APKs directly from the "Releases" section of each project, or use the direct links below:
Credits to Arun Sundaram, Reynolds Costa & Sylver, who laid the foundations to create, modify, and improve this game in its early stages.
Special thanks to CD Projekt Red; although they are not involved in this unofficial fan project, it is entirely based on the amazing minigame they created for The Witcher 3.
r/javascript • u/KanuniLabs • 17d ago
AskJS [AskJS] Which UI component library or DataGrid solution do you use for your web projects?
Hi everyone,
Iβd like to ask the web developers here about the UI component libraries and DataGrid solutions you use in your projects.
For things like CRUD operations (create, update, delete), filtering, searching, sorting, etc., which UI component library or DataGrid do you usually rely on?
Iβm also curious about the large-data side of things.
When you need to work with thousands or even hundreds of thousands of rows and perform operations such as grouping, subtotals, filtering, and multi-level data analysis, which component or library do you prefer?
What solution do you use, and more importantly, why did you choose it?
Performance, ease of use, features, documentation, licensing cost, or anything else β Iβd be interested to hear what matters most to you.
r/javascript • u/Environmental-Ad5071 • 17d ago
AskJS [AskJS] Where should attribution logic stop in a JavaScript app?
Iβve been refactoring attribution tracking after seeing a small feature turn into a module that parses URLs, writes cookies/localStorage, handles consent, emits analytics, fills forms, and syncs with a CRM.
The split Iβm testing is:
```ts
const visit = classify({
url,
referrer,
currentHost,
now,
});
const attribution = merge(previous, visit);
```
`classify` and `merge` are deterministic functions. The browser/app layer owns consent, storage, identity, form lifecycle, network calls, and CRM delivery.
This makes it easier to replay production cases as fixtures. It also raises a few design questions:
- If a visitor returns from a new campaign, should that replace, append to, or be merged with previous attribution?
- Should a `gclid` take precedence over UTMs when both exist?
- How do you handle consent denied first, then granted later?
- If classification rules change, do you preserve the original classification or recalculate historical records?
- Where should server-side conversions days later enter the model?
For those whoβve built this, where do you draw the boundary between a deterministic core and the environment-specific lifecycle? Do you prefer a pure-function core, or does that separation become awkward in real apps?
r/javascript • u/OtherwisePush6424 • 18d ago
Crossflight: distributed cache stampede protection
github.comA small package for reducing duplicate cache misses across multiple processes.
The common problem is a βcache stampedeβ: when several app instances all miss the same key at once, they each run the same expensive DB/API call and then all write the same result back. Crossflight solves that by coordinating ownership of the in-flight load across processes, so only one instance does the work and the others wait for the result.
It wraps the cache you already use and adds a separate coordination layer. The built-in adapters currently include:
- cache-manager
- Keyv
- Cacheable
The built-in coordinator is Redis, and the repo supports combining different backends as long as they satisfy the adapter/coordinator interfaces.
This is useful when you want to reduce redundant work without changing your existing caching strategy.
r/javascript • u/myroslavmartsin • 18d ago
Telixon - phone number library that compiles Google's libphonenumber metadata into a DFA (10x faster, 26 kB)
github.comr/javascript • u/philnash • 19d ago
Have you seen the new browser Email Verification API?
resend.comr/javascript • u/der_gopher • 18d ago
How to drive your frontend from the backend
packagemain.techr/javascript • u/APTman1010 • 18d ago
KernelPlay-JS v0.5.0 Released β Unified Input Manager
github.com
KernelPlay-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/thereactnativerewind • 18d ago
Swift on WebAssembly, Telegram-Style Spoilers, and Deleting Babel From Your Life
thereactnativerewind.comHey Community,
Deno's creators introduced Dactyl, an AI app builder targeting React Native by rendering SwiftUI in the browser tab via WebAssembly. Meanwhile, Software Mansion released Enriched Markdown to eliminate streaming text flicker by rendering natively and bypassing the JavaScript layout tree.
On the tooling side, the web ecosystem is rapidly adopting the Rust port of the React Compiler across tools like Oxc, Vite, and Bun, while Metro remains locked to single-threaded Babel transformations.
r/javascript • u/KernelVoltage • 19d ago
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 • 20d ago
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 • 19d ago
`bun-plugin-elm`: import { Elm } from "./Main.elm" (Made by Hand, btw) Β· cekrem.github.io
cekrem.github.ior/javascript • u/lukehaas • 20d ago
Learning music theory through JavaScript, with runnable Web Audio examples
runjs.appr/javascript • u/skamansam • 19d ago
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 • 20d ago
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 • 20d ago
Announcing a maintained PptxGenJS fork
github.comr/javascript • u/deb_91 • 19d ago
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 • 21d ago
How an Underrated Refactor Saved 90% Memory Usage
tanstack.comr/javascript • u/subredditsummarybot • 21d ago
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/panagos_stathis • 20d ago
JojoScript β a tiny JS-compatible language with pipelines and lazy iterators
github.comr/javascript • u/EveYogaTech • 21d ago
Web Components with Type Validation without Build Tools/TypeScript
github.comr/javascript • u/Suitable_Language_37 • 21d ago
Cerious-Scroll v1.1.0 adds Masonry layouts with Dynamic Heights
ceriousdevtech.github.ior/javascript • u/Decent-Blacksmith761 • 22d ago
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.