Reqon
Declarative DSL for fetch, map, validate pipelines. File extension: .vague
Quick Start
mission SyncData {
source API { auth: bearer, base: "https://api.example.com" }
store items: memory("items")
action Fetch {
get "/items" { paginate: page(page, 100), until: length(response) == 0 }
store response -> items { key: .id }
}
run Fetch
}
Core Constructs
mission - Pipeline container (sources, stores, schemas, actions, schedule)
source - API: auth (bearer/basic/api_key/oauth2/none), base, headers, rateLimit
source Name from "./spec.yaml" - OAS-based source
store - Storage: memory("name"), file("path"), sql("table"), postgrest("table")
action - Pipeline step: fetch, map, validate, store, wait
run [A, B] then C - Parallel then sequential execution
match response { Schema -> ..., _ -> skip } - Pattern matching
for item in store where .active { ... } - Iteration with filter
call Source.operationId - OAS-based fetch by operationId
wait { timeout, path, eventFilter, storage } - Webhook/callback waiting
schedule: every N hours or schedule: cron "..." or schedule: at "datetime"
Flow Control
continue, skip, abort "msg", retry {...}, queue dlq, jump Action then retry
Reference Files
- references/syntax.md - Full DSL syntax
- references/examples.md - Complete examples
1---
2name: reqon
3# prettier-ignore
4description: Use when writing or editing .vague files for Reqon declarative API data pipelines
5metadata:
6 source: https://skillmd.com/skills/majiayu000/reqon
7---
8
9# Reqon
10
11Declarative DSL for fetch, map, validate pipelines. File extension: `.vague`
12
13## Quick Start
14
15```
16mission SyncData {
17 source API { auth: bearer, base: "https://api.example.com" }
18 store items: memory("items")
19
20 action Fetch {
21 get "/items" { paginate: page(page, 100), until: length(response) == 0 }
22 store response -> items { key: .id }
23 }
24
25 run Fetch
26}
27```
28
29## Core Constructs
30
31- `mission` - Pipeline container (sources, stores, schemas, actions, schedule)
32- `source` - API: auth (bearer/basic/api_key/oauth2/none), base, headers, rateLimit
33- `source Name from "./spec.yaml"` - OAS-based source
34- `store` - Storage: `memory("name")`, `file("path")`, `sql("table")`, `postgrest("table")`
35- `action` - Pipeline step: fetch, map, validate, store, wait
36- `run [A, B] then C` - Parallel then sequential execution
37- `match response { Schema -> ..., _ -> skip }` - Pattern matching
38- `for item in store where .active { ... }` - Iteration with filter
39- `call Source.operationId` - OAS-based fetch by operationId
40- `wait { timeout, path, eventFilter, storage }` - Webhook/callback waiting
41- `schedule: every N hours` or `schedule: cron "..."` or `schedule: at "datetime"`
42
43## Flow Control
44
45`continue`, `skip`, `abort "msg"`, `retry {...}`, `queue dlq`, `jump Action then retry`
46
47## Reference Files
48
49- [references/syntax.md](references/syntax.md) - Full DSL syntax
50- [references/examples.md](references/examples.md) - Complete examples