create-petpack
v0.1.0
Published
Install Codex digital pets from a GitHub-backed registry.
Downloads
130
Maintainers
Readme
Petpack
Petpack is an npm CLI for installing Codex digital pets from a GitHub-backed registry.
npx create-petpack
npx create-petpack install abu
npx create-petpack preview abu
npx create-petpack doctorHow It Works
Petpack fetches pet metadata from registry/index.json, downloads the selected pet package, validates it, and installs it into Codex:
~/.codex/pets/<pet-slug>/
pet.json
spritesheet.webpIf CODEX_HOME is set, Petpack installs into:
$CODEX_HOME/pets/<pet-slug>/Commands
create-petpack
create-petpack list
create-petpack ls
create-petpack install <pet> [--force]
create-petpack add <pet> [--force]
create-petpack preview <pet>
create-petpack doctorRegistry
The default registry URL is:
https://raw.githubusercontent.com/sunithvs/petpack/main/registry/index.jsonOverride it during development:
PETPACK_REGISTRY_URL=http://localhost:8000/registry/index.json petpack listEnable An Installed Pet
After installation:
- Open Codex Settings.
- Go to Appearance / Pets.
- Select the new pet.
- Use
/petto wake it.
Development
npm test
node ./bin/petpack.js doctor