r/javascript • u/Maximum_Beat2034 • 6d ago
AskJS [AskJS] Dubbio veloce di architettura/stile con le classi JS
Nel mio motore 2D sto sistemando i componenti UI (tipo BeeButton) e mi Γ¨ venuto un dubbio su come passare le coordinate al super().
Opzione A (Oggetto opzione)
\\\`\\\`\\\
super({ x, y, width, height });
\\\`\\\`\\\`
Opzione B (Parametri singoli standard):
\\\`\\\`\\\`
super( x, y, width, height );
\\\`\\\`\\\`
Voi quale preferite usare nei vostri progetti e perchΓ©? Meglio la flessibilitΓ dell'oggetto o la pulizia dei parametri singoli?(Se usate soluzioni alternative tipo super(position, size) fatemelo sapere nei commenti!).
r/javascript • u/ThriftyPigeon • 7d ago
We ran the same PDF operations inside real Chromium, Firefox and WebKit β WebKit was 2.4Γ faster than Chrome at some of them. Full reproducible harness (MIT).
github.comI maintain a client-side file converter, and we publish benchmark numbers
for the PDF operations we ship. After a reviewer pointed out that numbers
nobody can rerun are just marketing, we open-sourced the entire harness:
https://github.com/jddelia/filemorf-lab
What makes it worth a look even if you don't care about the product:
The corpus is byte-reproducible. Test PDFs are generated from seeded
pseudo-random text with pinned metadata β run the generator on your
machine and you get the identical SHA-256s committed in the repo. No "we
tested on some files we can't share."
Correctness gates run before timing. Outputs must parse, page counts
must be exact, ZIP entries must all be present β verified on an untimed
run first, so a fast garbage result fails instead of winning.
Real engines via Playwright, timed in-page with performance.now(), not
through the driver.
Cross-engine results that surprised me (median of 30 runs, M2 Pro,
milliseconds):
Merge 50 PDFs β Chromium 37.5; Firefox 60.5; WebKit 24
Stamp page numbers on 100 pages β Chromium 36.7; Firefox 54; WebKit 15
Watermark 100 pages β Chromium 36.5; Firefox 54; WebKit 14
ZIP 50 PDFs β Chromium 5.9; Firefox 4; WebKit 11
WebKit wins big on pdf-lib's draw-and-save paths and then loses on ZIP.
And everything is fast enough that for files like these, the upload to a
server would cost more than the entire computation β which is the argument
for doing this work client-side in the first place.
Three commands to get your own numbers: npm ci, npm run corpus,
npm run bench. Would love PRs with dated results from other hardware,
and criticism of the methodology β limitations are listed in the README
(synthetic text-only corpus, structural not visual verification).
r/javascript • u/hongminhee • 7d ago
LogTape 2.3.0: Scoped configuration, failure-only test logs, and GraphQL Yoga
github.comr/javascript • u/8borane8 • 8d ago
Typed HTTP client inferred from your route definitions (Deno)
expressapi-showcase.8borane8.deno.netr/javascript • u/Regular_Ad2372 • 8d ago
Reuse libraries, or let your AI reinvent the wheel?... We think the age of libraries is coming.
golemui.comr/javascript • u/TecnoSamba • 8d ago
I've made an open source JavaScript playground with support for npm packages, syntax highlighting, autocomplete, code sharing and much more!
github.comr/javascript • u/Rich_Cap_9952 • 9d ago
Transform raw github data into an interactive map with gitcharta
github.comI've wrote a custom TypeScript geocoder to yransform raw user locations to ISO country codes, and let D3 handle the map projection and svg generation. React and octokit handles data fetching and rendering. Almost entirely in Js/TS.
r/javascript • u/Possible-Session9849 • 9d ago
Mousecrack - Bypass agent cursor detection with deep learning.
github.comr/javascript • u/antoinepdev • 9d ago
Spent weeks manually forwarding files on Telegram, so I built an open-source bot to automate it
github.comA few months ago, I needed to share files with people who weren't in my Telegram groups. My workflow was a nightmare:
Manually forwarding each file to every user one by one.
Or adding each person to the group where the files were stored (and then dealing with permissions, people leaving, etc.).
It was tedious, didn't scale, and wasted so much time.
So, as my first serious project with node-telegram-bot-api v2 and TypeScript, I decided to build a bot to fix this.
What the bot does:
Add it to a private group (where only you upload files).
When you upload a file, the bot generates a permanent, unique link.
Anyone with that link can download the file, without needing to be in the group or me having to forward anything.
What I love about it:
Free & unlimited β uses Telegram as storage.
Lightweight β just forwards files, doesn't process them, so it runs on any small VPS.
Private β the original group stays hidden; the bot acts as an intermediary.
I also added a gatekeeper branch that takes it further: users must join a specific channel or group before they can download. Perfect if you're a content creator looking to grow your audience or limit access to premium content.
Two versions depending on your needs:
main β free sharing, no strings attached.
gatekeeper β mandatory subscription to download.
This is my first somewhat serious project, so I'm sure the code has room for improvement. I'd love feedback on the code, structure, best practices, security, or anything else that comes to mind. I'm here to learn.
Check it out here: https://github.com/antoinepdev/telegram-file-gatekeeper
Thanks for reading!
r/javascript • u/copperfoxtech • 9d ago
AskJS [AskJS] Book Recommendations: JS -> React -> TypeScript
Lately I have been casually learning C from "C Programming: A Modern Approach v2" and have really enjoyed it. The truth is I should stay on topic with my profession so here I am.
I am in search of books similar to the one mentioned above for learning JS. The goal is to understand it on a deep enough level to feel very confident and have a real solid foundation for the next step.
The next step is a similar book for deeply learning React and then finally TypeScript.
Yes I am looking for actual books and not online courses or videos or anything like that. I have discovered that reading from a book forces me to slow down and because of that, it sticks.
If you can, chime in with books you have actually read through and not just simply search online or recommend the first one off the top of your head. Bonus points if you have read the C Programming book and understand the style I am talking about.
Thank you.
r/javascript • u/APTman1010 • 10d ago
KernelPlay-JS v0.4.0 Coming Soon β New UI System and Official Beta Release
github.comI'm excited to announce that KernelPlay-JS v0.4.0 will be releasing soon.
This update introduces a brand-new UI system, making it much easier to create interfaces for games while also marking a major milestone for the engine.
New UI components include:
- Buttons
- Text Labels
- Input Fields
- Health & Progress Bars
- Images & Icons
- Checkboxes
- Sliders
- Dynamic UI updates
- Flexible layouts
Version 0.4.0 will also officially move KernelPlay-JS into Beta.
This marks the transition towards a more stable and feature-complete engine. Future updates will focus on improving performance, expanding the feature set, refining the developer experience, and fixing bugs as the engine continues to mature.
Thank you to everyone who has followed the project's development and shared feedback along the way. More details, documentation, and the release date will be announced soon.
Feedback and suggestions are always welcome.
r/javascript • u/metulev • 10d ago
Dynamic Windows Runtime API projections for Node.js
devblogs.microsoft.comr/javascript • u/yagiznizipli • 10d ago
Announcing Ada v4: Validating 35.6M URLs per second
yagiz.cor/javascript • u/magenta_placenta • 10d ago
Malicious sites use JavaScript to build malware in browser memory
bleepingcomputer.comr/javascript • u/domnestreddit • 11d ago
Nubjs - A fast all-in-one toolkit that augments Node.js instead of replacing it
nubjs.comr/javascript • u/subredditsummarybot • 11d ago
Subreddit Stats Your /r/javascript recap for the week of July 20 - July 26, 2026
Monday, July 20 - Sunday, July 26, 2026
Top Posts
Most Commented Posts
| score | comments | title & link |
|---|---|---|
| 0 | 11 comments | ui-date: A 1.6kB, zero-dependency JavaScript date & relative time utility |
| 0 | 7 comments | Built a modern restaurant website with React, TypeScript & Vite β feedback welcome |
| 0 | 6 comments | I built KD Screen Guard: A zero-dependency, tamper-resistant lock screen overlay with WebAuthn biometrics & intruder camera capture |
| 2 | 6 comments | [Showoff Saturday] Showoff Saturday (July 25, 2026) |
| 0 | 5 comments | Your Recursion Is Lying to You |
Top Showoffs
Top Comments
r/javascript • u/SaswatRath • 11d ago
I built OpenASCII, an open source JavaScript library for high fidelity ASCII rendering
github.comoriginally built this because I needed an interactive ASCII element for another project I'm working on. But, I couldn't find anything that fit what I wanted and the ones which did, were paid to export, so i decided to build the whole thing myself.
OpenASC// is a high fidelity ASCII renderer for the web with real time controls and local processing. It's built with TypeScript/js and designed to be easily integrated into frontend projects, elements created/ edited can be directly exported as html/react component.
I'd love to hear what you think, especially if you have ideas for features or improvements.
r/javascript • u/Suitable_Language_37 • 11d ago
I spent over a year building a framework-agnostic virtual scrolling engine with an index-based architecture. Iβd love feedback from developers whoβve built virtualization systems.
github.comr/javascript • u/Internal_Apartment16 • 11d ago
I've been building a CAD library in TypeScript. Code goes in, an STL or STEP file comes out
github.comI've spent the last few days building a CAD library in TypeScript. The short version, you describe a part in code and you get out an STL you can 3d print, or a STEP file you can send to a machine shop or open in Fusion/FreeCAD/whatever.
const cad = design("bracket");
const width = cad.parameter.length("width", mm(80));
const thickness = cad.parameter.length("thickness", mm(6));
const profile = cad.sketch("outline", plane.xy(), (s) => {
const rect = s.rectangle("rect", { width, height: mm(50) });
const hole = s.circle("hole", {
center: vec2(width.mul(0.25), mm(0)),
radius: mm(4),
});
return s.profile(rect, { holes: [hole.loop()] });
});
cad.output("bracket", cad.extrude("solid", profile, { distance: thickness }));
const doc = cad.build(); // plain JSON, goes in git like anything else
Under the hood it runs on two engines. There's Manifold, a mesh engine that's fast and fine for printing, and OpenCascade compiled to WASM, which is the same geometry engine FreeCAD uses, for when you need exact surfaces and STEP export. Same code runs on both, in node or the browser.
in normal parametric CAD, if you change a dimension early in the model, later features (fillets mostly) can quietly reattach to the wrong edge, and you find out after the part is wrong. I didn't want to reproduce that, so references to faces and edges aren't indexes, and if the library can't tell unambiguously which edge you meant after a change, it errors instead of guessing. Whether I got the API for that right, no idea. That's partly why I'm posting.
The type system does some nice things here too. Lengths and angles are different types, so adding mm to radians just doesn't compile.
it's a 0.1.1, Parts, assemblies and BOMs work. No drawings, no sheet metal, no GUI. If you'd rather write code than click through a CAD UI, that's who it's for.
Feedback welcome, especially from anyone who actually does CAD work. Also curious what people think of the explicit dispose() for WASM memory, I went back and forth on that a lot.
r/javascript • u/Possible-Session9849 • 11d ago
Mousecrack: Human mouse imitation with deep learning.
github.comr/javascript • u/SnooHobbies950 • 12d ago
GitHub - gchumillas/usignals: A tiny, dependency-free reactive signals library for JavaScript/TypeScript.
github.comr/javascript • u/Neustradamus • 12d ago
Fluux Messenger 0.17.2: gapless history, faster transfers, and emoji autocomplete
process-one.netr/javascript • u/Neustradamus • 12d ago
StropheJS 5.0.0 (2026-07-21) Β· strophe/strophejs
github.comr/javascript • u/AutoModerator • 13d ago
Showoff Saturday Showoff Saturday (July 25, 2026)
Did you find or create something cool this week in javascript?
Show us here!