npmjs-server 0.0.0-stage → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Kouji Matsui (@kekyo@mi.kekyo.net)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,70 @@
1
- # Temporary Holding Version
1
+ # npmjs-server
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ A simple private NPM registry running on Node.js.
4
+
5
+ ![npmjs-server](./images/npmjs-server-120.png)
6
+
7
+ [![Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.](https://www.repostatus.org/badges/latest/wip.svg)](https://www.repostatus.org/#wip)
8
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
9
+ [![Docker Image Version](https://img.shields.io/docker/v/kekyo/npmjs-server.svg?label=docker)](https://hub.docker.com/r/kekyo/npmjs-server)
10
+
11
+ ---
12
+
13
+ ## What is this?
14
+
15
+ A server for storing and distributing NPM packages within an organization or for personal use. Standard npm clients can publish, search for, and install packages.
16
+
17
+ Packages and user information are stored in files, so no database is required. Both scoped and unscoped packages are supported.
18
+
19
+ A browser-based administration UI lets you browse packages and versions, read READMEs, download packages, upload multiple `.tgz` files, manage users, revoke npm tokens, and configure two-step authentication.
20
+
21
+ ![Package list and downloads by version, using demo data](./images/npmjs-server-ss-1.png)
22
+
23
+ ### Key Features
24
+
25
+ - npm client support, including `npm publish`, `npm install`, `npm search`, and `npm dist-tag`.
26
+ - File-based storage without a database.
27
+ - Three authentication modes: no authentication, authentication for publishing, or authentication for both reading and publishing.
28
+ - Optional two-step authentication per user, with QR registration, authenticator codes, and recovery codes.
29
+ - Read-only upstream npm registry proxying with package caching.
30
+ - Bulk imports from existing hosted registries, using the Nexus 3 enumeration API or a package name list.
31
+ - Reverse proxy support through a fixed public URL or forwarded headers.
32
+ - Run with Docker or Podman.
33
+
34
+ ## System Requirements
35
+
36
+ Node.js 20.19.0 or later is required. The administration UI is available in a browser.
37
+
38
+ ---
39
+
40
+ ## Installation
41
+
42
+ ```bash
43
+ npm install -g npmjs-server
44
+ ```
45
+
46
+ ## Usage
47
+
48
+ ```bash
49
+ # Start on the default port, 4873
50
+ npmjs-server
51
+
52
+ # Use a different port
53
+ npmjs-server --port 3000
54
+ ```
55
+
56
+ Open `http://localhost:4873/` in a browser to use the administration UI. Authentication is disabled by default, allowing anyone to read and publish packages. See the documentation to enable authentication.
57
+
58
+ ---
59
+
60
+ ## Documentation
61
+
62
+ See the [repository documentation](https://github.com/kekyo/npmjs-server#readme) for npm client setup, storage, configuration, authentication and TOTP recovery, upstream proxying, Docker, and CI usage.
63
+
64
+ ## Pull Requests
65
+
66
+ Pull requests are welcome. Please submit them against the `develop` branch.
67
+
68
+ ## License
69
+
70
+ Under MIT.