Installation
Install Frog via your package manager or build from source.
Package Manager
Install the required packages.
pnpm
pnpm add frog hono
- Hono is a small, simple, and ultrafast web framework for the Edges.
- TypeScript is optional, but highly recommended.
Using Unreleased Commits
If you can't wait for a new release to test the latest features, you can either install from the canary
tag (tracks the main
branch).
pnpm
pnpm add frog@canary
Or clone the Frog repo to your local machine, build, and link it yourself.
gh repo clone wevm/frog
cd frog
pnpm install
pnpm build
cd src
pnpm link --global
Then go to the project where you are using Frog and run pnpm link --global frog
(or the package manager that you used to link Frog globally). Make sure you installed the required peer dependencies and their versions are correct.
Security
Ethereum-related projects are often targeted in attacks to steal users' assets. Make sure you follow security best-practices for your project. Some quick things to get started.
- Pin package versions, upgrade mindfully, and inspect lockfile changes to minimize the risk of supply-chain attacks.
- Install the Socket Security GitHub App to help detect and block supply-chain attacks.
- Add a Content Security Policy to defend against external scripts running in your app.