Developer Platform
Build for the
Legion ecosystem
Publish packages, manage API tokens, track downloads, and grow your reach in the legionhjyu community.
Publish in one command
Run legion pkg publish and your package is live on the registry instantly.
API token management
Create multiple tokens with custom names and scopes. Revoke any token instantly.
Download analytics
See how many times your packages have been installed and track growth over time.
REST API
Full JSON API at /api/v1/. Authenticated with Bearer tokens. CORS enabled.
Ownership protection
Packages are locked to your username. No one else can publish to your package name.
Semantic versioning
Full semver support. Publish multiple versions, tag releases, install specific versions.
Get started in 4 steps
1
Create an account
Sign up at /dev/signup or via the API.
curl -X POST https://legion-registry.hexabhhexabbh.workers.dev/api/v1/auth/signup \
-H "Content-Type: application/json" \
-d '{"username":"you","email":"you@example.com","password":"…"}'
2
Login in the CLI
legion pkg login --token lgn_your_token_hereOr interactively: legion pkg login
3
Initialize and write your package
mkdir my-pkg && cd my-pkg
legion pkg init4
Publish
legion pkg publishYour package is live immediately at /pkg/my-pkg.