presenters
CommunityShape API responses with reusable presenters.
Authoryutna
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Presenters transform domain entities into API-ready JSON representations for client consumption, acting as a bridge between data models and UI.
Core Features & Use Cases
- Public JSON shapes for entities (toJSON, toList, toOptions) and support for nested data through dedicated presenters.
- Reusable module-level and shared presenters to ensure consistent API responses across API routes and server components.
- Example: present a User with related Posts and a paginated list in a single JSON structure.
Quick Start
Integrate the presenter patterns into your modules and call UserPresenter.toJSON or UserPresenter.toList in API handlers and server components to produce client-ready data.
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: presenters Download link: https://github.com/yutna/vibe-next-template/archive/main.zip#presenters 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.