An open-source REST API with a web-based documentation interface. This Express.js application serves various endpoints organized by categories (random, search, etc.) and includes a built-in documentation site.
index.js- Main Express server entry pointapi/- API endpoint modules organized by categorydocs/- Static HTML documentation filessetup/- Configuration files (settings.js, notif.json)
- Development:
npm run dev(uses nodemon for hot reload) - Production:
npm start
The server runs on port 5000 and binds to 0.0.0.0.
Endpoints are auto-loaded from the api/ directory. Each module exports:
meta- Endpoint metadata (category, params, method)onStart- Request handler function
Settings are defined in setup/settings.js.