Server Source code Package
Fetch
Web Standard Fetch API source for walkerOS - deploy to any modern edge or serverless platform.
Where This Fits
The Fetch Source is a server source in the walkerOS flow:
It receives events via the Fetch API and forwards them to your destinations. Works on any platform supporting Web Standards.
Features
- Platform agnostic: Cloudflare Workers, Vercel Edge, Deno, Bun, Node.js 18+
- Web Standard: Native
(Request) => Responsesignature - Batch processing: Handle multiple events in single request
- CORS support: Configurable cross-origin resource sharing
- Pixel tracking: 1x1 transparent GIF for GET requests
Installation
Loading...
path setting renamed to paths
The path setting has been renamed to paths (array). The old path still works but is deprecated and will be removed in the next major version.
// Before (deprecated)
settings: { path: '/events' }
// After
settings: { paths: ['/events'] }
Quick start
- Integrated
- Bundled
More platform examples
The following examples show Integrated mode patterns for various platforms:
Vercel Edge
Loading...
Deno Deploy
Loading...
Bun
Loading...
Configuration
| Property | Type | Description | More |
|---|---|---|---|
path | string | Deprecated: use paths instead | |
paths | Array<any> | Route paths to handle. String shorthand accepts GET+POST. RouteConfig allows per-route method control. | |
cors | boolean | object | CORS configuration: false = disabled, true = allow all (default), object = custom | |
healthPath | string | Health check endpoint path | |
maxRequestSize | integer | Maximum request body size in bytes | |
maxBatchSize | integer | Maximum events per batch request |
Required fields
Ingest Metadata
Extract request metadata and forward it through the pipeline.
Loading...
Available Ingest Paths
| Path | Description |
|---|---|
url | Full request URL |
headers.get('name') | Via function: { fn: (req) => req.headers.get('name') } |
note
The Fetch API uses Request objects where headers are accessed via .get() method. Use mapping functions for header extraction.
Usage
Single Event
Loading...
Batch Events
Loading...
💡 Need Professional Support?
Need professional support with your walkerOS implementation? Check out our services.