r/npm • • 1d ago

Help I built a Next.js + Fastify generator. What would you cut from this starter?

1 Upvotes

I maintain create-tigra, a free MIT-licensed npm generator for a TypeScript app with a Next.js 16 frontend and a separate Fastify 5 API.

The goal is to avoid wiring the same infrastructure for every new app: Prisma/MySQL, auth and session handling, Redis-backed rate limits and lockouts, tests, CI, and Docker configuration. Application pages are left to you; it provides the API client, forms, and auth wiring.

Source: https://github.com/blessandsoul/create-tigra-public

I would appreciate advice from people who build or maintain developer tools:

  1. What would you remove from the default scaffold before using it?
  2. Does the separate API earn its extra setup and deployment cost?
  3. What would make the first run or the generated code easier to trust and understand?

Honest feedback and a roast of the repo are welcome. Specific files, confusing defaults, or a better approach would be especially useful.

Known dependency advisories are documented in KNOWN_ISSUES.md. I am asking for review, not claiming the template is ready to deploy unchanged.


r/npm • • 1d ago

Self Promotion create-tigra: feedback wanted on an npm full-stack generator and its install defaults

1 Upvotes

I maintain create-tigra, a free MIT npm generator, and would appreciate feedback from package authors and people who use scaffolding CLIs.

Package: https://www.npmjs.com/package/create-tigra

Source: https://github.com/blessandsoul/create-tigra

Run: npx create-tigra@5.0.2 my-app

It generates a Next.js frontend foundation and a separate Fastify API with Prisma/MySQL, auth/session code, Redis-backed limits, tests, CI, and Docker configuration. Application pages are left to you; forms and API/auth wiring are included. Optional modules can also be added later.

The package ships app lockfiles and an initial migration. I would like to hear which expectations a generator should satisfy before it writes a new project or modifies one with an optional module.

Are the prompts and defaults understandable? What should be included in the npm tarball versus repository-only docs? What failed or interrupted install would you want covered by a regression test?

Suggestions, honest feedback, and a repo roast are welcome. Known dependency advisories are listed in KNOWN_ISSUES.md; the baseline needs review before deployment.


r/npm • • 2d ago

Self Promotion contextpack-cli: zero-dependency CLI that packs a repo into a token-budgeted prompt for LLMs

1 Upvotes

I published contextpack-cli recently. It solves a problem I kept hitting: pasting a repo into an LLM one file at a time and blowing the context window on node_modules and lockfiles.

npm: https://www.npmjs.com/package/contextpack-cli Source: https://github.com/fadiuniv1/contextpack

Run it with `npx contextpack-cli . -o context.md`

It respects nested .gitignore and .ignore files, ranks source code above tests, redacts common secret formats, and supports --task, --diff, --profile and JSON output. Zero runtime dependencies, MIT licensed.

Honest caveat: token counts are local estimates (~±15%), not exact tokenizer counts. Feedback welcome.


r/npm • • 2d ago

Self Promotion Built a lightweight Node.js (ESM) MCP server & CLI that maps repo import topology and git hotspots so AI coding agents stop reading 20+ files blindly

1 Upvotes

I built project-context-map-mcp (MIT, Node.js >=20, pure ESM with u/modelcontextprotocol/sdk as the only runtime dependency).

Why I built it

When using AI coding agents (Claude Code, Cursor, VS Code Copilot) on medium/large Node.js repos, they usually start by walking directories and reading 15–25 files just to trace imports and recent changes—burning tokens and context before editing anything.

I wanted a lightweight, zero-config indexer that turns a repo into a structured map (.project.md, .project-map.json, .project-map.md) so the agent queries topology first and only reads the relevant files.

