kkRepo
kkRepo is a community-driven, open-source, self-hosted artifact repository. We built it to address the limitations and operational challenges of Sonatype Nexus Community Edition and give the community an open, reliable artifact manager it can maintain and improve over time.
Use it to publish private packages, cache upstream dependencies, or migrate existing Sonatype Nexus Repository installations. It supports 24 formats, including Maven, npm, and Docker/OCI.
Why kkRepo? · Quick start · Supported repositories · Core features · Migrate from Nexus · Production deployment

Quick Start
With Docker, Docker Compose, and curl installed, run this command in an empty directory to start kkRepo on the JVM with MySQL:
curl -fsSL https://raw.githubusercontent.com/klboke/kkrepo/main/scripts/quickstart.sh | bash
Upload your first artifact
- Open the admin console and set a password for the initial local administrator,
admin. - Under Blob Stores, create a File blob store named
defaultfor this local trial. - Under Repositories, choose
raw-hosted, name the repositoryraw-demo, select the blob store you just created, and save.
Upload a line of text, then read it back from the same URL. Enter the admin password when curl prompts you.
url=http://127.0.0.1:19090/repository/raw-demo/hello.txt
printf 'Hello, kkRepo!\n' > hello.txt
curl --fail --user admin --upload-file hello.txt "$url"
curl --fail --user admin "$url"
When the download prints Hello, kkRepo!, you have published and retrieved your first artifact. Open raw-demo in the repository browser to see the file size, checksums, and download URL for hello.txt.
PostgreSQL, Native images, and health checks
The default runtime and database are JVM and MySQL. For PostgreSQL, replace | bash in the startup command with | KKREPO_DATABASE_TYPE=postgresql bash. For the Native image, use | KKREPO_RUNTIME=native bash. You can set both variables together.
Local health check · Inspect the startup script · Build and deployment guide
Supported Repositories
| Format | Hosted | Proxy | Group | Nexus migration |
|---|---|---|---|---|
| Maven | ✓ | ✓ | ✓ | ✓ |
| npm | ✓ | ✓ | ✓ | ✓ |
| OHPM / HarmonyOS | ✓ | ✓ | ✓ | ✗ |
| PyPI | ✓ | ✓ | ✓ | ✓ |
| Go | ✓ | ✓ | ✓ | ✓ |
| Helm | ✓ | ✓ | ✓ | ✓ |
| Cargo / Rust | ✓ | ✓ | ✓ | ✓ |
| Dart / Pub | ✓ | ✓ | ✓ | ✓ |
| Composer / PHP | ✓ | ✓ | ✓ | ✓ |
| Terraform Provider / Module Registry | ✓ | ✓ | ✓ | ✓ |
| Swift Package Registry | ✓ | ✓ | ✓ | ✓ |
| Ansible Galaxy | ✓ | ✓ | ✓ | ✓ |
| Conda | ✓ | ✓ | ✓ | ✓ |
| APT / Debian | ✓ | ✓ | ✗ | ✓ |
| Conan 2 | ✓ | ✓ | ✓ | ✓ |
| Alpine / APK | ✓ | ✓ | ✓ | ✓ |
| R / CRAN | ✓ | ✓ | ✓ | ✓ |
| Hugging Face Models | ✗ | ✓ | ✗ | ✓ |
| Docker / OCI | ✓ | ✓ | ✓ | ✓ |
| NuGet | ✓ | ✓ | ✓ | ✓ |
| RubyGems | ✓ | ✓ | ✓ | ✓ |
| Yum | ✓ | ✓ | ✓ | ✓ |
| Git LFS | ✓ | ✗ | ✗ | ✓ |
| Raw | ✓ | ✓ | ✓ | ✓ |
A ✓ under Nexus migration means the format has a supported migration path. The migration guide lists the repository types, data, and Nexus versions covered.
Core Features
- Artifact distribution. Hosted repositories store your team's releases, proxies cache upstream packages on demand, and groups give clients one URL to read from multiple repositories. See the matrix above for each format's supported types.
- Streaming proxy downloads. Enable streaming per proxy repository so clients can start downloading an uncached Docker layer, Maven artifact, or PyPI package while kkRepo reads it from upstream. Only complete, validated artifacts are added to the cache. Supported artifacts and streaming conditions
- Download offload. For artifacts in a File blob store, kkRepo can check access and scanning policies, then hand a full-file download to a trusted reverse proxy such as Nginx. The proxy serves the bytes directly, reducing traffic through the application replicas. Configure Nginx download offload
- Identity and access. Sign in with local accounts, LDAP, or OIDC. Assign repository permissions through roles, issue tokens for CI, and configure anonymous reads. Security model
- Scanning and cleanup. Enable SBOM generation and vulnerability scanning for selected repositories, enforce download policies with waivers, and preview which artifacts a cleanup policy would delete. Artifact scanning · Cleanup policies
- Multiple replicas. Replicas share metadata, sessions, and task state through MySQL or PostgreSQL. Store production artifacts in S3, Alibaba Cloud OSS, or Azure Blob Storage. Deployment architecture · Azure storage
The default distribution runs on the JVM. An optional Native image reached readiness in a median of 1.04 seconds from container creation and used a median of 170.4 MiB of container memory at idle in a local benchmark limited to two CPUs and 1 GiB. See the Native and JVM comparison for the test setup and warmed throughput.
Migrating From Sonatype Nexus Repository
When the kkRepo team migrated its own repositories, it kept the original domain. CI continued to use the same Maven settings, npm registry, and PyPI index URL after cutover. Read the team's migration account for the deployment history and outcome.
- Check the scope and run preflight. Check the source Nexus version, repository formats, and data you need. Run preflight on the Nexus Metadata page in the admin console and resolve any blockers it reports.
- Migrate configuration and artifacts. Migrate users, permissions, and repository definitions first. Then use Nexus Repository Data to sync metadata and packages. Start with a full sync. Later runs can be incremental, and interrupted transfers can resume.
- Verify and cut over. Test permissions and downloads with your existing clients before pointing the original domain at kkRepo. Most clients keep their
/repository/<repo>/...URLs. For Docker/OCI, preserve the/v2/entry point, repository names, and registry routing.

