Skip to content

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:vue

Opens at http://localhost:3000. The demo app lives in the demo/ directory.

DemoWhat it shows
🚦 CI/CD PipelineParallel 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 TerminalA .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 ProviderIsolated getToken()/onUnauthorized() cycle — token caching, manual expiry, and the automatic 401 → refresh → retry sequence
📄 Paginationpaginate() as an AsyncGenerator — cursor vs offset strategy toggle over the same build-history dataset
🧪 Schema ValidationvalidateOutput catching a malformed response, contrasted with recoverStep() rescuing the step
🕸️ Advanced Orchestrationnext() DAG branch, nested subPipeline, a PipelinePlugin, and exportState()/importState() into a fresh orchestrator instance