ncc-client-poc 0.1.0 → 0.1.2

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.
Files changed (2) hide show
  1. package/README.md +12 -2
  2. package/package.json +7 -5
package/README.md CHANGED
@@ -50,12 +50,22 @@ Building on the framework defined in NCC-00, this project implements a "No-DNS"
50
50
  - **Tor (Optional)**: Required for `.onion` support. A local Tor daemon must be running (default port `9050`).
51
51
  - **Nostr Extension**: Alby or nos2x (recommended for secure signing).
52
52
 
53
- ### 2. Installation & Development
53
+ ### 2. Installation & Usage
54
+
55
+ **Development Mode** (with Hot Refresh):
54
56
  ```bash
55
57
  npm install
56
58
  npm run dev
57
59
  ```
58
- The app will be available at `http://localhost:5173`. The Tor bridge will start automatically on port 3001.
60
+ The app will be available at `http://localhost:5173`.
61
+
62
+ **Production Mode** (Optimized & Stable):
63
+ ```bash
64
+ npm install
65
+ npm run build
66
+ npm start
67
+ ```
68
+ The production server will be available at `http://localhost:5173`. In both modes, the Tor bridge will start automatically on port 3001.
59
69
 
60
70
  ---
61
71
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ncc-client-poc",
3
3
  "description": "Proof of Concept client for Nostr Community Conventions (NCC). Implements decentralized infrastructure management and discovery without DNS.",
4
- "version": "0.1.0",
4
+ "version": "0.1.2",
5
5
  "type": "module",
6
6
  "main": "./dist/index.html",
7
7
  "files": [
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "repository": {
16
16
  "type": "git",
17
- "url": "git+https://github.com/mattthomson/ncc-client.git"
17
+ "url": "git+https://github.com/imattau/ncc-client.git"
18
18
  },
19
19
  "keywords": [
20
20
  "nostr",
@@ -30,6 +30,7 @@
30
30
  "scripts": {
31
31
  "dev": "concurrently \"vite --host\" \"node scripts/tor-bridge.js\"",
32
32
  "build": "tsc && vite build",
33
+ "start": "concurrently \"serve -s dist -l 5173\" \"node scripts/tor-bridge.js\"",
33
34
  "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
34
35
  "preview": "vite preview",
35
36
  "test": "vitest",
@@ -41,8 +42,8 @@
41
42
  "buffer": "^6.0.3",
42
43
  "clsx": "^2.1.0",
43
44
  "lucide-react": "^0.344.0",
44
- "ncc-02-js": "file:../ncc-02/ncc-02-js",
45
- "ncc-05-js": "file:../ncc-05/ncc-05-js",
45
+ "ncc-02-js": "^0.3.1",
46
+ "ncc-05-js": "^1.1.14",
46
47
  "nostr-tools": "^2.1.5",
47
48
  "qrcode.react": "^4.2.0",
48
49
  "react": "^18.2.0",
@@ -70,9 +71,10 @@
70
71
  "eslint-plugin-react-refresh": "^0.4.5",
71
72
  "jsdom": "^27.4.0",
72
73
  "postcss": "^8.4.35",
74
+ "serve": "^14.2.5",
73
75
  "tailwindcss": "^3.4.1",
74
76
  "typescript": "^5.2.2",
75
77
  "vite": "^5.1.4",
76
78
  "vitest": "^4.0.16"
77
79
  }
78
- }
80
+ }