Config-driven
Define every HTTP request, header, auth, and transform step in a YAML or JSON file — no boilerplate code required.
Define requests and data transforms in YAML or JSON. Execute them with a single method call.
# api.yaml
version: 1
baseUrl: https://jsonplaceholder.typicode.com
requests:
completedTodos:
path: /todos
transform:
- filter: { field: completed, op: eq, value: true }
- pick: [id, title]import { FraftClient } from '@go-denki/fraft';
const client = new FraftClient({ config: 'api.yaml' });
const todos = await client.run('completedTodos');
// [ { id: 1, title: '...' }, ... ]