worldwideweb 0.0.19 → 0.0.21
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/.claude/settings.local.json +16 -0
- package/README.md +40 -3
- package/bin/worldwideweb.js +18 -0
- package/config.json +6 -0
- package/extension-0.0.1.xpi +0 -0
- package/jsonos/browser.html +997 -0
- package/jsonos/main.cjs +291 -0
- package/jsonos/preload.js +14 -0
- package/jsonos/screenshot.png +0 -0
- package/jsonos/screenshot2.png +0 -0
- package/main.js +168 -0
- package/package.json +11 -17
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"permissions": {
|
|
3
|
+
"allow": [
|
|
4
|
+
"Bash(tree:*)",
|
|
5
|
+
"Bash(find:*)",
|
|
6
|
+
"WebFetch(domain:linkedobjects.org)",
|
|
7
|
+
"WebFetch(domain:jsonos.com)",
|
|
8
|
+
"Bash(import:*)",
|
|
9
|
+
"Bash(gnome-screenshot:*)",
|
|
10
|
+
"Bash(scrot:*)",
|
|
11
|
+
"Bash(pgrep:*)",
|
|
12
|
+
"Bash(DISPLAY=:0 scrot:*)",
|
|
13
|
+
"Bash(DISPLAY=:0 gnome-screenshot:*)"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
package/README.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
|
-
#
|
|
1
|
+
# WorldWideWeb
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A WorldWideWeb browser in JavaScript - JSS + mashlib in Electron.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Quick Start
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npx worldwideweb
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Install Globally
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npm install -g worldwideweb
|
|
15
|
+
worldwideweb
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Development
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
git clone https://github.com/melvincarvalho/worldwideweb.git
|
|
22
|
+
cd worldwideweb
|
|
23
|
+
npm install
|
|
24
|
+
npm start
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Configure
|
|
28
|
+
|
|
29
|
+
Edit `config.json`:
|
|
30
|
+
|
|
31
|
+
```json
|
|
32
|
+
{
|
|
33
|
+
"port": 3012,
|
|
34
|
+
"width": 1200,
|
|
35
|
+
"height": 800,
|
|
36
|
+
"root": "./data"
|
|
37
|
+
}
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## License
|
|
41
|
+
|
|
42
|
+
MIT
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { spawn } from 'child_process';
|
|
3
|
+
import { dirname, join } from 'path';
|
|
4
|
+
import { fileURLToPath } from 'url';
|
|
5
|
+
import { createRequire } from 'module';
|
|
6
|
+
|
|
7
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
8
|
+
const require = createRequire(import.meta.url);
|
|
9
|
+
|
|
10
|
+
// Get electron path from the electron package
|
|
11
|
+
const electronPath = require('electron');
|
|
12
|
+
const mainPath = join(__dirname, '..', 'main.js');
|
|
13
|
+
|
|
14
|
+
const child = spawn(electronPath, [mainPath, ...process.argv.slice(2)], {
|
|
15
|
+
stdio: 'inherit'
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
child.on('close', (code) => process.exit(code));
|
package/config.json
ADDED
|
Binary file
|