Demo
A multi-scenario interactive demo showcasing the key features of rest-pipeline-js, running entirely against a local mock API mounted directly on the Vite dev server (demo/server/) — real HTTP/WebSocket/SSE round-trips with genuine network timing, no external service, no flaky third-party dependency.
bash
git clone https://github.com/macrulezru/pipeline-js.git
cd pipeline-js
npm install
npm run demo:vueOpens at http://localhost:3000. The demo app lives in the demo/ directory.
| Demo | What it shows |
|---|---|
| 🚦 CI/CD Pipeline | Parallel per-service builds, a nested subPipeline, automatic retry/backoff with selectable jitterStrategy, a real pause()/resume() manual approval gate, a next() DAG branch for hotfixes, a live SSE log stream, a PipelinePlugin, and exportState()/importState() |
| 📈 Trading Terminal | A .websocket() stage streaming live price ticks, AuthProvider login, idempotent order placement, real X-RateLimit-* headers driving onRateLimitHeaders/throttleFor(), an offline order queue, and a circuit breaker on the broker endpoint |
| 🔐 Auth Provider | Isolated getToken()/onUnauthorized() cycle — token caching, manual expiry, and the automatic 401 → refresh → retry sequence |
| 📄 Pagination | paginate() as an AsyncGenerator — cursor vs offset strategy toggle over the same build-history dataset |
| 🧪 Schema Validation | validateOutput catching a malformed response, contrasted with recoverStep() rescuing the step |
| 🕸️ Advanced Orchestration | next() DAG branch, nested subPipeline, a PipelinePlugin, and exportState()/importState() into a fresh orchestrator instance |