sandymount 0.0.15 → 0.0.16
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/README.md +23 -0
- package/bin/sandymount.js +9 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -87,6 +87,14 @@ pm2 save
|
|
|
87
87
|
sandymount start --port 3000 --nostr --git
|
|
88
88
|
```
|
|
89
89
|
|
|
90
|
+
### Modern UI (SolidOS UI)
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
sandymount start --solidos-ui
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
Uses a modern Nextcloud-style interface instead of the classic mashlib databrowser. Requires local mashlib and solidos-ui files. See [solidos-ui](https://github.com/solidos/solidos/tree/main/workspaces/solidos-ui) for setup.
|
|
97
|
+
|
|
90
98
|
---
|
|
91
99
|
|
|
92
100
|
## Endpoints
|
|
@@ -185,12 +193,27 @@ One port · One process · One identity
|
|
|
185
193
|
# CLI
|
|
186
194
|
sandymount start --port 3000 --nostr --git
|
|
187
195
|
|
|
196
|
+
# Modern UI
|
|
197
|
+
sandymount start --solidos-ui
|
|
198
|
+
|
|
188
199
|
# Environment
|
|
189
200
|
export SAND_PORT=3000
|
|
190
201
|
export SAND_NOSTR=true
|
|
191
202
|
export SAND_GIT=true
|
|
192
203
|
```
|
|
193
204
|
|
|
205
|
+
| Option | Description | Default |
|
|
206
|
+
|--------|-------------|---------|
|
|
207
|
+
| `--port <n>` | Port to listen on | 5420 |
|
|
208
|
+
| `--root <path>` | Data directory | ./data |
|
|
209
|
+
| `--solidos-ui` | Modern Nextcloud-style UI | false |
|
|
210
|
+
| `--no-nostr` | Disable Nostr relay | - |
|
|
211
|
+
| `--no-git` | Disable Git backend | - |
|
|
212
|
+
| `--no-idp` | Disable identity provider | - |
|
|
213
|
+
| `--no-mashlib` | Disable UI entirely | - |
|
|
214
|
+
| `--activitypub` | Enable ActivityPub | false |
|
|
215
|
+
| `--quiet` | Suppress logs | false |
|
|
216
|
+
|
|
194
217
|
---
|
|
195
218
|
|
|
196
219
|
## Resources
|
package/bin/sandymount.js
CHANGED
|
@@ -21,7 +21,7 @@ const __dirname = dirname(__filename);
|
|
|
21
21
|
const args = process.argv.slice(2);
|
|
22
22
|
const command = args[0];
|
|
23
23
|
|
|
24
|
-
const VERSION = '0.0.
|
|
24
|
+
const VERSION = '0.0.16';
|
|
25
25
|
const DEFAULT_PORT = 5420;
|
|
26
26
|
|
|
27
27
|
function showBanner() {
|
|
@@ -54,6 +54,7 @@ Options:
|
|
|
54
54
|
--no-git Disable Git HTTP backend
|
|
55
55
|
--no-idp Disable identity provider
|
|
56
56
|
--no-mashlib Disable SolidOS data browser UI
|
|
57
|
+
--solidos-ui Use modern Nextcloud-style UI (requires local mashlib)
|
|
57
58
|
--activitypub Enable ActivityPub federation
|
|
58
59
|
--quiet Suppress logs
|
|
59
60
|
|
|
@@ -107,7 +108,10 @@ function startServer(startArgs) {
|
|
|
107
108
|
if (!startArgs.includes('--idp') && !startArgs.includes('--no-idp')) {
|
|
108
109
|
jssArgs.push('--idp');
|
|
109
110
|
}
|
|
110
|
-
|
|
111
|
+
// UI: --solidos-ui uses modern UI with local mashlib, otherwise use CDN mashlib
|
|
112
|
+
if (startArgs.includes('--solidos-ui')) {
|
|
113
|
+
jssArgs.push('--mashlib', '--solidos-ui');
|
|
114
|
+
} else if (!startArgs.includes('--mashlib-cdn') && !startArgs.includes('--no-mashlib')) {
|
|
111
115
|
jssArgs.push('--mashlib-cdn');
|
|
112
116
|
}
|
|
113
117
|
|
|
@@ -124,6 +128,7 @@ function startServer(startArgs) {
|
|
|
124
128
|
const apEnabled = startArgs.includes('--activitypub');
|
|
125
129
|
const idpEnabled = !startArgs.includes('--no-idp');
|
|
126
130
|
const mashlibEnabled = !startArgs.includes('--no-mashlib');
|
|
131
|
+
const solidosUiEnabled = startArgs.includes('--solidos-ui');
|
|
127
132
|
|
|
128
133
|
// Show SAND stack status
|
|
129
134
|
console.log(' ┌─────────────────────────────────────┐');
|
|
@@ -133,7 +138,8 @@ function startServer(startArgs) {
|
|
|
133
138
|
console.log(` │ D DID ${idpEnabled ? '✓ enabled (IdP) │' : '○ --no-idp │'}`);
|
|
134
139
|
console.log(' └─────────────────────────────────────┘');
|
|
135
140
|
console.log('');
|
|
136
|
-
|
|
141
|
+
const uiLabel = solidosUiEnabled ? 'modern' : (mashlibEnabled ? 'classic' : '○');
|
|
142
|
+
console.log(` Port: ${port} Data: ${dataDir} Git: ${gitEnabled ? '✓' : '○'} UI: ${uiLabel}`);
|
|
137
143
|
console.log('');
|
|
138
144
|
|
|
139
145
|
// Find jss binary
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sandymount",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.16",
|
|
4
4
|
"description": "SAND Stack: Solid + ActivityPub + Nostr + DID — Personal sovereignty in one command",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -33,6 +33,6 @@
|
|
|
33
33
|
},
|
|
34
34
|
"homepage": "https://sandy-mount.com",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"javascript-solid-server": "^0.0.
|
|
36
|
+
"javascript-solid-server": "^0.0.76"
|
|
37
37
|
}
|
|
38
38
|
}
|