A serverless proxy for the WAVE API that manages the API key and forwards requests to the WAVE accessibility evaluation service.
- Validates requests before forwarding to WAVE API
- Manages the API key securely
- Supports all WAVE API parameters
- Deployable to AWS Lambda
- Node.js 18+
- npm
- AWS account (for deployment)
- Clone this repository
- Install dependencies:
npm install- Create a
.envfile based on.env.example:
cp .env.example .env- Add your WAVE API key to the
.envfile:
WAVE_API_KEY=your_wave_api_key_here
npm startThe server will start at http://localhost:3000 with the WAVE API proxy endpoint available at http://localhost:3000/api/wave.
POST /api/wave
| Parameter | Type | Required | Description |
|---|---|---|---|
| url | string | Yes | The URL to evaluate |
| reporttype | number | No | 1 for summary, 2 for detailed (default: 1) |
| format | string | No | 'json' or 'html' (default: 'json') |
{
"url": "https://example.com",
"reporttype": 1,
"format": "json"
}# Run in development mode with hot reloading
npm run dev
# Run tests
npm test
# Run linting
npm run lint
# Run type checking
npm run typecheck
# Build for production
npm run build- Configure your AWS credentials:
aws configure- Deploy to AWS:
npm run deployISC