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.
npx agentmods add rules/felipebarcelospro/igniter-js/igniter-architecturegit clone --depth 1 https://github.com/felipebarcelospro/igniter-jsWrote 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.
[](https://agentmods.dev/rules/felipebarcelospro/igniter-js/igniter-architecture)<a href="https://agentmods.dev/rules/felipebarcelospro/igniter-js/igniter-architecture"><img src="https://agentmods.dev/badge/rules/felipebarcelospro/igniter-js/igniter-architecture.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00890 | $0.00890 |
| Opus 5 | $0.00445 | $0.00445 |
| Sonnet 5 | $0.00178 | $0.00178 |
| Haiku 4.5 | $0.00089 | $0.00089 |
Grade A, and why
igniter-architecture 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 3d 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.
How it starts
The opening of the file, as written. The whole thing — 63 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Igniter.js: Core Architecture
This document outlines the foundational architecture of an Igniter.js application when integrated with the Next.js App Router.
1. Core Architectural Principles
The application leverages the Next.js App Router to execute code on both the server (React Server Components, API Routes) and the client (Client Components). Igniter.js is integrated as a structured, type-safe API layer that sits within the Next.js project.
1.1. API Entry Point: The Bridge
All API requests are funneled through the main Express application, which acts as a bridge to the Igniter.js backend.
- File Location:
src/index.ts - Mechanism: This file uses the
expressAdapterto integrate the Igniter.js router with Express. It translates incoming Express requests into a format Igniter.js can process and translates Igniter.js responses back into a format Express can serve. It handles all HTTP methods (GET,POST, etc.) for any route matching theIGNITER_API_BASE_PATH(e.g.,/api/v1/*). You will rarely need to modify this file.
1.2. API Layer: Feature-Based Structure
All backend business logic is organized using a Feature-Based Architecture within the src/features directory.
src/igniter.ts: The central configuration file where theigniterinstance is created. This is where global plugins and adapters are registered.src/igniter.router.ts: This file assembles the mainAppRouterby importing and registering all feature controllers. It serves as the single source of truth for your API's structure and endpoints.src/features/[feature]/controllers/: This is where your business logic resides. Each controller defines a set of related APIactions(query,mutation).
1.3. The Universal Type-Safe Client
The file src/igniter.client.ts defines the isomorphic, type-safe Igniter.js API client. This is the primary interface for frontend-backend communication.
- Auto-Generated: This file MUST NOT be edited manually. It is a build artifact that is automatically regenerated by the development server whenever
igniter.router.tschanges. - Universal Operation: The client is designed to work seamlessly in all Next.js rendering environments:
- React Server Components (RSC): You can call API actions directly as if they were local functions (e.g.,
await api.posts.list.query()). This executes a direct function call on the server, bypassing HTTP for maximum performance. - Client Components (
'use client'): You must use the provided React Query hooks (e.g.,api.posts.list.useQuery()). These hooks handle standard HTTP requests and manage the entire client-side state lifecycle, including loading, errors, and caching.
- React Server Components (RSC): You can call API actions directly as if they were local functions (e.g.,
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.
- 3d ago First seen · 63 lines · 890 tokens per session scan A 5f680ec1d5da
igniter-architecture is a cursor rule published in the GitHub repository felipebarcelospro/igniter-js (242 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 890 tokens to every session, about $0.0044 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-01.
Other cursor rules, from other repositories
codegraph
CodeGraph MCP usage guide — when to use which tool.
git
Never mutate git history, remotes, or GitHub repo state.
css
TSF stylesheet conventions, layout debugging, and minification.
javascript
TSF JavaScript syntax, formatting, and minification.
local
Private workspace guidance and gitignored .local search (Grep/Glob are blind).
docs
Readme wording constraints, WordPress readme format, changelog prose style, and public API naming requirements.