igniter-architecture

igniter-architecture is a cursor rule for Cursor from felipebarcelospro/igniter-js. It costs 890 tokens per session, scanned A, original, Apache-2.0.

Architecture guidance for Igniter.js applications built with the Next.js App Router. It explains how the Express entry point connects requests to a feature-organized, type-safe API layer used by both server and client code.

In plain words
What is it for?
Use it when adding API routes, organizing features, connecting Express and Next.js, or changing the shared API client.
Why use it?
It helps an agent place backend logic in the expected layer and understand how HTTP requests move through the application.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when adding API routes, organizing features, connecting Express and Next.js, or changing the shared API client.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/felipebarcelospro/igniter-js/igniter-architecture
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/felipebarcelospro/igniter-js

Made for: Cursor.

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 igniter-architecture

README.md
[![agentmods](https://agentmods.dev/badge/rules/felipebarcelospro/igniter-js/igniter-architecture/github.svg)](https://agentmods.dev/rules/felipebarcelospro/igniter-js/igniter-architecture)
Your own site
<a href="https://agentmods.dev/rules/felipebarcelospro/igniter-js/igniter-architecture"><img src="https://agentmods.dev/badge/rules/felipebarcelospro/igniter-js/igniter-architecture/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 igniter-architecture

Your own site · 80×15
<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="Reviewed on agentmods" width="80" height="20"></a>
Per session 890 This file is loaded in full into every session.
When invoked 890 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.00890 $0.00890
Opus 5.5 $0.00356 $0.00356
Sonnet 5.5 $0.00178 $0.00178
Haiku 4.5 $0.00089 $0.00089

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

Security

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 3mo 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.

apps/sample-realtime-chat/.cursor/rules/igniter-architecture.mdc · 63 lines

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 expressAdapter to 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 the IGNITER_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 the igniter instance is created. This is where global plugins and adapters are registered.
  • src/igniter.router.ts: This file assembles the main AppRouter by 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 API actions (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.ts changes.
  • 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.

Read the full file on GitHub · 63 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. 3mo ago First seen · 63 lines · 890 tokens per session scan A 5f680ec1d5da

Subscribe to this mod's changes

igniter-architecture is a cursor rule published in the GitHub repository felipebarcelospro/igniter-js (240 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 890 tokens to every session, about $0.0036 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-09-01.

Related

igniter-architecture compared with cursor rules from other repositories

igniter-architecture next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
igniter-architecturefelipebarcelospro/igniter-jsCursor rule2401mo agoApache-2.0A890Cursor
design-standardsbernierllc/agents-environment-configCursor rule11todayMITA0Cursor
express-rulesbeel-collab/presets.devCursor rule36d agoMITA0Cursor
nestjs-apiWellApp-ai/WellCursor rule35311d agoMITA506Cursor
lapLap-Platform/LAPCursor rule3491mo agoApache-2.0A124Cursor
csssybrew/the-seo-frameworkCursor rule4894d agoGPL-3.0A0Cursor
chassisdvd90/chassisCursor rule63mo agoMITA267Cursor