Nopkg is an npm registry built on Aiursoft Template, and the npm sibling of Nupkg. Browse cached packages, fetch upstream tarballs on demand, and optionally serve only versions admitted by S360.
- Standard npm metadata, scoped packages, exact versions and dist-tags under
/npm/. - On-demand caching of original tarballs, with integrity and package identity checks.
- Optional S360 admission for metadata and every download, including cached archives.
- Cache-only operation when the upstream is unavailable.
- Shared Aiursoft accounts, OIDC, roles, themes and localization.
Development preview: read-only registry access is available. Package publishing and npm audit are not implemented. There is no hosted Nopkg instance yet.
Point npm at your own deployment:
npm config set registry https://nopkg.example.com/npm/
npm install your-packageFor an existing lockfile, configure its resolved archive URLs for your deployment as well. Changing the registry setting alone does not rewrite existing lockfile URLs.
Requires .NET 10 SDK and Node.js.
cd src/Aiursoft.Nopkg/wwwroot
npm ci
npm run build
cd ..
dotnet runOpen http://localhost:5000. The default local administrator is admin@default.com with password Admin@123456!. Configure authentication before exposing a deployment.
Open Aiursoft.Nopkg.sln and press F5.
The shared CI builds Linux amd64 and arm64 images. Successful master pipelines publish aiursoft/nopkg:latest and hub.aiursoft.com/aiursoft/nopkg:latest.
After the first master release:
docker run -d --name nopkg -p 8080:5000 -v nopkg-data:/data aiursoft/nopkg:latestPersist /data for the default SQLite database, package cache and application files. The registry is /npm/; health checks use /health. The repository's install.sh provides the standard port-selecting installer.
Set Registry:Upstream and Registry:StoragePath for the source and persistent cache. Set Registry:CacheOnly=true to prevent upstream requests. Use one application instance per cache directory.
S360 admission is disabled in the development default. To enable it, configure Registry:S360:Enabled, Registry:S360:Server and a dedicated Registry__S360__CheckKey environment secret. See registry configuration for admission, offline use and protocol limits. Shared account, database and theme settings follow Aiursoft Template.
Use the existing build, tests and lint.sh. NugetNinja maintains the shared Template files and dependency conventions through ninja.yaml. Normal nuget.config uses public NuGet for external contributors; company CI uses the separate internal build configuration.
Built on Aiursoft Template. Licensed under the MIT License.
