Feature-Based-Layered-Architecture
OfficialFeature-based layered architecture for Next.js
Software Engineering#architecture#nextjs#feature-based#modular-design#layered-architecture#api-routing#server-only
Authorsasatech-labs
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Feature-Based Layered Architecture provides a clear pattern for organizing Next.js apps into distinct layers (Handler, Service, Repository, and Adapter) and feature modules, improving maintainability and scalability.
Core Features & Use Cases
- Feature-based Layer Architecture for Next.js (App Router) with Supabase: a four-layer structure that guides where to place handlers, services, repositories, and adapters.
- Feature-based module structure under features/ to group functionality by domain, with clear public API exposure via index.server.ts and index.client.ts.
- Guidelines for guides and rules to enforce architecture, including a default stack and directory layout.
Quick Start
Create a new feature under features/ and implement Handler/Service/Repository/Adapter layers following the prescribed structure.
Dependency Matrix
Required Modules
server-onlypinopino-prettyvitest@supabase/supabase-js
Components
scripts
💻 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: Feature-Based-Layered-Architecture Download link: https://github.com/sasatech-labs/skills/archive/main.zip#feature-based-layered-architecture 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 223,000+ vetted skills library on demand.