To get started with the Hey monorepo, ensure the following dependencies are installed on your system:
- Node.js (v18 or higher) - The backbone of our project.
- pnpm - Our trusty package manager.
- Postgres App - Our database of choice.
This repository uses pnpm workspaces to manage multiple packages within a monorepo structure.
git clone [email protected]:heyverse/hey.gitIf you're on macOS, both can be installed via Homebrew:
brew install nvm pnpmUse nvm to install the correct Node.js version:
nvm installNavigate to the root of the repository and install all dependencies using pnpm:
pnpm installCopy the .env.example file to create a new .env file for each package or app that requires environment configuration:
cp .env.example .envRepeat this process for all relevant packages and applications in the monorepo.
Below is a brief description of the variables defined in the example environment files.
NEXT_PUBLIC_LENS_NETWORKโ Lens network to use (mainnet,testnet, orstaging).DATABASE_URLโ Connection string for the main Postgres database.LENS_DATABASE_URLโ Read-only Postgres connection for Lens data.REDIS_URLโ Redis connection string for caching.PRIVATE_KEYโ Private key used to sign Lens requests.EVER_ACCESS_KEYโ Access key for 4EVERLAND storage.EVER_ACCESS_SECRETโ Secret key for 4EVERLAND storage.SHARED_SECRETโ Token for internal API authorization.OPENROUTER_API_KEYโ API key for OpenRouter AI services.
VITE_IS_PRODUCTIONโ Boolean flag indicating production mode for Vite.NEXT_PUBLIC_LENS_NETWORKโ Lens network used by the web app.
To run the application in development mode:
pnpm devTo compile the application:
pnpm buildRun the TypeScript type checker to validate the codebase:
pnpm typecheckCheck code quality and formatting:
pnpm biome:checkFix linting and formatting issues automatically:
pnpm biome:fixThis project is licensed under the AGPL-3.0 license. Please refer to the LICENSE file for full terms and conditions.
๐ธ