Package Exports
- @breadstone/archipel-platform-core
- @breadstone/archipel-platform-core/src/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@breadstone/archipel-platform-core) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@breadstone/archipel-platform-core
Core backend utilities and shared infrastructure for NestJS applications.
Note: Configuration management has been extracted to
@breadstone/archipel-platform-configuration. Re-exports are still available from this package for backward compatibility. Caching lives inplatform-cachingand cryptography/OTP inplatform-cryptography.
⚠️ Environment Variables (Most Important)
| Variable | Required | Default | Description |
|---|---|---|---|
APP_URL |
yes | - | Base URL the application is served from |
APP_PORT |
yes | - | HTTP port the application listens on |
APP_VERSION |
yes | - | Semantic application version |
NODE_ENV |
no | development |
Runtime environment name |
INTELLIGENCE_MODEL |
no | - | AI model identifier |
INTELLIGENCE_TEMPERATURE |
no | 0.7 |
AI model sampling temperature |
INTELLIGENCE_TOP_P |
no | 1 |
AI model top-p value |
INTELLIGENCE_MAX_OUTPUT_TOKENS |
no | 1024 |
Max generated output tokens |
Key Components
- Mapping Service — Type-safe entity-to-response mapping
- Event System — Typed publish/subscribe with RxJS
- Content Templates — Handlebars-style template compilation
- Identifier Generation — Pluggable ID strategies (CUID, UUID, GUID)
- Base Classes — Repository, service, and controller base classes
- Decorators — Custom NestJS decorators
- Utilities — Device parser, avatar generator, username generator
Documentation
📖 Mapping Service: docs/libraries/backend/core/mapping-service.md
Development
# Build
yarn nx build platform-core
# Test
yarn nx test platform-core
# Lint
yarn nx lint platform-core