backend/- Source code for the backendbackend/main/- Package registry canisterbackend/storage/- Storage canisters
frontend/- Source code for the package registry frontend (mops.one)cli/- Source code for themopscommand line toolcli-builder/- Docker base image for reproducible Mops CLI buildscli-release/- Mops CLI builds and frontendcli-release/frontend/- Frontend for the Mops CLI (cli.mops.one)cli-release/versions/- Mops CLI versions
docs/- Mops documentation (docs.mops.one)blog/- Mops blog (blog.mops.one)ui-kit/- Mops UI Kit with shared UI componentsbench/- Dogfood formops benchcommandtest/- Dogfood formops testcommand
npm start - starts local replica and dev server
To be able to install/publish packages locally:
- Install
tsxorbunglobally
npm install -g tsx
- Add
mops-localalias to your shell (~/.zshrc,~/.bashrc)
alias mops-local="tsx /<path-to-local-mops>/cli/environments/nodejs/cli.ts"or
alias mops-local="bun /<path-to-local-mops>/cli/environments/nodejs/cli.ts"- Switch network to local
mops-local set-network local
Now you can install/publish packages locally like this mops-local add <pkg>
Also you can switch network to staging to work with staging registry like this mops-local set-network staging
You can also override the registry endpoint without switching networks using environment variables:
export MOPS_REGISTRY_HOST="http://127.0.0.1:4943"
export MOPS_REGISTRY_CANISTER_ID="your-local-canister-id"
mops-local add <pkg>See Environment Variables in the documentation for details.