Part 1: Setup and Your First Route¶
Verified status as of March 28, 2026. Runtime note: FastFN auto-installs function-local dependencies from
requirements.txt/package.json; host runtimes are required infastfn dev --native, whilefastfn devdepends on a running Docker daemon.
Quick View¶
- Complexity: Beginner
- Typical time: 15-20 minutes
- Outcome: clean project with one
GET /tasksendpoint and OpenAPI entry
1. Clean-room setup¶
2. Implement the first route (choose one runtime)¶
File: functions/tasks/handler.js
File: functions/tasks/handler.py
File: functions/tasks/handler.rs
3. Run locally¶
4. Validate first request (per runtime)¶
Expected body shape:
[
{ "id": 1, "title": "...", "completed": false },
{ "id": 2, "title": "...", "completed": false }
]
5. Validate OpenAPI visibility¶
Expected output:

Troubleshooting¶
503: check/_fn/healthand runtime dependencies- route not found: confirm handler path under
functions/tasks/ - OpenAPI missing path: run
curl -X POST http://127.0.0.1:8080/_fn/reload
Next step¶
Go to Part 2: Routing and Data
Related links¶
Last reviewed:
March 28, 2026
·
Docs on fastfn.dev