Comparison

Foundry vs Hardhat

No clear leader: Hardhat (61.7) and Foundry (59.7) are within the 5-point margin; treat as a tie. The attribute-by-attribute breakdown below, with a source and date on every value, is the honest way to compare them.

Machine formatsMarkdownJSONGraphQLMarkdown is open. JSON and GraphQL need a free key.
Foundry60
Hardhat62
Score
vioscaleAI score
Foundry60 / 100high · 75%
Hardhat62 / 100medium · 59%
Pricing
Free tier
Foundry✓
Hardhat✓
Model
Price level
Foundryfree
Hardhatfree
Transparent
Foundry–
Hardhat✓
Integrations
Count
Foundry3
Hardhat2
Reliability
Status page
Foundry✓
Hardhat–
Adoption
Dependent repos
Foundry1
Hardhat36,669
Github stars
Foundry10,662
Hardhat8,514
Activity
Commits last 30d
Foundry100
Hardhat100
Release
Cadence days
Foundry1
Hardhat–
History
Foundry20 items
Hardhat20 items
License
Spdx
FoundryApache-2.0
Hardhat–
Language
Primary
FoundryRust
HardhatTypeScript
Content
Faq
Foundry4 items
Hardhat–

Capabilities

Feature-by-feature on the axes that matter for blockchain dev tools. “-” means undocumented, not absent.

Capabilities
Tooling type
FoundryFramework
HardhatFramework
Evm compatible only
Foundry✓
Hardhat✓
Local dev network
Foundry✓
Hardhat✓
Native fuzzing invariant testing
Foundry✓
Hardhat✓
Mainnet forking
Foundry✓
Hardhat✓
Contract verification integration
Foundry✓
Hardhat-
Trace debugger
Foundry✓
Hardhat✓
Gas profiling
Foundry✓
Hardhat-
Archive node access
Foundry-
Hardhat-
Graphql indexing
Foundry-
Hardhat-
Static analysis security tool
Foundry✓
Hardhat-
Open source
Foundry✓
Hardhat✓
Maintenance status
FoundryActive
HardhatActive

What each one is

The product in its own terms, so the numbers below have context.

Foundry

A Rust-based toolkit for building, testing, debugging, and deploying smart contracts on Ethereum networks

Independently observed

Hardhat

A development environment that enables engineers to write, test, deploy, and debug Ethereum smart contracts using Solidity and TypeScript, with support for fuzzing, code analysis, and multi-chain simulation.

Independently observed

Pricing

List pricing as published by each vendor, with the date we read it. Always verify at the source before you buy.

Foundry

Open sourceFree tier
as of verify ↗

Hardhat

Open sourceFree tier

Open source

as of verify ↗

Platform & deployment

Where each product runs and how it can be hosted. A dash means undocumented, not unsupported.

Platforms
Linux
Foundry✓
Hardhat✗
CLI
Foundry✓
Hardhat✓
Deployment
Self-hosted
Foundry✓
Hardhat✓

Integrations

What each product connects to. Counts come from the vendor's own integration directory where one exists.

Foundry

3 total
  • Slither
  • Aderyn
  • Solar
Independently observed

Hardhat

4 total
  • Optimism OP Stack
  • Base
  • Mocha
  • OP Stack
Independently observed
Still deciding?

Foundry or Hardhat: which one depends on you

A composite score cannot know your constraints. Describe them and both get re-weighted against what you actually need, with the evidence behind every position.

Free to run, no account needed to start. How the evaluation works

Comparison generated from independently-sourced facts. Every value links to its source and retrieval date. See the method.