n-dashboard: Instructions file for Claude Code

CLAUDE.md

n-dashboard CLAUDE.md is an instructions file for Claude Code from devapro/n-dashboard. It costs 2,871 tokens per session, scanned A, original, MIT.

Repository instructions for n-dashboard, a personal dashboard that displays small TypeScript programs called widgets. Widgets can run on schedules, messages, or webhooks and send typed results to open browser tabs.

In plain words
What is it for?
It is for guiding development, testing, type checking, and changes to widgets, data updates, login behavior, and the dashboard's browser connections.
Why use it?
It records the project structure, commands, limits, and design rules so agents can change the dashboard without breaking its expected behavior.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md.

This is devapro/n-dashboard's own configuration. It tells Claude Code how to work on n-dashboard itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything n-dashboard configures →

Reuse

Borrowing it

Nothing to install: this file belongs to devapro/n-dashboard. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/devapro/n-dashboard/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/devapro/n-dashboard

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 n-dashboard CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/devapro/n-dashboard/claude-md/github.svg)](https://agentmods.dev/instructions/devapro/n-dashboard/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/devapro/n-dashboard/claude-md"><img src="https://agentmods.dev/badge/instructions/devapro/n-dashboard/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for n-dashboard CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/devapro/n-dashboard/claude-md"><img src="https://agentmods.dev/badge/instructions/devapro/n-dashboard/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,871 This file is loaded in full into every session.
When invoked 2,871 The same file — it is already loaded in full.
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.02871 $0.02871
Opus 5.5 $0.01148 $0.01148
Sonnet 5.5 $0.00574 $0.00574
Haiku 4.5 $0.00287 $0.00287

Measured 2mo ago against content hash 94b9ebc11889, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

n-dashboard CLAUDE.md 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 2mo ago.

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.

CLAUDE.md · 221 lines

How it starts

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

CLAUDE.md

Notes for anyone — human or agent — working in this repository. README.md is the user-facing documentation; this file is the parts that are easy to break.

What this is

A personal dashboard for a trusted LAN. One idea carries the whole design: a widget is a TypeScript function on disk. The platform decides when to call it (clock, MQTT message, webhook), validates what it returns against a typed schema, and pushes the result to every open tab over SSE. There is no plugin format and no config-driven renderer path, so summing a field, joining two APIs and remembering what you already saw are all the same amount of work.

Widget code is trusted. Isolation exists to contain bugs, not attackers. There is one optional login, over /admin only (ADMIN_PASSWORD in .env) — it keeps the panel out of reach of whoever walks past the wall display, and it is not a hardening story. Multi-user is still out of scope; see the bottom.

Commands

npm run dev        # node --watch on :8080 + vite on :5273 (proxies /api)
npm test           # vitest; MQTT suites skip themselves without a broker
npm run typecheck  # both projects; run this, tsc catches what vitest can't
npm run build      # web bundle only — the server has no build step

docker compose -p n-dashboard-dev -f docker/compose.dev.yml up -d   # broker for tests

Repo map

.claude/skills/ write-widget — the widget-authoring workflow, for agents
src/shared/    ctx.d.ts (the widget API), kind schemas, duration parsing
src/server/    express, worker pool, scheduler, connections, ndjson store
src/web/       react — dashboard (kept light) + admin (Monaco, lazy-loaded)
docker/        Dockerfile, both compose files, broker configs
docs/          the long-form guides linked from README.md, plus the Pages page
examples/      seeded into data/ disabled on first run
data/          runtime state, gitignored

Invariants

Break one of these and it usually fails somewhere far away from the change.

Read the full file on GitHub · 221 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. 2mo ago First seen · 221 lines · 2,871 tokens per session scan A 94b9ebc11889

Subscribe to this mod's changes

n-dashboard CLAUDE.md is an instructions file published in the GitHub repository devapro/n-dashboard (12 stars, last pushed 3mo ago), licensed MIT. It adds 2,871 tokens to every session, about $0.0115 per session on Opus 5.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-08-30.

Related

n-dashboard CLAUDE.md compared with instructions from other repositories

n-dashboard CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
n-dashboard CLAUDE.mddevapro/n-dashboardInstructions file123mo agoMITA2,871Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode