finds.dev

PaulRBerg/foundry-template

Foundry-based template for developing Solidity smart contracts

View on GitHub

★ 640SolidityMITupdated May 2026

// the take

A Foundry template for Solidity development that swaps git submodules for Bun-managed npm packages. From Paul Berg (Sablier), so it reflects real production experience. Aimed at developers who want a sensible starting point without cargo-culting the official forge-template.

Using Bun/npm for dependency management instead of git submodules is the right call — submodules are a footgun for versioning and auditing. Ships with Solhint pre-configured, which catches common Solidity pitfalls before they become audit findings. The CI workflow is minimal and actually runs fuzz tests, not just unit tests. devcontainer + Gitpod support means the environment is reproducible from day one.

The template src/Foo.sol is a placeholder with essentially no substance — you're on your own to figure out how to structure a real multi-contract project. No gas snapshot baseline or gas reporting setup, which matters the moment you start optimizing. No coverage reporting in CI. 640 stars but only one real contract file — you should look at the Sablier repos directly if you want to see how Berg actually structures production code rather than inferring it from a thin template.

We read the README, the directory tree and a key source file in June 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
640
Forks
129
Language
Solidity
License
MIT
Last commit
25 May 2026

// nearby

If foundry-template isn't quite it.

All repos →