You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mashlibVersion:'2.0.0', // Mashlib version for CDN mode
412
416
});
413
417
```
414
418
415
419
### Mashlib Data Browser
416
420
417
-
Enable the [SolidOS Mashlib](https://github.com/SolidOS/mashlib) data browser for RDF resources:
421
+
Enable the [SolidOS Mashlib](https://github.com/SolidOS/mashlib) data browser for RDF resources. Two modes are available:
418
422
423
+
**CDN Mode** (recommended for getting started):
419
424
```bash
420
-
jss start --mashlib --conneg
425
+
jss start --mashlib-cdn --conneg
421
426
```
427
+
Loads mashlib from unpkg.com CDN. Zero footprint - no local files needed.
422
428
423
-
When enabled, requesting an RDF resource with `Accept: text/html` returns an interactive data browser UI instead of raw data. Mashlib is loaded from the unpkg CDN.
429
+
**Local Mode** (for production/offline):
430
+
```bash
431
+
jss start --mashlib --conneg
432
+
```
433
+
Serves mashlib from `src/mashlib-local/dist/`. Requires building mashlib locally:
434
+
```bash
435
+
cd src/mashlib-local
436
+
npm install && npm run build
437
+
```
424
438
425
439
**How it works:**
426
440
1. Browser requests `/alice/public/data.ttl` with `Accept: text/html`
427
-
2. Server returns Mashlib HTML wrapper (loads JS/CSS from CDN)
441
+
2. Server returns Mashlib HTML wrapper
428
442
3. Mashlib fetches the actual data via content negotiation
0 commit comments