TSFM research and execution guide

Time Series Forecasting in TypeScript

Run a validated ONNX forecast graph in a browser worker or integrate an external forecasting API from your application server.

Model directoryUpstream researchExecution options
A reproducible forecasting decision
1. Define task, cutoff, frequency, and horizon
2. Select checkpoint and revision
3. Verify supported inputs and outputs
4. Compare against a realistic baseline
5. Choose browser or external execution

TSFM provides model information and validated browser execution. External providers own their compute, credentials, and billing.

Decisions that matter

Browser execution requires a complete forecast graph

ONNX Runtime Web can run supported graphs through WASM. An encoder-only export provides embeddings, not a forecast. Validate preprocessing, tensor shapes, normalization, and quantile decoding against the original model before exposing an exported checkpoint as a forecasting option.

Keep inference off the UI thread

Download weights only when requested, show progress, verify the file checksum, and run inference in a worker. Cancellation should terminate the worker. Cache immutable weights locally and let the user clear the cache. Runtime availability does not guarantee that every model graph works in every browser.

Keep external credentials on the application server

If a production application uses an external forecasting API, store provider credentials outside the browser bundle. A client-side model demo and a server-side provider integration have different privacy and operating contracts. TSFM's playground sends no forecast request to its own backend.

Understand the execution boundary

Primary sources and related guides

ONNX Runtime Web

Review the implementation, model contract, and source evidence before adopting a checkpoint.

Open source

Browser playground

Review the implementation, model contract, and source evidence before adopting a checkpoint.

Open source

Hugging Face custom inference handlers

Review the implementation, model contract, and source evidence before adopting a checkpoint.

Open source

Frequently Asked Questions

Choose a checkpoint and an execution option

Start with the model contract and evidence, then select the runtime that fits your task.