How feathersjs/feathers works
Main Components
a) Core Framework Layer:
• Feathers Core (@feathersjs/feathers)
• Authentication System (@feathersjs/authentication)
• Transport Layer (REST & Socket.IO)
• Schema & Validation System (@feathersjs/schema)
b) Database Adapters Layer:
• Common Adapter Interface
• Supported Databases:
• MongoDB (@feathersjs/mongodb)
• Knex (@feathersjs/knex)
• Memory (@feathersjs/memory)
c) Client Layer:
• REST Client
• Socket.IO Client
• Authentication Client
• Transport Commons
d) Integration Layer:
• Express Integration
• Koa Integration
• Authentication Strategies (Local, OAuth, JWT)
Relationship Flows
• Client requests → Transport Layer → Core Services
• Services → Database Adapters → Actual Databases
• Authentication Flow: Client → Auth Service → Strategies → Database
• Real-time Events: Socket.IO → Channels → Services
[Client Layer]
• ↓
[Transport Layer (REST/Socket.IO)]
• ↓
[Authentication Layer]
• ↓
[Core Services Layer]
• ↓
[Database Adapters]
• ↓
[Databases]
Implementation Details
Technical details like:
• Service interfaces
• Hook points
• Event channels
• Authentication flows
• Database adapter interfaces
Notes
Important notes about:
• Scalability points
• Plugin architecture
• Transport independence
• Database adapter flexibility
• Real-time capabilities