most-box 0.0.2 → 0.0.6
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 -21
- package/README.md +222 -156
- package/electron/main.js +67 -0
- package/out/404/index.html +15 -0
- package/out/404.html +15 -0
- package/out/__next.__PAGE__.txt +11 -0
- package/out/__next._full.txt +21 -0
- package/out/__next._head.txt +5 -0
- package/out/__next._index.txt +7 -0
- package/out/__next._tree.txt +4 -0
- package/out/_next/static/alUUgRz4oMlw4EtULOYfV/_buildManifest.js +11 -0
- package/out/_next/static/alUUgRz4oMlw4EtULOYfV/_clientMiddlewareManifest.js +1 -0
- package/out/_next/static/alUUgRz4oMlw4EtULOYfV/_ssgManifest.js +1 -0
- package/out/_next/static/chunks/00s106sbq8t9v.js +1 -0
- package/out/_next/static/chunks/0174xh3wfsjm1.js +2 -0
- package/out/_next/static/chunks/01xlw8hd842-c.js +1 -0
- package/out/_next/static/chunks/02ou_44kkb5dz.js +1 -0
- package/out/_next/static/chunks/02pr2b_eos3~h.js +1 -0
- package/out/_next/static/chunks/03~yq9q893hmn.js +1 -0
- package/out/_next/static/chunks/07lsjkarm1p9f.css +1 -0
- package/out/_next/static/chunks/0_-ccbcyh_o30.css +1 -0
- package/out/_next/static/chunks/0_b839~4.q324.js +1 -0
- package/out/_next/static/chunks/0_sna3wdypbzr.js +1 -0
- package/out/_next/static/chunks/0_wia9ofmsi1c.css +2 -0
- package/out/_next/static/chunks/0byj66sc-9o0g.js +1 -0
- package/out/_next/static/chunks/0bzupvr5gt3k9.js +31 -0
- package/out/_next/static/chunks/0d3shmwh5_nmn.js +1 -0
- package/out/_next/static/chunks/0du450zbk4kq_.js +1 -0
- package/out/_next/static/chunks/0e_h0d3ekzks8.css +1 -0
- package/out/_next/static/chunks/0ho~log~~-jwp.css +1 -0
- package/out/_next/static/chunks/0ibjp~7qzxfjv.js +5 -0
- package/out/_next/static/chunks/0imvn_arv36xt.css +1 -0
- package/out/_next/static/chunks/0j9~17180dl8j.js +1 -0
- package/out/_next/static/chunks/0ji.28mehrvdp.js +1 -0
- package/out/_next/static/chunks/0jl~j62iz2uvr.js +1 -0
- package/out/_next/static/chunks/0nct0fubs64d-.js +1 -0
- package/out/_next/static/chunks/0n~dq4kpx9xxx.js +1 -0
- package/out/_next/static/chunks/0pqt~8bl3ukh4.js +4 -0
- package/out/_next/static/chunks/0q7ck9f.90_i9.js +1 -0
- package/out/_next/static/chunks/0qub_r0x_r-e9.css +1 -0
- package/out/_next/static/chunks/0rr4gwjp9z~9a.js +1 -0
- package/out/_next/static/chunks/0ry.po.a~iu4p.js +1 -0
- package/out/_next/static/chunks/0slwj0c46k5cu.js +1 -0
- package/out/_next/static/chunks/0sorqk.oc6b7j.css +1 -0
- package/out/_next/static/chunks/11dalasm30arx.js +1 -0
- package/out/_next/static/chunks/turbopack-0a_g3u0ud~jb8.js +1 -0
- package/out/_not-found/__next._full.txt +20 -0
- package/out/_not-found/__next._head.txt +5 -0
- package/out/_not-found/__next._index.txt +7 -0
- package/out/_not-found/__next._not-found.__PAGE__.txt +9 -0
- package/out/_not-found/__next._not-found.txt +5 -0
- package/out/_not-found/__next._tree.txt +2 -0
- package/out/_not-found/index.html +15 -0
- package/out/_not-found/index.txt +20 -0
- package/out/app/__next._full.txt +20 -0
- package/out/app/__next._head.txt +5 -0
- package/out/app/__next._index.txt +7 -0
- package/out/app/__next._tree.txt +2 -0
- package/out/app/__next.app.__PAGE__.txt +9 -0
- package/out/app/__next.app.txt +5 -0
- package/out/app/index.html +15 -0
- package/out/app/index.txt +20 -0
- package/out/changelog/__next._full.txt +22 -0
- package/out/changelog/__next._head.txt +5 -0
- package/out/changelog/__next._index.txt +7 -0
- package/out/changelog/__next._tree.txt +3 -0
- package/out/changelog/__next.changelog.__PAGE__.txt +10 -0
- package/out/changelog/__next.changelog.txt +5 -0
- package/out/changelog/index.html +15 -0
- package/out/changelog/index.txt +22 -0
- package/out/chat/__next._full.txt +21 -0
- package/out/chat/__next._head.txt +5 -0
- package/out/chat/__next._index.txt +7 -0
- package/out/chat/__next._tree.txt +3 -0
- package/out/chat/__next.chat.__PAGE__.txt +9 -0
- package/out/chat/__next.chat.txt +6 -0
- package/out/chat/index.html +15 -0
- package/out/chat/index.txt +21 -0
- package/out/docs/__next._full.txt +22 -0
- package/out/docs/__next._head.txt +5 -0
- package/out/docs/__next._index.txt +7 -0
- package/out/docs/__next._tree.txt +3 -0
- package/out/docs/__next.docs.__PAGE__.txt +10 -0
- package/out/docs/__next.docs.txt +5 -0
- package/out/docs/getting-started/__next._full.txt +22 -0
- package/out/docs/getting-started/__next._head.txt +5 -0
- package/out/docs/getting-started/__next._index.txt +7 -0
- package/out/docs/getting-started/__next._tree.txt +3 -0
- package/out/docs/getting-started/__next.docs.getting-started.__PAGE__.txt +10 -0
- package/out/docs/getting-started/__next.docs.getting-started.txt +5 -0
- package/out/docs/getting-started/__next.docs.txt +5 -0
- package/out/docs/getting-started/index.html +15 -0
- package/out/docs/getting-started/index.txt +22 -0
- package/out/docs/index.html +15 -0
- package/out/docs/index.txt +22 -0
- package/out/download/__next._full.txt +34 -0
- package/out/download/__next._head.txt +5 -0
- package/out/download/__next._index.txt +7 -0
- package/out/download/__next._tree.txt +4 -0
- package/out/download/__next.download.__PAGE__.txt +16 -0
- package/out/download/__next.download.txt +5 -0
- package/out/download/index.html +15 -0
- package/out/download/index.txt +34 -0
- package/out/favicon.ico +0 -0
- package/out/fonts/jetbrains-mono-latin-400-normal.woff2 +0 -0
- package/out/fonts/jetbrains-mono-latin-500-normal.woff2 +0 -0
- package/out/fonts/jetbrains-mono-latin-600-normal.woff2 +0 -0
- package/out/fonts/jetbrains-mono-latin-700-normal.woff2 +0 -0
- package/out/index.html +15 -0
- package/out/index.txt +21 -0
- package/out/lottery/__next._full.txt +21 -0
- package/out/lottery/__next._head.txt +5 -0
- package/out/lottery/__next._index.txt +7 -0
- package/out/lottery/__next._tree.txt +3 -0
- package/out/lottery/__next.lottery.__PAGE__.txt +9 -0
- package/out/lottery/__next.lottery.txt +6 -0
- package/out/lottery/index.html +15 -0
- package/out/lottery/index.txt +21 -0
- package/out/ping/__next._full.txt +21 -0
- package/out/ping/__next._head.txt +5 -0
- package/out/ping/__next._index.txt +7 -0
- package/out/ping/__next._tree.txt +4 -0
- package/out/ping/__next.ping.__PAGE__.txt +10 -0
- package/out/ping/__next.ping.txt +5 -0
- package/out/ping/index.html +15 -0
- package/out/ping/index.txt +21 -0
- package/out/pwa-512x512.png +0 -0
- package/out/web3/__next._full.txt +21 -0
- package/out/web3/__next._head.txt +5 -0
- package/out/web3/__next._index.txt +7 -0
- package/out/web3/__next._tree.txt +3 -0
- package/out/web3/__next.web3.__PAGE__.txt +9 -0
- package/out/web3/__next.web3.txt +6 -0
- package/out/web3/ed25519/__next._full.txt +20 -0
- package/out/web3/ed25519/__next._head.txt +5 -0
- package/out/web3/ed25519/__next._index.txt +7 -0
- package/out/web3/ed25519/__next._tree.txt +3 -0
- package/out/web3/ed25519/__next.web3.ed25519.__PAGE__.txt +6 -0
- package/out/web3/ed25519/__next.web3.ed25519.txt +5 -0
- package/out/web3/ed25519/__next.web3.txt +6 -0
- package/out/web3/ed25519/index.html +1 -0
- package/out/web3/ed25519/index.txt +20 -0
- package/out/web3/index.html +15 -0
- package/out/web3/index.txt +21 -0
- package/out/web3/tools/__next._full.txt +20 -0
- package/out/web3/tools/__next._head.txt +5 -0
- package/out/web3/tools/__next._index.txt +7 -0
- package/out/web3/tools/__next._tree.txt +3 -0
- package/out/web3/tools/__next.web3.tools.__PAGE__.txt +6 -0
- package/out/web3/tools/__next.web3.tools.txt +5 -0
- package/out/web3/tools/__next.web3.txt +6 -0
- package/out/web3/tools/index.html +1 -0
- package/out/web3/tools/index.txt +20 -0
- package/package.json +162 -48
- package/public/fonts/jetbrains-mono-latin-400-normal.woff2 +0 -0
- package/public/fonts/jetbrains-mono-latin-500-normal.woff2 +0 -0
- package/public/fonts/jetbrains-mono-latin-600-normal.woff2 +0 -0
- package/public/fonts/jetbrains-mono-latin-700-normal.woff2 +0 -0
- package/public/pwa-512x512.png +0 -0
- package/server/cli.js +3 -0
- package/server/index.js +963 -0
- package/{src → server/src}/config.js +51 -39
- package/{src → server/src}/core/cid.js +157 -146
- package/{src → server/src}/index.js +1950 -1201
- package/server/src/utils/api.js +68 -0
- package/server/src/utils/avatar.js +11 -0
- package/{src → server/src}/utils/errors.js +70 -66
- package/server/src/utils/mostWallet.js +42 -0
- package/server/src/utils/mp.js +117 -0
- package/{src → server/src}/utils/security.js +173 -169
- package/server/src/utils/userIdentity.js +93 -0
- package/build.mjs +0 -40
- package/cli.js +0 -2
- package/public/app.css +0 -1519
- package/public/app.jsx +0 -1543
- package/public/bundle.css +0 -1
- package/public/bundle.js +0 -107
- package/public/error-boundary.jsx +0 -50
- package/public/index.html +0 -16
- package/public/index.jsx +0 -20
- package/server.js +0 -698
package/package.json
CHANGED
|
@@ -1,48 +1,162 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "most-box",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "MostBox - P2P file sharing application",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "
|
|
7
|
-
"bin": {
|
|
8
|
-
"most-box": "./cli.js"
|
|
9
|
-
},
|
|
10
|
-
"files": [
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"server
|
|
14
|
-
"
|
|
15
|
-
"cli.js"
|
|
16
|
-
],
|
|
17
|
-
"scripts": {
|
|
18
|
-
"start": "npm run build && node server.js",
|
|
19
|
-
"build": "
|
|
20
|
-
"
|
|
21
|
-
"test
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "most-box",
|
|
3
|
+
"version": "0.0.6",
|
|
4
|
+
"description": "MostBox - P2P file sharing application",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "electron/main.js",
|
|
7
|
+
"bin": {
|
|
8
|
+
"most-box": "./server/cli.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"out",
|
|
12
|
+
"public",
|
|
13
|
+
"server/src",
|
|
14
|
+
"server/index.js",
|
|
15
|
+
"server/cli.js"
|
|
16
|
+
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"start": "npm run build && node server/index.js",
|
|
19
|
+
"build": "next build",
|
|
20
|
+
"dev": "next dev",
|
|
21
|
+
"test": "node --test server/tests/**/*.test.js",
|
|
22
|
+
"test:unit": "node --test server/tests/unit/*.test.js",
|
|
23
|
+
"format": "npx prettier --write .",
|
|
24
|
+
"lint": "npx eslint .",
|
|
25
|
+
"electron:dev": "concurrently \"npm run build\" \"wait-on out/index.html && electron .\"",
|
|
26
|
+
"electron:rebuild": "electron-rebuild -f -w sodium-native",
|
|
27
|
+
"electron:build": "npm run build && npm run electron:rebuild && electron-builder",
|
|
28
|
+
"electron:build:win": "npm run build && npm run electron:rebuild && electron-builder --win",
|
|
29
|
+
"electron:build:mac": "npm run build && npm run electron:rebuild && electron-builder --mac",
|
|
30
|
+
"electron:build:linux": "npm run build && npm run electron:rebuild && electron-builder --linux"
|
|
31
|
+
},
|
|
32
|
+
"keywords": [
|
|
33
|
+
"p2p",
|
|
34
|
+
"file-sharing",
|
|
35
|
+
"hyperswarm",
|
|
36
|
+
"hyperdrive"
|
|
37
|
+
],
|
|
38
|
+
"license": "MIT",
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@dicebear/collection": "^9.4.2",
|
|
41
|
+
"@dicebear/core": "^9.4.2",
|
|
42
|
+
"@hono/node-server": "^2.0.0",
|
|
43
|
+
"@iconify/react": "^6.0.2",
|
|
44
|
+
"@mantine/hooks": "^9.1.0",
|
|
45
|
+
"b4a": "^1.8.0",
|
|
46
|
+
"busboy": "^1.6.0",
|
|
47
|
+
"corestore": "^7.9.2",
|
|
48
|
+
"dayjs": "^1.11.20",
|
|
49
|
+
"ethers": "^6.16.0",
|
|
50
|
+
"eventemitter3": "^5.0.4",
|
|
51
|
+
"hono": "^4.12.15",
|
|
52
|
+
"hypercore": "^11.28.1",
|
|
53
|
+
"hyperdrive": "^13.3.2",
|
|
54
|
+
"hyperswarm": "^4.17.0",
|
|
55
|
+
"ipfs-unixfs-importer": "^16.1.5",
|
|
56
|
+
"ky": "^2.0.2",
|
|
57
|
+
"lucide-react": "^1.9.0",
|
|
58
|
+
"multiformats": "^13.4.2",
|
|
59
|
+
"next": "^16.2.4",
|
|
60
|
+
"qrcode.react": "^4.2.0",
|
|
61
|
+
"react": "^19.2.5",
|
|
62
|
+
"react-dom": "^19.2.5",
|
|
63
|
+
"tweetnacl": "^1.0.3",
|
|
64
|
+
"ws": "^8.20.0",
|
|
65
|
+
"zustand": "^5.0.12"
|
|
66
|
+
},
|
|
67
|
+
"devDependencies": {
|
|
68
|
+
"@electron/rebuild": "^4.0.4",
|
|
69
|
+
"@eslint/js": "^10.0.1",
|
|
70
|
+
"@types/react": "19.2.14",
|
|
71
|
+
"concurrently": "^9.2.1",
|
|
72
|
+
"electron": "^41.3.0",
|
|
73
|
+
"electron-builder": "^26.8.1",
|
|
74
|
+
"esbuild": "^0.28.0",
|
|
75
|
+
"eslint": "^10.2.1",
|
|
76
|
+
"globals": "^17.5.0",
|
|
77
|
+
"prettier": "^3.8.3",
|
|
78
|
+
"typescript": "6.0.3",
|
|
79
|
+
"wait-on": "^9.0.5"
|
|
80
|
+
},
|
|
81
|
+
"build": {
|
|
82
|
+
"appId": "com.mostbox.app",
|
|
83
|
+
"productName": "MostBox",
|
|
84
|
+
"directories": {
|
|
85
|
+
"output": "dist"
|
|
86
|
+
},
|
|
87
|
+
"files": [
|
|
88
|
+
"out/**/*",
|
|
89
|
+
"server/**/*",
|
|
90
|
+
"electron/**/*",
|
|
91
|
+
"package.json"
|
|
92
|
+
],
|
|
93
|
+
"extraResources": [
|
|
94
|
+
{
|
|
95
|
+
"from": "out",
|
|
96
|
+
"to": "app/out"
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"asarUnpack": [
|
|
100
|
+
"**/*.node",
|
|
101
|
+
"**/sodium-native/**"
|
|
102
|
+
],
|
|
103
|
+
"win": {
|
|
104
|
+
"target": [
|
|
105
|
+
{
|
|
106
|
+
"target": "nsis",
|
|
107
|
+
"arch": [
|
|
108
|
+
"x64",
|
|
109
|
+
"arm64"
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
],
|
|
113
|
+
"icon": "public/icon.ico"
|
|
114
|
+
},
|
|
115
|
+
"nsis": {
|
|
116
|
+
"oneClick": false,
|
|
117
|
+
"allowToChangeInstallationDirectory": true,
|
|
118
|
+
"createDesktopShortcut": true,
|
|
119
|
+
"createStartMenuShortcut": true,
|
|
120
|
+
"shortcutName": "MostBox"
|
|
121
|
+
},
|
|
122
|
+
"mac": {
|
|
123
|
+
"target": [
|
|
124
|
+
{
|
|
125
|
+
"target": "dmg",
|
|
126
|
+
"arch": [
|
|
127
|
+
"x64",
|
|
128
|
+
"arm64"
|
|
129
|
+
]
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
"icon": "public/icon.icns",
|
|
133
|
+
"category": "public.app-category.utilities"
|
|
134
|
+
},
|
|
135
|
+
"dmg": {
|
|
136
|
+
"contents": [
|
|
137
|
+
{
|
|
138
|
+
"x": 130,
|
|
139
|
+
"y": 220
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"x": 410,
|
|
143
|
+
"y": 220,
|
|
144
|
+
"type": "link",
|
|
145
|
+
"path": "/Applications"
|
|
146
|
+
}
|
|
147
|
+
]
|
|
148
|
+
},
|
|
149
|
+
"linux": {
|
|
150
|
+
"target": [
|
|
151
|
+
{
|
|
152
|
+
"target": "AppImage",
|
|
153
|
+
"arch": [
|
|
154
|
+
"x64",
|
|
155
|
+
"arm64"
|
|
156
|
+
]
|
|
157
|
+
}
|
|
158
|
+
],
|
|
159
|
+
"category": "Utility"
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/server/cli.js
ADDED