Node.js Backend
A reference implementation using Express 5, running on port 3001.
Quick Start
bash
cd server/node
pnpm install
pnpm devServer runs at http://localhost:3001.
Framework
- Runtime: Node.js
>=18 - Framework: Express 5
- Port:
3001(override withPORT)
Endpoints
Implements the shared API endpoints:
GET /api/captcha— generate captcha imagePOST /api/captcha/verify— verify captchaGET /api/health— health checkGET /api/info— server infoGET/POST/DELETE /api/security/*— IP blacklist management
Environment Variables
See the shared environment variables. Node.js defaults: PORT=3001, HOST=localhost.
TIP
This is a reference implementation, not a published package. Copy the code you need into your own Express project.