Native Rust
Maximum performance and full access to the Hayashi ABI. Compiled as .so, .dylib, or .dll for each release target.
Extend Hayashi without changing the core. Three tiers: native Rust, WebAssembly, and Hayashi scripts.
Plugins are installed from GitHub, loaded automatically, and exposed through a single namespace.
Maximum performance and full access to the Hayashi ABI. Compiled as .so, .dylib, or .dll for each release target.
Sandboxed, portable, and safe. One binary runs on every platform. Ideal for untrusted or third-party code.
Pure Hayashi code shared as a repository. No compilation required. Good for estimators, transformations, and reusable workflows.
hay install user/repo
# Update one or all plugins
hay update user/repo
hay update
# Remove
hay remove user/repo
import("user/myplugin", as=mp)
let m = ols(lwage ~ educ + exper, df)
let fitted = predict(m, df)
let result = mp::transform(fitted)
print(result)
Officially endorsed plugins maintained by the Hayashi team. They are grouped by what they do. Some are mature; others are young experiments. All are open source.
Native Wooldridge datasets plugin for Hayashi. Brings the textbook datasets directly into DataFrames for teaching and replication.
$ hay install sheep-farm/haywooldridgeFRED (Federal Reserve Economic Data) connector. Fetch GDP, CPI, unemployment, interest rates, and 800+ other US economic time series directly into Hayashi DataFrames.
$ hay install sheep-farm/hayfredBrazilian macroeconomic data plugin with real API integration. Access BCB (Selic, PIB, reserves), IBGE (municipal GDP, IPCA, unemployment), and CVM (company data, financial statements, FIIs) directly from official Brazilian government APIs.
$ hay install sheep-farm/haybrasilOfficial Brazilian spatial data from IPEA's geobr project. Download states, municipalities, biomes, regions, census tracts, indigenous lands, conservation units, and more as DataFrames with WKT geometry. 28 datasets available with automatic caching.
$ hay install sheep-farm/haygeobrYahoo Finance market data connector. Historical OHLCV prices, real-time quotes, ticker search, and instrument metadata. Caches responses and handles rate limits gracefully.
$ hay install sheep-farm/hayahooPlotting and visualization with SVG and PNG output. Scatter, line, bar, histogram, box, and area plots. Multi-series support with configurable axes, legends, and themes. Uses Arrow FFI for zero-copy data transfer.
$ hay install sheep-farm/hayplotExport Hayashi estimation results and DataFrames to publication-ready LaTeX. Supports regression tables, summary statistics, and tabular data with customizable formatting, column alignment, and booktabs-style rules.
$ hay install sheep-farm/haytexGeographic mapping plugin for Hayashi. Create maps with multiple layers, automatic projection, and SVG output. Supports WKT geometries (POINT, POLYGON, MULTIPOLYGON) and integrates with haygeobr for Brazilian spatial data.
$ hay install sheep-farm/haygeomExport utilities for Hayashi. Convert DataFrames and estimation results into common formats for interoperability with other tools.
$ hay install sheep-farm/hayexportBayesian econometrics for Hayashi. Metropolis-Hastings and Gibbs samplers, conjugate priors, Bayesian regression, credible intervals, posterior predictive distributions, and model comparison via Bayes factors.
$ hay install sheep-farm/haybayesSimulation utilities for Hayashi. Generate synthetic datasets and Monte Carlo experiments for teaching and validation.
$ hay install sheep-farm/haysimOptimization routines for Hayashi. Numerical solvers for maximum likelihood, minimum distance, and general objective functions.
$ hay install sheep-farm/hayoptTime series utilities for Hayashi. Date indexing, lag/lead operations, rolling windows, and frequency handling.
$ hay install sheep-farm/haytimeWeb integration utilities for Hayashi. Helpers for HTTP requests, web scraping, and API clients.
$ hay install sheep-farm/haywebSpatial analysis helpers for Hayashi. Coordinate transformations, spatial joins, and geometry operations.
$ hay install sheep-farm/hayspatialWant your plugin listed here? Open an issue on the Hayashi repo with a link to your plugin, a brief description, and the category it fits. Approved plugins must be open source, cross-platform, and pass a code review.
The fastest way to build a new plugin is to imitate existing ones. The code is the documentation.
0) clone hayashi and hayashi-plugin-sdk
1) find 1-3 plugins that resemble what you want
2) ask your preferred AI to study the code
3) ask it to build your plugin
Native plugins are GitHub repositories that expose functions through the Hayashi ABI. The package manager downloads the correct release asset for the user's platform. For a full SDK reference, see the books.