Skip to content
AiursoftWebPublic

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Nopkg

MIT licensed Pipeline stat Test Coverage S360 compliance Docker

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.

screenshot

What is Nopkg?

  • 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.

Use the registry

Point npm at your own deployment:

npm config set registry https://nopkg.example.com/npm/
npm install your-package

For an existing lockfile, configure its resolved archive URLs for your deployment as well. Changing the registry setting alone does not rewrite existing lockfile URLs.

Run manually

Requires .NET 10 SDK and Node.js.

cd src/Aiursoft.Nopkg/wwwroot
npm ci
npm run build
cd ..
dotnet run

Open http://localhost:5000. The default local administrator is admin@default.com with password Admin@123456!. Configure authentication before exposing a deployment.

Run in Microsoft Visual Studio

Open Aiursoft.Nopkg.sln and press F5.

Run in Docker

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:latest

Persist /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.

Configuration

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.

Contributing

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.

Credits

Built on Aiursoft Template. Licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages