Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@consensys/create-web3-template
Advanced tools
This is a CLI tool that scaffolds Next.js and React projects with a focus on Web3 development.
This is a CLI tool that scaffolds Next.js and React projects with a focus on Web3 development.
To create a new project using the Web3 Template CLI, run one of the following commands:
Using pnpm:
pnpm create @consensys/create-web3-template [project-name]
Using npx:
npx @consensys/create-web3-template [project-name]
After running the command, the CLI will guide you through the setup process with the following prompts:
npx @consensys/create-web3-template my-web3-project
The generated project will have the following structure:
my-web3-project/
├── packages/
│ ├── blockchain/ # Smart contracts and blockchain tooling
│ └── site/ # Frontend application (Next.js or React)
├── pnpm-workspace.yaml (if using pnpm)
├── package.json
└── .gitignore
Navigate to your project directory and install the dependencies:
cd my-web3-project
# If you chose pnpm
pnpm install
# If you chose npm
npm install
# If you chose yarn
yarn install
Navigate to the blockchain
package to work on your smart contracts.
cd packages/blockchain
Navigate to the site
package to run your frontend application.
cd packages/site
# Start the development server
# Using pnpm
pnpm run dev
# Using npm
npm run dev
# Using yarn
yarn dev
The development server will start, and you can view your application in the browser.
The project includes a default Wagmi configuration for connecting to the Linea Testnet. You can find this configuration in the wagmi.config.ts
file in your frontend application:
import { http, createConfig } from "wagmi";
import { lineaTestnet } from "wagmi/chains";
import { metaMask } from "wagmi/connectors";
export const config = createConfig({
chains: [lineaTestnet],
connectors: [metaMask()],
transports: {
[lineaTestnet.id]: http(),
},
});
Feel free to modify this configuration to connect to different networks or use different connectors.
This project uses a monorepo structure to keep your frontend and backend code organized and in sync.
pnpm-workspace.yaml
file is included to manage the monorepo packages.blockchain
and site
) can have its own scripts. Navigate into each package directory to run and manage scripts specific to that package.After project creation, you can customize the setup according to your needs:
Contributions are welcome! If you have suggestions or find issues, please open an issue or submit a pull request.
This project is licensed under the MIT License.
FAQs
This is a CLI tool that scaffolds Next.js and React projects with a focus on Web3 development.
The npm package @consensys/create-web3-template receives a total of 3 weekly downloads. As such, @consensys/create-web3-template popularity was classified as not popular.
We found that @consensys/create-web3-template demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.