Developer Platform

Build for the
Legion ecosystem

Publish Legion packages, manage API tokens, track downloads, and grow your reach in the legionhjyu community.

Publish in one command

Run legion pkg publish and your Legion package is live on the registry instantly.

API token management

Create multiple tokens with custom names and scopes. Revoke any token instantly from the dashboard.

Download analytics

See how many times your Legion packages have been installed and track growth over time.

REST API

Full JSON API at /api/v1/. Authenticated with Bearer tokens. CORS-enabled. Free forever.

Ownership protection

Legion packages are locked to your username. No one else can publish to your package name.

Package badges

Embed live version, download count, and quality score badges in your README instantly.

Publish your first Legion package in 4 steps

1

Create an account

Sign up at /dev/signup or via the API.

curl -X POST https://legion-registry.pages.dev/api/v1/auth/signup \
-H "Content-Type: application/json" \
-d '{"username":"you","email":"you@example.com","password":"…"}'
2

Login with Legion CLI

legion pkg login --token lgn_your_token_here

Or interactively: legion pkg login

3

Initialize your Legion package

mkdir my-legion-pkg && cd my-legion-pkg
legion pkg init
4

Publish to Legion Registry

legion pkg publish

Your package is live immediately at https://legion-registry.pages.dev/pkg/my-legion-pkg.