r/javascript • u/AutoModerator • Apr 04 '26
Showoff Saturday Showoff Saturday (April 04, 2026)
Did you find or create something cool this week in javascript?
Show us here!
r/javascript • u/AutoModerator • Apr 04 '26
Did you find or create something cool this week in javascript?
Show us here!
r/javascript • u/No_Landscape4532 • Apr 04 '26
- Declarative API
- Flex Layout & CSS Grid
- Multi-Page PDF β automatic page breaking, repeating headers & footers, margins
- Rich Text β spans, justification, tab stops, tab leaders, text orientation (0Β°/90Β°/180Β°/270Β°)
- Bidirectional text β RTL support for Arabic, Hebrew, and mixed LTR/RTL paragraphs
- Syntax Highlighting β via `sone/shiki` (Shiki integration)
- Lists, Tables, Photos, SVG Paths, QR Codes
- Squircle, ClipGroup
- Custom font loading β any language or script
- Output as SVG, PDF, PNG, JPG, WebP
- Fully Typed
- Metadata API β access per-node layout, text segment bboxes, and `.tag()` labels
- YOLO / COCO Dataset Export β generate bounding-box datasets for document layout analysis
- All features from [skia-canvas](https://skia-canvas.org/)
r/javascript • u/rosmaneiro • Apr 04 '26
The idea is to have a single, clean, secure, and well-maintained registry that starts with **complete NPM** and then expands to PyPI, Cargo, Maven, Go, Docker/OCI, etc. Clean architecture, pluggable storage, modern authentication (OIDC/SSO/2FA), and built to last 10β20 years.
Today is Day 2, right at the beginning.
I'd like your honest feedback.
r/javascript • u/sonemonu • Apr 04 '26
just dropped v0.8.0 of UQL, with one of the most requested features: Decorator-Free Entity Definitions. So not everyone wants (or can) use experimentalDecorators in their tsconfig.json. This is common in certain edge runtimes, specific build pipelines, or simply for developers who prefer a more functional or imperative style.
With the new defineEntity API, you can now register your database entities entirely through code. This new approach is 100% compatible with envs where decorators are disabled or unsupported.
Check out the new syntax:
import { defineEntity } from 'uql-orm';
// No decorators, no tsconfig magic required!
class User {}
defineEntity(User, {
name: 'users',
fields: {
id: { type: 'uuid', isId: true },
name: { type: String },
email: { type: String },
},
indexes: [
{ columns: ['name'] },
{ columns: ['email'], unique: true },
],
});r/javascript • u/Kitchen-Suit9362 • Apr 03 '26
r/javascript • u/Fun_Conversation8894 • Apr 03 '26
r/javascript • u/_Introvert_boi • Apr 03 '26
Over the past few weeks, I've been building a platform where users can connect their social accounts and automate content posting.
So I built Chronex, an open-source alternative to paid content schedulers.
Tech Stack
r/javascript • u/Busy-Increase-6144 • Apr 02 '26
I've been building a scanner that monitors new npm packages and it flagged something I haven't seen before.
A package called "openmatrix" uses a postinstall hook to copy 13 markdown files into ~/.claude/commands/om/. These files are Claude Code "skills" that load automatically in every session.
One of them contains instructions that tell Claude to auto-approve all bash commands and file operations without asking the user. The files are marked as always_load: true with priority: critical, so they activate in every session.
npm uninstall doesn't clean them up. There's no preuninstall script. The files stay in your home directory until you manually delete them.
The package does have real functionality (task orchestration for AI coding), so I'm not saying it's malware. But the undisclosed permission bypass and the lack of cleanup seemed worth sharing.
If you installed it:
rm -rf ~/.claude/commands/om/
rm -rf ~/.config/opencode/commands/om/
I wrote up a full report with the technical details if anyone wants to check it out. Happy to drop the link in the comments.
r/javascript • u/Busy-Increase-6144 • Apr 03 '26
Yesterday I posted about an npm package injecting prompt injection files into Claude Code. I kept the scanner running overnight and it found a lot more.
21 malicious packages across 11 campaigns in ~2000 recent npm changes. The four that stood out:
Also found a dependency confusion attack targeting Verisign, a credential stealer behind fake React components, and an obfuscated package under ByteDance's u/volcengine scope.
None were flagged by any public scanner at time of discovery.
Full reports on my site, link in the comments.
r/javascript • u/Glittering_Goose8695 • Apr 02 '26
For UI flows that are not strictly linear (onboarding, checkouts, eligibility flows, etc.), I often see logic distributed across multiple places:
β’ conditionals in components
β’ flags in state
β’ effects triggering navigation
β’ validation logic duplicated per stepState machines provide a formal model, but in practice they can feel heavy for teams that mainly need to describe a flow graph.
Iβm curious what abstractions people are using in real projects.
For example:
β’ multi-path onboarding
β’ flows with loops (retry / corrections)
β’ resumable progress
β’ feature-dependent steps
β’ flows spanning multiple screens
Are amost teams:
β’ relying on router logic?
β’ building custom hooks?
β’ using state machines?
β’ something else?Interested in hearing what has worked well in production.
r/javascript • u/FunSignificance4405 • Apr 02 '26
r/javascript • u/dani_akash_ • Mar 31 '26
r/javascript • u/Whole_Artichoke_4795 • Apr 01 '26
Built this to stop manually wiring mkcert into every project. One command
handles detection, cert generation, and config injection for:
Next.js, Vite, Astro, SvelteKit, Nuxt, Remix, Express, Fastify, NestJS
Also includes sync for teammates and doctor for diagnostics.
npm: https://www.npmjs.com/package/trustlocal
Curious if this solves a problem you've had too.
r/javascript • u/lavrton • Mar 31 '26
r/javascript • u/BattleRemote3157 • Mar 31 '26
Two versions of axios were published today through what appears to be a compromised maintainer account. No GitHub tag exists for either version. SLSA provenance attestations present in 1.14.0 are completely absent. Publisher email switched from the CI-linked address to a Proton Mail account( classic account takeover signal).
If your project floats on ^1.14.0 or ^0.30.0 you've likely already pulled this.
IoCs, payload analysis and full breakdown is in the blog.
r/javascript • u/afshinmeh • Apr 01 '26
I'm excited to introduce Zerobox, a cross-platform, single binary process sandboxing CLI written in Rust. It uses the sandboxing crates from the OpenAI Codex repo and adds additional functionalities like secret injection, TypeScript SDK, etc.
Zerobox follows the same sandboxing policy as Deno which is deny by default. The only operation that the command can run is reading files, all writes and network I/O are blocked by default. No VMs, no Docker, no remote servers.
Want to block reads to /etc?
$ zerobox --deny-read=/etc -- cat /etc/passwd
cat: /etc/passwd: Operation not permittedOr with the TypeScript SDK:
import { Sandbox } from "zerobox";
const sandbox = Sandbox.create({
denyRead: ["/etc"]
});
await sandbox.sh`cat /etc/passwd`.output();How it works:
Zerobox wraps any commands/programs, runs an MITM proxy and uses the native sandboxing solutions on each operating system (e.g BubbleWrap on Linux) to run the given process in a sandbox. The MITM proxy has two jobs: blocking network calls and injecting credentials at the network level.
Think of it this way, I want to inject "Bearer OPENAI_API_KEY" but I don't want my sandboxed command to know about it, Zerobox does that by replacing "OPENAI_API_KEY" with a placeholder, then replaces it when the actual outbound network call is made, see this example:
$ zerobox --secret OPENAI_API_KEY=$OPENAI_API_KEY --secret-host OPENAI_API_KEY=api.openai.com -- bun agent.tsOr with the TypeScript SDK:
import { Sandbox } from "zerobox";
const sandbox = Sandbox.create({
secrets: {
OPENAI_API_KEY: {
value: process.env.OPENAI_API_KEY,
hosts: ["api.openai.com"],
}
},
});
await sandbox.sh`node agent.js`.text();Zerobox is different than other sandboxing solutions in the sense that it would allow you to easily sandbox any commands locally and it works the same on all platforms. I've been exploring different sandboxing solutions, including Firecracker VMs locally, and this is the closest I was able to get when it comes to sandboxing commands locally.
I'd love to hear your feedback, especially if you are running AI Agents (e.g. OpenClaw), MCPs, AI Tools locally.
r/javascript • u/Ehh-GoodEnough • Apr 01 '26
Hey everyone,
Iβm looking for a good lightweight IDE/editor for working with JavaScript, TypeScript, React, and React Native.
Right now I feel like my current setup is a bit heavy/slow, so Iβm hoping to find something thatβs:
I donβt necessarily need a full-blown IDEβopen to editors too as long as the dev experience is smooth.
What are you all using, and what would you recommend?
Thanks!
r/javascript • u/Tungdayhehe • Apr 01 '26
Last night I've just released my first NestJS library ever to handle complex state management logic called NestflowJS.
NestflowJS is a decorator-based state machine library for NestJS. Acting as AWS Step Functions alternative but no cloud vendor-lock: define workflows, handle events, and let the orchestrator drive state transitions automatically.
Tech-stack agnostic: choose your storage, schema validation by extendable builtin class.
No extra library state: only care about your business state and its transition.
Flexible infra: zero runtime dependencies, this can run in any architecture style you can think of thanks to customizable adapter system:
Want a strong state machine with no infra overhead? Deploy using Lambda Durable function with prebuilt adapter DurableLambdaEventHandler.
Want a high-volume data processing system with full customization of message delivery configs? Create your own Kafka adapter. (Prebuilt adapter coming soon).
-.....A lot more you can think of.
import { Workflow, OnEvent, Entity, Payload } from 'nestflow-js/core';
@Workflow({
name: 'OrderWorkflow',
states: {
finals: ['delivered', 'cancelled'],
idles: ['pending_payment'],
failed: 'cancelled',
},
transitions: [
{ event: 'PAYMENT_RECEIVED', from: ['pending_payment'], to: 'processing' },
{ event: 'SHIP_ORDER', from: ['processing'], to: 'shipped' },
{ event: 'CONFIRM_DELIVERY', from: ['shipped'], to: 'delivered' },
{ event: 'CANCEL', from: ['pending_payment', 'processing'], to: 'cancelled' },
],
entityService: 'entity.order',
})
export class OrderWorkflow {
@OnEvent('PAYMENT_RECEIVED')
async onPayment(@Entity() order, @Payload() payload) {
order.paidAt = new Date();
return order;
}
}
Give me a star if you find this helpful!
r/javascript • u/Accomplished-Bug4405 • Apr 01 '26
After the Anthropic/Claude Code .map file leak and the axios supply chain attack last week, I built acrionix-shield β a single CLI that scans for leaked
secrets, compromised packages, Docker misconfigs, and git history secrets.
Supports: JavaScript, Python, Java, C#, Ruby, Go, Docker
9 scanners. 56 tests. Zero dependencies.
npx acrionix-shield check
GitHub: https://github.com/andrei-gogo/acrionix-shield
Would love feedback from the community.
r/javascript • u/Sad_Steak_6813 • Mar 31 '26
r/javascript • u/Affectionate_Major87 • Mar 31 '26
r/javascript • u/manniL • Mar 30 '26
The Oxc docs finally got a page that lists all framework and file types that Oxlint and Oxfmt are compatible with (and those that aren't supported yet).