This serves as a dummy data provider, emulating API responses from the palmyra suite.
Create a .env file in the root directory for custom configuration. See .env.example for available options.
PORT- Server port (default: 3000)NODE_ENV- Environment mode (default: development)MAX_RECORDS_PER_REQUEST- Maximum records per API request (default: 10000)CORS_ORIGIN- CORS origin setting (default: *)CORS_MAX_AGE- CORS max age in seconds (default: 3600)
To install dependencies:
bun installTo run in development mode:
bun run devTo run in production mode:
bun run startOpen http://localhost:3000 (or your configured PORT)
GET /- API documentationGET /{count}- Get N drum records (1 ≤ count ≤ MAX_RECORDS)DELETE /reset- Clear stored recordsGET /health- Health check endpoint
The application includes comprehensive error handling with:
- Structured error responses
- Error ID tracking for debugging
- Different error detail levels for development vs production
- Request logging and error logging