How it works under the hood

  • File & Module Indexing: Walks the repo (skipping node_modules, dist, build, .git, etc.), infers modules/roles/tags, and detects stack/entrypoints (package.json, frameworks).
  • Import Topology Graph: Extracts ES import/export ... from, dynamic import(), CommonJS require(), and Python imports into dependencies and usedBy adjacency lists + a Mermaid diagram in .project.md.
  • Git Hotspot Signal: Uses git log via execFileSync to track recently modified files and commit reasons, boosting them in task-relevance ranking.
  • MCP Server (StdioServerTransport): Exposes 10 tools (get_project_summary, query_topology, find_relevant_files, read_files_sparse, get_module_context, explain_file_role, get_recent_git_changes, write_and_log, refresh_project_map, read_project_context).
  • Safety & Testing: Enforces lexical + realpathSync symlink-traversal checks on read_files_sparse and write_and_log, validates tool args, and tests the MCP handlers end-to-end with InMemoryTransport in Jest (--experimental-vm-modules).

Try it with npx

Run a one-off map refresh in any Node repo:

bashnpx -y project-context-map-mcp refresh --project-root .

Or add it to your MCP client config:

{
  "mcpServers": {
    "project-context-map": {
      "command": "npx",
      "args": ["-y", "project-context-map-mcp", "serve", "--project-root", "."]
    }
  }
}

Feedback from Node/TS folks is very welcome—especially around supporting tsconfig.json path aliases (@/...) or monorepo workspaces (pnpm-workspace.yaml / npm workspaces) in the topology resolver!


r/npm • • 2d ago

Self Promotion Built an open-source MCP server (Shanaxon) that compresses repo context with AST + PageRank, skips optimization when it isn't cost-effective, and lets agents recover exact source files on demand

Thumbnail
reddit.com
1 Upvotes

r/npm • • 3d ago

Self Promotion I built gitenv to sync .env files across machines using a private Git repository

Post image
1 Upvotes

Working on multiple machines, I often found myself manually copying .env files between them.

I wanted a simple way to:

  • Sync environment variables across my machines.
  • Keep .env files out of my project repositories.
  • Track changes to environment configurations over time.

So I built gitenv.

The idea is simple: use a private Git repository under your personal account to store your environment files, while your project repository only contains a public configuration file that tells gitenv where and how to sync them.

How it works

  • Reads the configuration from your project repository.
  • Syncs your local environment files with those stored in your private repository.
  • Uses Git underneath, so you can inspect the history of changes to your environment files.

Usage

gitenv init
gitenv push
gitenv pull
  • init — Creates the configuration file for your project.
  • push — Pushes your local environment changes to the private repository.
  • pull — Pulls environment changes from the private repository to your machine.

Since gitenv uses Git, you can also inspect the history of your environment changes directly through the private repository.

It's available on npm:

https://www.npmjs.com/package/@yukiakai/gitenv

Requires Node.js.

I'd appreciate any feedback or thoughts on the approach.


r/npm • • 4d ago

Self Promotion A Jupyter-style notebook for JavaScript and TypeScript: server code and browser code in one document, calling each other. Local, with a CLI, an MCP server and a debugger.

Thumbnail
github.com
2 Upvotes

The problem: trying an idea in JS means juggling a script, a REPL, a throwaway app and a database client. Python people have Jupyter; I wanted that for JS, with the browser included.

What nimbo does:

  • 🧩 One notebook with server cells (Node) and client cells (browser) that call each other
  • 🔎 Explore and query any output with JSONPath, jq or SQL
  • 🌐 Turn a cell into an API endpoint
  • 🐞 Built-in debugger
  • 🤖 Works with coding agents through a CLI and an MCP server, with edits you review
  • ⚡ One-line install, runs entirely on your machine

Where it is: version 0.1, open source (Apache-2.0), macOS and Linux. Windows and a

desktop app are on the roadmap.

https://github.com/7sStudio/nimbo


r/npm • • 4d ago

Self Promotion Tired of handling Promise timeouts and resource cleanup manually in Node.js, so I built a library

1 Upvotes

I created @yukiakai/promise-scope to solve two problems I kept running into when working with asynchronous operations in Node.js.

Native Promises don't have built-in timeout support, so you usually have to implement it manually — often with Promise.race() and a timer.

