Documentation

Use the registry UI and consume/publish Maven/npm artifacts.

Documentation

How to use this application: browse repositories in Explorer, manage repositories/tokens (if authorized), and configure Maven/npm clients. Replace main with your repository key from the UI.

Home

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

Use your registry domain and repository key shown in the application when configuring clients.

  • Maven repository URL pattern: https://repo-api.modlabs.cc/repo/maven/<repository-key>/
  • npm registry URL pattern: https://repo-api.modlabs.cc/repo/npm/<repository-key>/

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 (username = your ModLabs account email; password = registry access token or OIDC access token):

<server>
  <id>modlabs-main</id>
  <username>YOUR_MODLABS_EMAIL</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.