erp-api-route
OfficialCreate secure Next.js 16 API routes.
Authorerp-mafia
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Generates scalable, repeatable Next.js 16 API route boilerplates for gnubok with consistent authentication guards, Supabase client usage, event emission, and robust error handling.
Core Features & Use Cases
- Route Template: Standard Next.js 16 API route scaffold with per-request authentication guards, user-scoped data filters, and error signaling.
- Event Emission: Supports emitting domain events after successful operations, with ensureInitialized() invoked at module scope.
- Journal Entry Handling: Integrates non-blocking and blocking journal entry creation aligned with business logic.
- Use Case: Create endpoints for entities like invoices, customers, or vouchers using a uniform pattern.
Quick Start
Create a new Next.js 16 API route under app/api using the ERP API Route Generator template, integrating auth guards, Supabase client usage, event emission, and journal entry handling.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: erp-api-route Download link: https://github.com/erp-mafia/gnubok/archive/main.zip#erp-api-route Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.