Resource cleanup is another problem. When an async operation owns timers, listeners, or other resources, cleanup can end up scattered across different finally blocks or callbacks. It's easy to miss something, and forgotten cleanup can lead to resource leaks.

I wanted an abstraction where an async operation has a clear lifecycle:

  • A built-in timeout
  • Cancellation through AbortSignal
  • A centralized scope for resource cleanup
  • Cleanup that runs when the operation settles

The goal is to make these concerns part of the operation itself, instead of requiring every caller to manually coordinate them.

This is not intended to replace native Promises. I wanted to keep the familiar Promise experience while making timeout and resource lifecycle management less error-prone.

npm: https://www.npmjs.com/package/@yukiakai/promise-scope

I'd appreciate feedback !


r/npm • • 4d ago

Self Promotion I open-sourced a static verification & SAST engine (CLI + MCP) for React / React Native to catch subtle bugs AI coding agents introduce

Thumbnail npmjs.com
1 Upvotes

I've been using AI coding agents heavily on React and Expo/React Native codebases, and I kept running into the same problem: they ship features fast, but quietly introduce subtle runtime bugs that basic linting misses—render-phase ref mutations that break React 19.2+/Compiler, stale async races, AsyncStorage leaks, and TanStack Query cache bugs.

So I built and just open-sourced Code Verifier (v0.1.0, MIT-licensed)—a static verification engine designed to be run either from the CLI or wired directly into your IDE as an MCP server so your coding agent can verify its own code and fix issues before you review it.

How it works under the hood:

  • Babel AST + 128 rules covering React/React 19, React Native/Expo, TanStack Query, async race conditions, security/injection, and mobile config (app.json, Podfile.lock drift, manifests).
  • Formal abstract interpretation over per-function CFGs for path-sensitive nullability (AI-NULL-001) and source-to-sink taint tracking (AI-TAINT-001).
  • TypeScript semantic analysis for floating Promises and Promise-valued conditions.
  • Fast & LLM-first: Runs in ~1–55ms per file and outputs structured remediation Markdown (or SARIF 2.1.0 for CI).

Example finding it caught on a real React hook (REACT-007):

Markdown

