License Key
After purchasing IndiePub, you’ll receive a license key via email. This key authenticates you with the private npm registry at registry.indiepub.dev, which hosts all @indiepub/* packages.
Set up your .npmrc
Create or update .npmrc at your project root (or ~/.npmrc for global access):
//registry.indiepub.dev/:_authToken=indiepub_your_token_here@indiepub:registry=https://registry.indiepub.dev/Replace indiepub_your_token_here with the token from your welcome email.
Verify your token
Check that your token is working:
curl -s https://registry.indiepub.dev/api/tokens/me \ -H "Authorization: Bearer indiepub_your_token_here"You should see your email, tier, and status:
{ "email": "you@example.com", "tier": "personal", "status": "active", "createdAt": 1709654400000}Rotate your token
If your token is compromised or you want to generate a new one, rotate it:
curl -s -X POST https://registry.indiepub.dev/api/tokens/rotate \ -H "Authorization: Bearer indiepub_your_current_token"This returns a new token and immediately revokes the old one:
{ "token": "indiepub_new_token_here", "email": "you@example.com", "tier": "personal"}Update your .npmrc and CI environment with the new token.
License tiers
| Tier | Price | Use case |
|---|---|---|
| Personal | $99 | One site, personal use |
| Commercial | $299 | One site, commercial use |
Both tiers grant access to all @indiepub/* packages and themes. Keys do not expire.
Troubleshooting
401 Unauthorized when running npm install
- Verify your
.npmrchas the correct registry URL and token - Check that the token is active with the
/api/tokens/meendpoint - Make sure
@indiepub:registrypoints tohttps://registry.indiepub.dev/(trailing slash)
Lost your token
Your license key was sent to the email used at checkout. Search for “Your IndiePub license key” in your inbox. If you can’t find it, contact support.