whatisgithub

What is foundry-hardhat?

libaice/foundry-hardhat — explained in plain English

Analysis updated 2026-07-18 · repo last pushed 2023-10-29

TypeScriptAudience · developerComplexity · 3/5DormantSetup · moderate

In one sentence

A starter template that lets you use Foundry and Hardhat together in one smart contract project, sharing dependencies between both tools.

Mindmap

mindmap
  root((repo))
    What it does
      Bridges Foundry Hardhat
      Shares dependencies
      Unified testing
    Tech stack
      TypeScript
      Foundry
      Hardhat
      Solidity
    Use cases
      Smart contract dev
      Tool migration
      Team flexibility
    Audience
      Smart contract devs
      Blockchain teams

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Write and test smart contracts using either Foundry or Hardhat depending on the task at hand.

USE CASE 2

Install dependencies once with Foundry and have Hardhat automatically find them via remappings.

USE CASE 3

Gradually migrate a project from one tool to the other without rewriting the whole setup.

USE CASE 4

Let team members with different tool preferences work in the same shared codebase.

What is it built with?

TypeScriptFoundryHardhatSolidity

How does it compare?

libaice/foundry-hardhat0xradioac7iv/tempfs7vignesh/pgpulse
Stars00
LanguageTypeScriptTypeScriptTypeScript
Last pushed2023-10-29
MaintenanceDormant
Setup difficultymoderatemoderatemoderate
Complexity3/53/54/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires manually updating the remappings file whenever a new Foundry dependency is added.

Copy-paste prompts

Prompt 1
Show me how to set up this Foundry-Hardhat starter template for a new smart contract project.
Prompt 2
Explain how remappings.txt lets Hardhat find libraries installed by Foundry.
Prompt 3
Help me run the same test suite using both forge test and npx hardhat test.
Prompt 4
Walk me through adding a new Foundry dependency and updating the remappings file correctly.

Frequently asked questions

What is foundry-hardhat?

A starter template that lets you use Foundry and Hardhat together in one smart contract project, sharing dependencies between both tools.

What language is foundry-hardhat written in?

Mainly TypeScript. The stack also includes TypeScript, Foundry, Hardhat.

Is foundry-hardhat actively maintained?

Dormant — no commits in 2+ years (last push 2023-10-29).

How hard is foundry-hardhat to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is foundry-hardhat for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.