@famir/database
v0.0.5
Published
Famir database module
Maintainers
Readme
@famir/database
Database connector, manager, repositories and models for the Famir ecosystem.
Features
- TypeScript-first with strict type guards and assertions
- Configuration via
@famir/configpackage - High performance Redis backend
- Redis-Functions for atomic and isolated operations
- Clear error handling with
DatabaseError - Integration with
@famir/commonDI container
Modules
- Campaign – root entity that groups and locks all other resources
- Proxy – upstream proxy server for outgoing traffic
- Target – maps a public mirror hostname to an internal donor server
- Redirector – page template with a set of required field names
- Lure – links a URL path to a redirector, O(1) path lookup
- Session – tracks client session with proxy failover and two‑stage TTL
- Message – logs HTTP request/response transactions
