r/node • • 11h ago

What AI do you use privately for coding ?

0 Upvotes

r/node • • 16h ago

I built a headless CMS in Node.js with zero third-party dependencies (open source)

Post image
0 Upvotes

I'm a backend/DevOps engineer. I don't trust pulling in dozens of packages for something that stores and serves content, so I wrote Basata as plain Node.js: no dependencies and no build step, just run the server.

I'd love feedback from people who actually run Node in production, especially on the security side. I already did a self-review and fixed what I found, but a second pair of eyes is always better.

repo: https://github.com/digimindx/basata-cms


r/node • • 9h ago

Lightweight Node.js monitoring without Prometheus or Grafana

Post image
40 Upvotes

I've been building StatLite, an open-source monitoring dashboard for applications running on small servers and VPSs.

Version 0.9.0 adds native support for Express and Fastify using existing instrumentation libraries:

  • Express: express-prom-bundle
  • Fastify: fastify-metrics

StatLite reads the metrics endpoints directly and stores historical data in SQLite.

It tracks HTTP requests, errors, average response time, process CPU, V8 heap usage and restarts, depending on the exporter configuration. It also automatically highlights elevated HTTP 5xx rates.

StatLite itself is a single Go binary using around 12 MiB of idle RAM.

No separate Prometheus server, Grafana or external monitoring service.

StatLite also supports Spring Boot, Quarkus, Micronaut, Django, Flask, FastAPI, Caddy and Traefik. Applications without a supported exporter can expose metrics directly using the lightweight StatLite Metrics v1 JSON format.

Integration guides:

GitHub (MIT): https://github.com/PVRLabs/statlite

I'd be interested in feedback from people self-hosting Node.js applications.


r/node • • 3h ago

JSON parser for AI

0 Upvotes

For almost three years I've been using LLMs in production systems. They have gotten way better than in the beginning. Still, when you request JSON, things often go wrong: chatter, fences, or, now that models spend more tokens thinking than answering, token exhaustion.

I've put a part of the code I use on npmjs.com as a library: euqai-json-repair.

It has two functions depending on your needs:

  • Fully local (parseAiJsonSync): Fixes the JSON locally on your machine with zero network calls.
  • With AI escalation (parseAiJson): Tries to fix it locally first, and only as a last resort escalates to euqai.eu where an LLM attempts to reconstruct it.

I hope it can be helpful in your projects: https://www.npmjs.com/package/euqai-json-repair


r/node • • 5h ago

Executor is moving to Effect for writing apps

3 Upvotes

Executor is an open source router that lets you connect services like Gmail and GitHub once, so then agent harness can use them through a single connection.

Founder Rhys Sullivan said he originally built a custom framework for Executor apps, which are small Typescript programs. After dogfooding it for awhile, he decided it was simpler to let agents write Effect directly.

The change will help with things like handling errors, retrying a failed request, and refactoring apps over time.

Here's an authoring guide and code examples for the new Effect-based app feature

https://github.com/UsefulSoftwareCo/executor/blob/3cecd7141d0a84a485ef2ea5db8eebeabc8c4a53/packages/apps-next/skills/app-authoring/SKILL.md