Migration scope and prerequisites by format · Migration playbook
More screenshots from Browse and Admin







Documentation
| Topic | Suggested reading |
|---|---|
| Origins and adoption | Why we built kkRepo · How a solar manufacturer migrated from Nexus (in Chinese) |
| Architecture and design choices | Architecture · Database backends · Database schema · MySQL entity relationships |
| Compatibility and verification | Format compatibility matrix · How kkRepo tests against Nexus · Nexus REST API alignment |
| Performance benchmarks | Native vs. JVM · Streaming proxy downloads · APT against Nexus |
| Repositories and clients | Format guides · Client examples · Set up a private Maven repository |
| Migrating from Nexus | Scope and prerequisites · Migration playbook |
| Deployment and operations | Build and deployment · Production hardening · Nginx reverse proxy · Monitoring · Backup and restore |
| Access and artifact management | Security model · Content selectors · Artifact scanning · Cleanup policies · Storage usage |
| Troubleshooting and development | FAQ · Troubleshooting · Development guide |
Roadmap
Planned
- Eclipse p2 — Proxy Eclipse and Equinox update sites.
- CocoaPods — Fetch dependencies through a Nexus-compatible proxy repository.
Delivered
| Platform capability | Delivered capability | Documentation |
|---|---|---|
| PostgreSQL backend | MySQL and PostgreSQL backends with migration and multi-replica tests. | database backend guide · Chinese design plan |
| Artifact scanning | Per-repository asynchronous SBOM and vulnerability analysis with optional download enforcement. | usage guide · Chinese design notes |
Repository format milestones (17)
| Format | Delivered capability | Documentation |
|---|---|---|
| Docker / OCI | Image push, pull, and upstream caching. | implementation notes |
| Cargo / Rust | Crate publishing, search, and Nexus repository migration. | design notes |
| Dart / Pub | Package publishing, search, and Nexus migration verified with real clients. | Chinese design notes |
| Composer / PHP | Composer 2 installs and migration of explicitly selected Nexus proxy caches. | Chinese design notes |
| Terraform | Module and provider registries with GPG signing for providers. | Chinese design notes |
| Swift Package Registry | Signed, immutable releases verified with SwiftPM and Xcode. | Chinese design notes |
| Ansible Galaxy | Galaxy v3 collection publishing, dependency resolution, and multi-replica imports. | usage guide · Chinese design notes |
| Conda | Both Conda package formats with JSON, BZ2, and ZSTD repodata. | Chinese design notes |
| APT / Debian | Signed repository metadata verified with APT clients and a Nexus reference instance. | usage guide · Chinese design notes · performance baseline |
| Conan 2 | Revision publishing, cleanup, and composite package scanning. | usage guide · Chinese design notes · performance baseline |
| Alpine / APK | APK v2 validation, signed indexes, and proxy re-signing. | usage guide · Chinese design notes · performance baseline |
| Hugging Face Models | Model downloads pinned to a commit, with LFS and Xet support. | usage guide · Chinese design notes · performance baseline |
| R / CRAN | Per-directory PACKAGES.gz indexes for installation with R clients. | usage guide · Chinese design notes · performance baseline |
| Go | Validated module ZIP publication verified with the Go client. | usage guide · performance baseline |
| OHPM / HarmonyOS | Streaming HAR/HSP publishing, resumable imports, and optional signed login. | usage guide · signed login · test coverage and limits |
| Helm groups | Chart indexes aggregated across nested groups in configured member order. | usage guide |
| Git LFS | Batch operations, streaming uploads, and object verification with repository permissions. | usage guide · implementation design |
Who Is Using kkRepo?
If your team uses kkRepo, share your organization's name and a little about how you use it in the user registration issue. For example, did you migrate from Nexus or set up your first private artifact repository? Your story helps teams evaluating kkRepo find a use case like their own and gives maintainers a clearer picture of who relies on the project and what they need.
The registration issue is for adoption stories. For bugs and feature requests, please use the issue templates.
Contributing
Issues and pull requests are welcome. See CONTRIBUTING.md for the contributor workflow, PR expectations, compatibility testing expectations, and multi-replica design constraints. Community behavior expectations are documented in CODE_OF_CONDUCT.md.
Local development and testing are documented in the Development Guide. Build and deployment are documented in the Build And Deployment Guide. AI agent and contributor constraints are in AGENTS.md.
Support
Join the kkRepo Telegram group for community support and usage discussion. See SUPPORT.md for issue routing, support scope, and security-reporting boundaries.
Sponsors
Thank you to everyone supporting the ongoing development and maintenance of kkRepo. You can support the project through GitHub Sponsors.
You can also sponsor kkRepo through Alipay or WeChat Pay.
Organization Sponsors
Active organization sponsors will be featured here with their logo and link.
Project Backers
Active project backers will be recognized here with their name or logo and optional link.
Security
If you find a security issue, follow SECURITY.md and report it through GitHub Security Advisory first. Avoid disclosing exploitable details in public issues. Regular bugs, compatibility issues, and feature requests can be submitted as public issues.
License
kkRepo is open sourced under the Apache License 2.0.
Trademark Notice
Sonatype, Nexus, and Nexus Repository are trademarks of Sonatype, Inc. kkRepo is an independent open source project and is not affiliated with, endorsed by, sponsored by, or connected to Sonatype, Inc. References to Sonatype Nexus Repository are used only to describe compatibility, migration, or interoperability.
