macOS
brew install stanc3local Homebrew formula metadata
sudo port install stanc3MacPorts ports tree · math/stanc3/Portfile · source: api.github.com
brew / rank 8342
Stan transpiler. Version 2.39.0 via Homebrew; verified 2026-07-13. Also installable with macports: sudo port install stanc3.
install
brew install stanc3local Homebrew formula metadata
sudo port install stanc3MacPorts ports tree · math/stanc3/Portfile · source: api.github.com
nix profile install nixpkgs#stancnixpkgs package indexes · pkgs/by-name/st/stanc/package.nix · source: api.github.com
overview
Stan transpiler
history
stanc3 is the OCaml implementation of the Stan compiler, exposed to users as the stanc command.
The official repository describes stanc3 as a new Stan-to-C++ compiler written in OCaml, with a frontend, middle representation, analysis and optimization layer, and Stan Math backend. The Stan User's Guide says the Stan compiler has been implemented in OCaml since Stan 2.22, while the repository README says stanc3 has been the default compiler for Stan since version 2.26.
stanc3 became part of normal Stan usage because Stan interfaces call the stanc compiler when translating models. The official releases page shows signed multi-platform binaries and a JavaScript version, while the package facts show Homebrew, MacPorts, and Nix packaging.
Users generally encounter stanc through CmdStan and other Stan interfaces, or directly as a CLI with syntax like stanc options model_file. The User's Guide documents options for output files, generated C++ printing, automatic formatting, canonicalization, warnings, optimization levels, OpenCL support, and compiler diagnostics.
Package nerds care about stanc3 because it is the compiler binary behind a large statistical programming ecosystem. Its OCaml toolchain, generated multi-platform assets, JavaScript build, and integration with CmdStan make it a packaging-sensitive developer tool rather than just an internal library.
security posture
No matching local secret-handling manifest was found for stanc3. Nucleus package metadata is still published here so future coverage has a stable package URL.
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
stanc | executable | indexed executable | Discovered from the local executable index. |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:stanc3 |
|---|---|
| Version | 2.39.0 |
| Package manager | Homebrew |
| Homepage | https://github.com/stan-dev/stanc3 |
| Repository | https://github.com/stan-dev/stanc3 |
| Last updated | 2026-07-13T05:11:31Z |
| Pulse | updated |
| Bottle | not recorded |
| Service | none declared |
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
stanc3
sudo port install stanc3stanc
nix profile install nixpkgs#stancsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.