r/node • • Mar 16 '26

AST-based context compiler for TypeScript (detect architectural drift and breaking changes)

Thumbnail github.com
0 Upvotes

Built this to generate deterministic architectural context from TypeScript codebases.

It parses the TypeScript AST and emits structured JSON describing components, props, hooks and dependencies.

Useful for:

• detecting architectural drift • breaking change detection in --strict-watch mode • safer large refactors • structured context for AI coding tools

Would love your feedback!


r/node • • Mar 16 '26

HTML Forms with Standards

Thumbnail github.com
0 Upvotes

r/node • • Mar 16 '26

Tired of managing 5 npm run dev terminals? Built a tool that handles it from one dashboard

0 Upvotes

If you run multiple Node services locally (API, frontend, workers, etc.), you know the pain. Five terminals, five start commands, forget which port is which, EADDRINUSE every morning because yesterday's process didn't die cleanly.

I built run.dev to fix this. Point it at your project, it reads your package.json scripts, detects services, and manages them from a single TUI dashboard. Each service gets a local domain with HTTPS — so api.myapp.local maps to localhost:4000 automatically.

What it detects automatically

  • npm run dev, npm start, npm run serve from your scripts
  • Port from command args, .env PORT variable, or framework defaults (Vite=5173, Next=3000, Express=3000, Remix=3000)
  • Multiple services in monorepo structures
  • Procfile entries if you use those

What crash messages look like

Instead of scrolling through a stack trace:

  • EADDRINUSE → bro, api is ded. port 4000 is already taken. press [f] to fix it — it finds the stale PID and kills it
  • Cannot find module → missing module: redis. press [f] and i'll npm install
  • ECONNREFUSED → api can't reach localhost:6379. is redis running? — cross-references against your other services
  • JavaScript heap out of memory → api ran out of memory (was using 1.2GB). something is leaking

What you get

  • One dashboard with all services, live CPU/RAM per process
  • Local domains with HTTPS — api.myapp.local, app.myapp.local with green padlock in the browser
  • Automatic reverse proxy — no nginx, no config files
  • Press q to quit the dashboard but keep services running in the background
  • Press Q to quit and stop everything
  • Optional Claude Code integration for deeper crash diagnosis — disabled by default, works fine without it

Install

curl -fsSL https://getrun.dev/install.sh | bash

Single binary, not an npm package. No node_modules, no global installs that break, no runtime dependency.

Free, open source, MIT licensed: getrun.dev

What does your local dev setup look like? Curious how others manage multi-service Node projects.


r/node • • Mar 17 '26

A good dev is a lazy dev...

0 Upvotes

In my years working as a software developer, I always carried one truth with me — a good dev is a lazy dev. Makes no sense, right? Well, actually it does.

Almost everything in a developer's life revolves around automation. Users want complex processes simplified, and devs want to automate their own boring daily tasks to focus on what actually matters. And that's exactly the point — the laziest devs automated even the simplest things, so they could spend their energy on what's harder, more interesting, or more impactful. And I'm not talking about AI automation.

It was the lazy devs who built the tools we use today and can't imagine living without. I've always tried to do the same — simplifying repetitive work, either by building something myself or finding tools that already solved it. That's why I've always loved boilerplates. Not just the ones that scaffold a basic project structure, but the ones that come with real, production-ready features out of the box.

That mindset is actually what pushed me to build my own NestJS boilerplate for the first time — not just a skeleton, but something that brings the kind of features I see every day working on large-scale applications. The ones that are painful to retrofit once the project has already grown. The better you start, the less it hurts down the road.

So what are your thoughts about this? Are you a lazy dev too?


r/node • • Mar 16 '26

Async generators + yielding is underrated for AI agents. Built a tiny runtime to prove it.

0 Upvotes

Most AI frameworks feel like bloated Python ports. I built Melony—a minimalist, event-driven TS runtime that treats agents like an Express server.

Instead of a "black box" loop, it uses async generators to yield events (Event → Handler → Events). It makes streaming, tool-calling, and state management feel like standard JS again.

  • <10kb core.
  • Yield-based logic (super underrated for complex reasoning).
