Documentation

How to run this registry in production, publish packages, and point Maven or npm at your repositories. Replace main with your repository key from the admin UI.

Home Sign in

Registry API base URL

Maven and npm clients talk to the registry API directly (not the admin UI proxy). This page uses:

https://repo-api.modlabs.cc

Set NEXT_PUBLIC_REGISTRY_API_ORIGIN or NEXT_PUBLIC_API_URL in the UI build, or API_UPSTREAM on the server, so examples match your environment.

Artifacts: download & publish

Maven

Private repositories require Authorization: Bearer (registry access token from Tokens after sign-in, or a valid OIDC access token). Public repos allow anonymous reads.

Example repository URL (hosted repo key main):

https://repo-api.modlabs.cc/repo/maven/main/

Add a server in ~/.m2/settings.xml (password is your token; username is ignored):

<server>
  <id>modlabs-main</id>
  <username>token</username>
  <password>YOUR_REGISTRY_OR_OIDC_ACCESS_TOKEN</password>
</server>

Point <repositories> / <distributionManagement> at the same URL, with <id> matching the server id. Deploy with the Maven Deploy plugin (mvn deploy) once pom.xml uses that repository id.

npm

Use a project or user .npmrc. npmrc reference. npm adduser is not implemented; set _authToken manually.

registry=https://repo-api.modlabs.cc/repo/npm/main/
//repo-api.modlabs.cc/repo/npm/main/:_authToken=YOUR_REGISTRY_OR_OIDC_ACCESS_TOKEN
always-auth=true

Install: npm install. Publish: npm publish.

Deploy this registry (operators)

Typical layout: API and Postgres on a VPS or PaaS; admin UI on Cloudflare Workers (OpenNext).

Ensure CORS_ORIGINS on the API lists your UI origin exactly, and OIDC_REDIRECT_URI matches https://<ui-host>/auth/callback.