npmjs-server 0.0.0-stage → 0.2.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 +21 -0
- package/README.md +68 -2
- package/dist/cli.mjs +7574 -0
- package/dist/cli.mjs.map +1 -0
- package/dist/ui/assets/LoginDialog-4MhpPZy9.js +171 -0
- package/dist/ui/assets/index-MciKHD-E.js +98 -0
- package/dist/ui/assets/login-D1aPTHzD.js +1 -0
- package/dist/ui/favicon.ico +0 -0
- package/dist/ui/icon.png +0 -0
- package/dist/ui/index.html +20 -0
- package/dist/ui/locale/en.json +240 -0
- package/dist/ui/locale/fallback.json +213 -0
- package/dist/ui/locale/ja.json +240 -0
- package/dist/ui/login.html +19 -0
- package/images/npmjs-server-120.png +0 -0
- package/images/npmjs-server-ss-1.png +0 -0
- package/package.json +105 -3
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,69 @@
|
|
|
1
|
-
#
|
|
1
|
+
# npmjs-server
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A simple private NPM registry running on Node.js.
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
[](https://www.repostatus.org/#wip)
|
|
8
|
+
[](https://opensource.org/licenses/MIT)
|
|
9
|
+
[](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
|
+

|
|
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
|
+
- Reverse proxy support through a fixed public URL or forwarded headers.
|
|
31
|
+
- Run with Docker or Podman.
|
|
32
|
+
|
|
33
|
+
## System Requirements
|
|
34
|
+
|
|
35
|
+
Node.js 20.19.0 or later is required. The administration UI is available in a browser.
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## Installation
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
npm install -g npmjs-server
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Usage
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
# Start on the default port, 4873
|
|
49
|
+
npmjs-server
|
|
50
|
+
|
|
51
|
+
# Use a different port
|
|
52
|
+
npmjs-server --port 3000
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
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.
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## Documentation
|
|
60
|
+
|
|
61
|
+
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.
|
|
62
|
+
|
|
63
|
+
## Pull Requests
|
|
64
|
+
|
|
65
|
+
Pull requests are welcome. Please submit them against the `develop` branch.
|
|
66
|
+
|
|
67
|
+
## License
|
|
68
|
+
|
|
69
|
+
Under MIT.
|