How farrow-js/farrow works
Main Components
a. Core Framework Layer:
• farrow-pipeline (Base middleware system)
• farrow-schema (Type validation and schema system)
• farrow-http (HTTP server foundation)
• farrow-module (Module system)
b. Integration Layer:
• farrow-api (API service layer)
• farrow-api-server (API server implementation)
• farrow-api-client (API client implementation)
c. Framework Adapters:
• farrow-express (Express.js integration)
• farrow-koa (Koa.js integration)
• farrow-next (Next.js integration)
• farrow-vite (Vite integration)
d. Additional Features:
• farrow-cors (CORS middleware)
• farrow-federation (API federation)
• farrow-json-schema (JSON Schema support)
Relationship Structure
[Client Applications]
• ↑
[Framework Integrations]
• (Next.js/Vite)
• ↑
[API Layer]
(API Client/Server)
• ↑
[Core HTTP Layer]
• ↑
[Pipeline System]
• ↑
[Schema System]
Important Details
a. Request Flow:
• How requests flow from client through the pipeline system
• Where schema validation occurs
• How middleware can be integrated
b. Type System:
• Schema validation points
• Type information flow between layers
c. Integration Points:
• How external frameworks can be integrated
• Extension points for custom middleware
Key Relationships to Emphasize
• How farrow-pipeline enables middleware composition
• How farrow-schema ensures type safety throughout the application
• How different adapters can be plugged into the core system
• How the API layer interfaces with both client and server
Remember to include a section showing how the framework can be extended and customized, as this is a key feature of the system according to the documentation.