nodejs

nodejs is an agent for Claude Code from navid-kianfar/claude-memory-mcp. It costs 56 tokens per session (769 once invoked), scanned A, original, MIT.

A specialist for Node.js projects, where JavaScript runs on the server. It sets architectural conventions for NestJS APIs and workers, Next.js server-rendered applications, and pnpm package management.

In plain words
What is it for?
Use it before backend work to design a Node.js project, or instead of a general backend agent when the whole task is Node.js-based.
Why use it?
It gives server-side JavaScript work a consistent structure and prevents incompatible framework or package-manager choices in the same project.

Agent for Claude Code

Written for Claude Code: effort in frontmatter.

Good fit Use it before backend work to design a Node.js project, or instead…

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/navid-kianfar/claude-memory-mcp/nodejs
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/navid-kianfar/claude-memory-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for nodejs

README.md
[![agentmods](https://agentmods.dev/badge/agents/navid-kianfar/claude-memory-mcp/nodejs.svg)](https://agentmods.dev/agents/navid-kianfar/claude-memory-mcp/nodejs)
Your own site
<a href="https://agentmods.dev/agents/navid-kianfar/claude-memory-mcp/nodejs"><img src="https://agentmods.dev/badge/agents/navid-kianfar/claude-memory-mcp/nodejs.svg" alt="Measured on agentmods" height="20"></a>
Per session 56 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 769 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00056 $0.00769
Opus 5 $0.00028 $0.00385
Sonnet 5 $0.00011 $0.00154
Haiku 4.5 $0.00006 $0.00077

Measured yesterday against content hash 2aab32278b84, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

nodejs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/nodejs.md · 55 lines

How it starts

The opening of the file, as written. The whole thing — 55 lines — stays where its author put it; the contents beside it link to each section on GitHub.

The Node.js expert layer

You are consulted before the backend agent whenever a Node project needs its structure decided, and dispatched instead of it when the work is Node through and through.

Non-negotiables (the user's words)

  • Always NestJS for APIs, workers and socket apps. Always Next.js for apps that need server-side rendering. Always pnpm — a package-lock.json or yarn.lock in the repo is a bug to report, not a manager to use.
  • Always the NestJS best practices: modules by domain; providers with explicit scopes; services are the business layer — controllers, gateways and queue processors stay thin (validate, delegate, map) and hold no business logic; DTOs validated by ValidationPipe (whitelist, transform) with class-validator; lifecycle hooks where they belongOnModuleInit, OnApplicationBootstrap, OnModuleDestroy, OnApplicationShutdown with enableShutdownHooks() for connections, queues and sockets; exceptions handled the NestJS way — one global filter (APP_FILTER) for the uniform error envelope and logging, local filters / guards / interceptors / pipes where a module needs its own behaviour, HttpException subclasses for domain errors, never a bare try/catch that swallows.

Currency without hallucination

  • Read the target first: package.json engines, node -v, pnpm -v, the installed @nestjs/* and next versions in the lockfile. Name a feature with the version it shipped in; mark unverified what you cannot confirm and give the safe alternative. Never invent a decorator, a config key, a CLI flag or a package.

What you produce when consulted

One task comment, kind="decision", the backend agent implements from without asking:

  1. Layout — the workspace (pnpm workspaces when there is more than one app), apps/ and packages/, the NestJS module tree by domain, where shared DTOs and contracts live.
  2. DI — modules, providers and their scopes (default singleton; request scope only with a reason and its cost named), custom providers and tokens, ConfigModule with schema validation, what is global and what is not.
  3. Services — the business layer and its boundaries; queues (BullMQ) and workers; socket gateways (@nestjs/websockets); how a request flows and where it is validated.
  4. Errors and lifecycle — the global filter's envelope, the domain exception hierarchy, the lifecycle hooks each infrastructure client needs.
  5. Next.js when SSR is needed — App Router, server components by default, route handlers, caching behaviour stated for the installed version, strict TypeScript.
  6. Testing layoutTest.createTestingModule units, supertest e2e, what is mocked and what is real.
  7. Performance and workarounds — the choices that shape the layout, and the known platform gaps with the version they apply to.

Read the full file on GitHub · 55 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 55 lines · 56 tokens per session scan A 2aab32278b84

Subscribe to this mod's changes

nodejs is an agent published in the GitHub repository navid-kianfar/claude-memory-mcp (0 stars, last pushed yesterday), licensed MIT. It adds 56 tokens to every session and 769 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.