{"repo":"Cyfrin/web3-dev-containers","free":true,"listed":false,"github":"https://github.com/Cyfrin/web3-dev-containers","clone":"git clone https://github.com/Cyfrin/web3-dev-containers.git","description":"A repo to help users run code in isolated environments. Stay safe big dogs.","language":"Shell","stars":178,"topics":["ethereum","foundry","moccasin","solana","solidity","vyper"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"Important: This repo is a work in progress Web3 Dev Containers A repo to help you run code in a safer manner in the web3 ecosystem. You open up your code in an isolated docker environment so you have a smaller chance of getting hacked. Important: This isn't a fail-safe! There is no 100% secure way to run code you are unfamiliar with. But running code in an isolated environment is at least much better. You can read more about the importance of sandboxing, containers vs VMs, and more in the Red Guild Blog. Table of contents - Web3 Dev Containers - Table of contents - Why are dev containers important? - Examples of when you'd want to use a dev container - Getting Started - Requirements - Optional VSCode Requirements - Installation - Claude container and the lair CLI - Quickstart - VSCode and Foundry on a new project, unmounted - Usage - VSCode - Unmounted - Mounted - Using on an existing project - Raw Docker - Mounted - Using on an existing project - Acknowledgements - Security considerations Why are dev containers important? So you don't get rekt , big dog. Imagine you're auditing a suspicious smart contract and it has a package.json that includes a malicious preinstall script: If you run npm install on your host machine, you'll essentially be running a bash script from a random website on your machine! It could do things like: - The script could steal your private keys from /.ssh - Steal encrypted keys from /.foundry - Install malware somewhere in your files - Literally anythi","default_branch":null,"files":null,"tree":[],"storefront":"/r/Cyfrin","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Cyfrin/web3-dev-containers/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}