Show HN: Tsfm-pg: Run Chronos-2/Timestral forecasts inside Postgres with SQL
Category: database
Tags: postgres, time-series, forecasting, zig, extension
Score: 7.8/10 (Innovation: 8, Technical: 9, Documentation: 8, Utility: 6)
tsfm-pg embeds the tsfm-zig forecaster (supporting Chronos-2 and Timestral checkpoints) directly inside PostgreSQL as a native extension written in Zig, allowing SQL queries to run time-series forecasts without shipping data to external APIs. It is technically impressive for its in-process model loading, careful memory management, and extensive SQL API, though its niche audience and complex build requirements limit broad utility.
Target audience: data engineers and backend developers working with PostgreSQL and time-series data
Repository: https://github.com/barddoo/tsfm-pg · Zig · Apache-2.0
View on Hacker News