Requirements:
- Rust 1.88 or later (
rustup update stable) cargo(ships with Rust)- Git
- Optional:
mdbookfor building the documentation site
Building from source:
git clone https://github.com/100monkeys-ai/forgejs
cd forgejs
cargo build --workspaceThe workspace builds all six crates: forge-compiler, forge-runtime, forge-cli, foundry-server, foundry-client, and forge-shared.
# All workspace tests
cargo test --workspace --locked
# A single crate
cargo test -p forge-compiler --locked
# A specific test
cargo test -p forge-compiler --locked -- parser::tests::test_jsx_transformFormatting — all Rust code must pass rustfmt:
cargo fmt --all --checkLinting — all Rust code must pass clippy with warnings as errors:
cargo clippy --workspace -- -D warningsBoth checks run in CI on every push. A PR that fails either check will not be merged.
General guidelines:
- No
unwrap()in library code — use proper error handling with?and typed errors - Prefer explicit error types over
anyhowin library crates;anyhowis acceptable in binary crates - Use
thiserrorfor error type definitions - Document all public items with
///doc comments - Write unit tests in the same file as the code they test (
#[cfg(test)]module) - Write integration tests in
tests/
<type>: <short summary>
<optional body — explain why, not what>
Types:
feat:— new featurefix:— bug fixdocs:— documentation onlyrefactor:— code change that neither fixes a bug nor adds a featuretest:— adding or updating testschore:— tooling, CI, or dependency updatesperf:— performance improvement
Keep the subject line under 72 characters. Use the body for anything that needs explanation — the why, not the what.
Examples:
feat: add compile-time boundary enforcement to analyzer pass
fix: resolve signals subscription leak in runtime isolate
refactor: extract emit stage from compiler into dedicated module
docs: document Foundry resolution algorithm
test: add integration tests for multi-target build pipeline
-
Fork the repository and create a branch from
main -
Make your changes
-
Ensure all checks pass locally before opening a PR:
cargo fmt --all cargo clippy --workspace --locked -- -D warnings cargo test --workspace --locked -
Open a PR against
main -
The PR description must explain what the change does and why
Additional requirements:
- All PRs require passing CI (check, fmt, clippy, test)
- Spec changes require a new ADR or an update to an existing one in
spec/adrs/ - FSL changes require corresponding test updates in the same PR
- PRs that skip the verification checklist will be closed without review
forgejs/
compiler/ # forge-compiler — Oxc build pipeline
runtime/ # forge-runtime — V8 execution + HTTP server
cli/ # forge-cli — the forge binary
foundry/
server/ # foundry-server — package registry
client/ # foundry-client — registry client library
shared/ # forge-shared — shared types
fsl/ # Forge Standard Library (.fx packages)
spec/ # Normative specifications and ADRs
docs/ # mdBook documentation
docker/ # Dockerfiles
scripts/ # Install and utility scripts
Use GitHub Issues. Fill out the bug report or feature request template completely. Incomplete reports will be closed.
For security vulnerabilities, see SECURITY.md — do not open a public issue.