🚀 timesfm-ts

Production-grade TypeScript/Node.js reimplementation of Google Research's TimesFM 2.5 — a 200M-parameter decoder-only foundation model for zero-shot time series forecasting.

CI npm Benchmark Coverage TypeScript Node.js License

Quick install: npm install @agentix-e/timesfm-cli && npx timesfm setup  ·  GitHub  ·  npm

📚 API Documentation

Full TypeDoc reference for all 6 packages: timesfm-core, timesfm-node, timesfm-xreg, timesfm-cli, timesfm-web, timesfm-hierarchical.

📊 Benchmark Reports — Node.js vs WASM

Inference latency, throughput, and prediction accuracy (Scaled MAE < 1.0). Combined Node.js native ONNX + browser WASM comparison. Generated by CI on every release and weekly schedule.

📈 Test Coverage — ≥95% on All Metrics

Line, branch, function & statement coverage with zero mock models. Real ONNX model integration tests with golden output cross-validation against the Python reference implementation.

🏗️ Architecture

System design, data flow (Preprocessor → ONNX Runtime → Postprocessor), component breakdown, IInferenceEngine interface, and design principles.

🔧 Custom Engine Guide

How to implement IInferenceEngine for custom runtimes — React Native, Deno Deploy, Cloudflare Workers, hardware accelerators.

💻 Source Code on GitHub

pnpm monorepo · 6 npm packages · TypeScript 5.7 strict · 97%+ test coverage · CI/CD with OIDC npm provenance