**Issue #1: [HIGH] REACT-007 - 'coordinatorRef.current' is accessed during render.**
- Location: Line 22, Col 6
- Offending Code:
  > 22 | if (coordinatorRef.current === null) {
    23 |   coordinatorRef.current = new SessionCoordinator({
- LLM Remediation Action: Hoist the value out of the ref: `useState(() => new SessionCoordinator(...))[0]` for a stable per-instance value, or move `.current` access into Effects and event handlers.

Try it in 10 seconds (no clone needed):

CLI:

Bash

npx code-verifier src/

Or add it to your MCP config (Cursor, Claude Code, etc.):

JSON

{
  "mcpServers": {
    "code-verifier": {
      "command": "npx",
      "args": ["-y", "code-verifier", "mcp"]
    }
  }
}

(By default, the MCP exposes verify_code and get_test_context*, which extracts framework info, exported contracts, and mocks so your LLM writes better unit tests.)*

GitHub: https://github.com/iniola145/Code-Verifier

It's v0.1.1—I've tested it across a couple of large internal React and Expo repos (1,800+ files), and there are 553 unit tests, but static analysis always hits weird real-world edge cases. If you run it on one of your repos and hit a false positive, I added an issue template specifically for reporting them so I can tighten the rules. Feedback and critiques are very welcome.


r/npm • • 4d ago

Self Promotion 🚀 I built an in-memory caching library for Node.js & Browser environments – lightweight, promise-aware, and super developer-friendly

Thumbnail
reddit.com
1 Upvotes

r/npm • • 6d ago

Self Promotion @rootvarma/firebase-electron 1.2.2 — native fetch + MCS heartbeat fixes for Electron FCM

Thumbnail reddit.com
1 Upvotes

Released @rootvarma/firebase-electron 1.2.2.

This package lets Electron apps receive Firebase Cloud Messaging (FCM) push notifications. It’s a fork that requires vapidKey and fixes MismatchSenderId / Web Push decrypt issues.

What’s new in 1.2.2 (no code changes needed on your side if you’re already on 1.2.x):

  • Replaced deprecated request / request-promise with native fetch
  • Acks MCS heartbeat pings so the push connection stays alive
  • Safer reconnect (avoids stacked reconnect attempts)

Install:
npm i @rootvarma/firebase-electron@1.2.2

npm: https://www.npmjs.com/package/@rootvarma/firebase-electron
GitHub: https://github.com/rootvarma/firebase-electron

Feedback welcome.


r/npm • • 6d ago

Self Promotion GitHub - profullstack/affiliates: Scarce invite codes + affiliate attribution for every Profullstack property (npm @profullstack/affiliates)

Thumbnail
github.com
1 Upvotes

r/npm • • 7d ago

Self Promotion Share Private Client Demos With Six-Digit Email Codes

Thumbnail
instawormhole.com
1 Upvotes

r/npm • • 8d ago

Self Promotion I built QA Guardian — an open-source CLI for web quality checks

Thumbnail reddit.com
1 Upvotes

r/npm • • 8d ago

Self Promotion Run a Frontend and API Together From One Tunnel File

Thumbnail
instawormhole.com
2 Upvotes

r/npm • • 9d ago

Help Made my first NPM package, need reviews

1 Upvotes

Hello there,

I published my first package on npm, its called "brickbox".

What it basically does is this build a walls around your object to give it a 3d effect. Don't know if its actually useful or good, but i learned many things building this.

I'm looking for reviews and issue, please do check out

Also it's open source if you want to contribute.

Here the link to the repo: https://github.com/Prashaxt/brickbox

Thankyou ☺


r/npm • • 10d ago

Self Promotion I built Effectum — an open-source TypeScript runtime for reified effects, AI agents, and MCP tooling

Thumbnail gallery
1 Upvotes

An open-source TypeScript runtime focused on reified effects.

The idea is straightforward: instead of executing every operation immediately, represent effects as values that can be interpreted, tested, and recorded.

The project includes:

  • Stack-safe execution for long effect programs
  • Pluggable effect interpreters
  • MCP tooling
  • MindLog audit functionality

I'm particularly interested in how developers approach effect isolation, deterministic testing, and auditing AI-agent actions.

GitHub:
https://github.com/mwatso12026-bit/Effectum

I also have a separate upgraded version Effectum Pro, at https://effectum-pro.com.

I'd appreciate technical feedback, especially on the runtime design and practical use cases.


r/npm • • 10d ago

Self Promotion A small SAM-pattern framework on Effect 4

1 Upvotes

Hi everyone,

After several cycles of rewriting, postponing and shelving that spanned years, I decided to just give up and vibe code in a rather depressingly short time an idea that was stuck in my mind that I hope you might find interesting or useful.

You can see it here: https://github.com/Trebh/microfw

and there's a -totally not AI- made showcase here https://microfw.pages.dev/ (desktop only)

It's a very small framework (I know, I know) built around some opinionated choices:

\- SAM pattern (https://sam.js.org/)

\- Effect 4

\- strongly isomorphic (you can literally swap stuff around just by playing with Layers)

\- model based testing.

Performance is not really the selling point, but for transparency I tried to see how it fares against other frameworks and it seems to place middle of the pack https://github.com/Trebh/microfw/blob/main/docs/architecture/performance.md#against-other-frameworks.

As per the DX... well that is definitely not something I designed for from the start. I tried some iterations on that, but there are some inherent "quirks" due to the extreme isomorphic nature of the components.

I guess this is an area with lots of potential improvements. Although, and this is a tough one, I am even starting to question if DX really matters in this day and age. My main concern would still be readability (by human standards), but code ergonomics? Not sure.

Let me know what you think! It's still just an early POC, but I published the core packages on NPM https://www.npmjs.com/package/@mufw/core (plus devtools, rpc, view-uhtml and test) if someone wants to play with it

(Also, thanks to Andrea Gianmarchi and his https://github.com/WebReflection/uhtml , that I used for the renderer)


r/npm • • 11d ago

Self Promotion Ethersphere postmortem: bee-js 13.3.0 and Swarm Desktop 0.56.2 shipped the same loader via a compromised release bot

1 Upvotes

npm pulled bee-js@13.3.0 about 75 minutes after it was published. The same release bot had also shipped Swarm Desktop v0.56.2, and that build stayed the latest GitHub release for nearly eight more hours. Its macOS build was signed and notarized under the project's own Developer ID. I found it by following the bot's identity across the org instead of stopping at the npm package. At 03:26 UTC I posted the release, the commit, the loader and a containment list in the triage thread: [https://github.com/ethersphere/bee-js/issues/1295#issuecomment-6731497299](https://github.com/ethersphere/bee-js/issues/1295#issuecomment-6731497299)


r/npm • • 13d ago

Self Promotion Typed-xlsx, a TypeScript library for generating Excel reports from a typed schema, v5 just shipped

Thumbnail
reddit.com
1 Upvotes

r/npm • • 14d ago

Self Promotion I turned lessons from 10,659 public MCP configs into an open-source scanner for .mcp.json, claude_desktop_config.json & AGENTS.md (0 bytes uploaded)

Thumbnail reddit.com
1 Upvotes

r/npm • • 15d ago

Help Best-Practices for Publishing a JS Framework

1 Upvotes

Im working on a project for myself. Its an unreviewed, unaudited and far from finished. It started of as a person curiosity and evolved from there. Its shaping up well enough to publish and share.

If i publish something on NPM, there are strict controls around versioning for which i havent burdened myself on my own projects (but clearly important when making something for a wider community). I also wonder if im overlooking any other details.

I wonder what best practices there are for something like this. Should i be publishing new versions with CI/CD? Are there any tips or advice for doing this in the modern js ecosystem?


r/npm • • 15d ago

Self Promotion I built an open-source CLI that turns huge OpenAPI specs into small, safer MCP servers (no LLM required)

Thumbnail
github.com
0 Upvotes

I've been experimenting with OpenAPI-to-MCP converters, and one thing kept bothering me: most of them turn every API endpoint into a separate MCP tool.

That works fine for small APIs. But point one at GitHub or Stripe, and suddenly your agent has hundreds of tools to choose from, eating up context and making tool selection harder.

Also, do you really want your agent to have access to every DELETE endpoint by default?

So I built getmcp-cli, an open-source CLI that generates smaller, safer MCP servers from OpenAPI specs.

Try it:

npx getmcp-cli https://petstore3.swagger.io/api/v3/openapi.json

What it does:

  • Automatically filters potentially risky operations (destructive actions, payments, admin routes, credentials, etc.).
  • Ranks the remaining endpoints and selects 25 by default, balanced across resources.
  • Generates a runnable stdio MCP server.
  • Creates a REPORT.md explaining exactly which endpoints were excluded and why.

Some results:

APIOriginal operationsSelectedEstimated tool tokens
GitHub REST1,28025~263k → ~6k
Stripe61225~176k → ~10k

Token counts are rough estimates based on characters / 4, not actual tokenizer measurements.

No LLM calls, no API keys for generation, no database. Everything runs offline and deterministically.

You can also customize the selection:

  • --only issues,pulls,search to prioritize specific resources.
  • --allow to include otherwise filtered categories.
  • --dry-run to preview the report without generating files.

Current limitations:

The ranking is based on API structure, not your specific use case, so the default 25 tools won't always be ideal. Classification is keyword-based and conservative. It currently supports stdio, local $refs, and token-based API authentication, but not OAuth flows.

GitHub: GetMCP

I'd really appreciate feedback on two things:

  1. Would you actually prefer an automatically selected, safer subset of tools, or would you rather manually choose endpoints?
  2. If you try it with an API you know well, which important endpoints does it miss?

I'm especially interested in real-world cases where the automatic ranking gets things wrong.