
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
@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.
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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.