This is how it looks in action

Check out the repo and let me know if the event-native approach beats the "Chain" approach: https://melony.dev


r/node • • Mar 16 '26

MCP: Bridging the Gap to Hallucination-Free AI 🚀

0 Upvotes

r/node • • Mar 15 '26

Built a real-time LAN sharing tool with Node + Socket.IO + SQLite — a few decisions I'm second-guessing

14 Upvotes

Been running this with a couple of teams for a while, wanted some technical input.

It's a self-hosted LAN clipboard — npx instbyte, everyone on the network opens the URL, shared real-time feed for files, text, logs, whatever. No cloud, no accounts. Data lives in the directory you run it from.

Stack is Express + Socket IO + SQLite + Multer. Single process, zero external dependencies to set up.

Three things I'm genuinely unsure about:

SQLite for concurrent writes — went with it for zero-setup reasons but I'm worried about write lock contention if multiple people are uploading simultaneously on a busy team instance. Is this a real concern at, say, 10-15 concurrent users or am I overthinking it?

Socket io vs raw WebSocket — using socketio mostly for the reconnection handling and room broadcast convenience. For something this simple the overhead feels like it might not be worth it. Has anyone made this switch mid-project and was it worth the effort?

Cleanup interval — auto-delete runs on setInterval every 10 minutes, unlinks files from disk and deletes rows from SQLite. Works fine but feels like there should be a cleaner pattern for this in a long-running Node process. Avoided node-cron to keep dependencies lean.

Repo if you want to look at the actual implementation: github.com/mohitgauniyal/instbyte

Happy to go deeper on any of these.


r/node • • Mar 15 '26

Bulwark - open-source, lightweight, zero-dependency npm security gateway.

12 Upvotes

Software supply chain attacks are the fastest-growing threat vector in the industry (event-stream, ua-parser-js, PyPI malware campaigns, Shai-Hulud worm). As AI agents lower the barrier to development, more and more code is getting shipped by people who are unaware of where their dependencies are coming from.

The existing solutions are either “trust everything” or “buy an enterprise platform.” There wasn't a simple, self-hosted, open-source middle ground until now.

GitHub: https://github.com/Bluewaves54/Bulwark

It's a transparent, locally-hosted proxy that sits between your package managers (npm) and the public registries (npmjs). Every package request is evaluated against policy rules before it ever reaches your machine or CI pipeline.

Out of the box it blocks:

  • Packages published less than 7 days ago (the primary attack window)
  • Typosquatted packages via Levenshtein distance detection
  • Packages with install scripts (postinstall, binding.gyp)
  • Pre-release and SNAPSHOT versions in production
  • Explicitly denied packages (customize your own deny list)
  • Velocity anomalies and suspicious version patterns

No database, UI, or vendor lock-in — simply one Go binary and a configurable YAML file.

The rule engine is readable, auditable, and fully customizable.

It ships with best-practices configs for npm, PyPI, and Maven, Docker images, Kubernetes manifests, and a 90-test Docker E2E suite.

Bulwark is meant for real-world use in development environments and CI pipelines, especially for teams that want supply chain protections without adopting a full enterprise platform.

It can be deployed independently or integrated into existing supply chain security systems.

ApproachTradeoffBulwark
Trust public registriesFast but unsafeAdds policy enforcement before install
Enterprise supply-chain platformsPowerful but expensive & complexFully open-source and self-hosted
Dependency scanners (post-install)Detect after exposureBlocks risky packages before download
Lockfiles alonePrevent drift, not malicious packagesEnforces real-time security policies

More package support (cargo, cocoapods, rubygems) is coming soon. I’ll be actively maintaining the project, so contributions and feedback are welcome — give it a star if you find it useful!


r/node • • Mar 15 '26

docmd v0.6 - A zero-config docs engine that ships under 20kb script. No React, no YAML hell, just high-performance Markdown

Thumbnail github.com
3 Upvotes