Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a46d0d0adb | ||
|
|
fe42f9a7db | ||
|
|
d84b39663b | ||
|
|
f46579b01b | ||
|
|
963216f7a3 | ||
|
|
0569580e5e | ||
|
|
b352c03624 | ||
|
|
9c60d72170 | ||
|
|
0a5b3f6c96 | ||
|
|
3c9af69e23 | ||
|
|
f67c540d1a | ||
|
|
ffd250b5cb | ||
|
|
16b1cd2c1c | ||
|
|
294f88b14b | ||
|
|
142deb6912 | ||
|
|
e193247c0b | ||
|
|
3308b22e8b | ||
|
|
d49fe9895f | ||
|
|
a76b723bc1 | ||
|
|
c98031a523 | ||
|
|
fedf9bee96 | ||
|
|
be461870f2 | ||
|
|
7a0fc44b0f | ||
|
|
c76e1d66c2 | ||
|
|
5f4f34184c | ||
|
|
86bfa3bb4c | ||
|
|
9d78f8feb8 | ||
|
|
69003f8dd5 | ||
|
|
2c2c513f2b | ||
|
|
046dffadca | ||
|
|
ac885905b1 | ||
|
|
8cae4bbfe5 | ||
|
|
40a16055bf | ||
|
|
9486f44886 | ||
|
|
f7ca550409 | ||
|
|
3bfb3cc6d2 | ||
|
|
d153015d30 | ||
|
|
59e3c4b6c1 | ||
|
|
8ca94dad36 | ||
|
|
c8ba3991db | ||
|
|
87d467c931 | ||
|
|
ece8b32314 | ||
|
|
da0fac1998 | ||
|
|
957c07b5fc | ||
|
|
9ddb8897c6 | ||
|
|
c4e5902d5c | ||
|
|
f4fd115a34 | ||
|
|
d6f042baf8 | ||
|
|
724bee35eb | ||
|
|
de97e196b9 | ||
|
|
e571f603fb | ||
|
|
560f7cac8a | ||
|
|
4b09330af6 | ||
|
|
d31a8b50b0 | ||
|
|
1b3213825c | ||
|
|
770e523bbf | ||
|
|
623dac01bf | ||
|
|
776d29ebf9 | ||
|
|
cd78d94f52 | ||
|
|
66152f8ed9 | ||
|
|
455fb94196 | ||
|
|
582ac605d2 | ||
|
|
9031d7452e | ||
|
|
73a51d3bb2 | ||
|
|
cdd7a80b73 | ||
|
|
d710f9c2c2 | ||
|
|
07b0122bb5 | ||
|
|
42da605a55 | ||
|
|
bfd785654e | ||
|
|
da8e7aadbb | ||
|
|
836394dcf0 | ||
|
|
5a0cb57fff | ||
|
|
9db48c62fa | ||
|
|
8fe7f93b64 | ||
|
|
e99288b4ef | ||
|
|
add54c55be | ||
|
|
4ddb99f5ef | ||
|
|
4f949a56b3 | ||
|
|
1d6a95848b | ||
|
|
1bdf0e10ae | ||
|
|
644ee3378f | ||
|
|
cc935eecbd | ||
|
|
91f3213dad | ||
|
|
2eefe0569f | ||
|
|
2ad5024283 | ||
|
|
076b963f4a | ||
|
|
60643bcbc2 | ||
|
|
3d0d4ec1e3 | ||
|
|
bfdd70cb5f | ||
|
|
d1d07ef038 | ||
|
|
9bcc7fd5ad | ||
|
|
d233e2ab86 | ||
|
|
0ce52f3faa | ||
|
|
e5c5f220f7 | ||
|
|
1d6921992c | ||
|
|
eaafbf53c0 | ||
|
|
cc2182290d | ||
|
|
ffa54dea01 | ||
|
|
e93202cfb4 | ||
|
|
3170cb7ef0 | ||
|
|
628d4ac997 | ||
|
|
5c1b14234b | ||
|
|
e4b6f2feb6 | ||
|
|
0213f9bfae | ||
|
|
86dd83e958 | ||
|
|
c64de4521f | ||
|
|
0d4f09fbc9 | ||
|
|
6e8a1d9eb7 | ||
|
|
eb409d29c5 | ||
|
|
04bf32e102 | ||
|
|
f2ec701634 | ||
|
|
4a6dd861a5 | ||
|
|
c63d143219 | ||
|
|
ab48e45819 | ||
|
|
3d4c6fff7d | ||
|
|
1872fc1819 | ||
|
|
945cf15e33 | ||
|
|
db729b05ba | ||
|
|
10ee381dba | ||
|
|
ace4cd8fd3 | ||
|
|
2d21d78007 | ||
|
|
346adea3e5 | ||
|
|
89acdf5ebf | ||
|
|
d7eaa4ce0d | ||
|
|
001bacb817 | ||
|
|
637edb86c0 | ||
|
|
4ca08317d6 | ||
|
|
2b31f6648a | ||
|
|
e7ba448b71 | ||
|
|
bd97ae5afc | ||
|
|
82a5664f97 | ||
|
|
6c5a4f4db7 | ||
|
|
be8e71ce32 | ||
|
|
ae202b6f9b | ||
|
|
b032eb8891 | ||
|
|
8aa515e880 | ||
|
|
6941d58093 | ||
|
|
1ee5c1f011 | ||
|
|
038b4f0618 | ||
|
|
9f801cd6f0 | ||
|
|
9ee122ba5e | ||
|
|
89c29e94c0 | ||
|
|
a2532ce0b6 | ||
|
|
7843f2db54 | ||
|
|
ea0a47fcd1 | ||
|
|
e482959612 | ||
|
|
25747ea028 | ||
|
|
8f7c6fd505 | ||
|
|
12a66ea6ae | ||
|
|
1d92db752b | ||
|
|
d496738dff | ||
|
|
2925b9d2cf | ||
|
|
e4bedabc69 | ||
|
|
8a933f1de4 | ||
|
|
3e9d2f583c | ||
|
|
d521a02201 | ||
|
|
29bb4cad5c | ||
|
|
9f5da73b17 | ||
|
|
a17537aba9 | ||
|
|
9d961c4c10 | ||
|
|
ff0b435bb6 | ||
|
|
56743466a4 | ||
|
|
f0b2a1d3a2 | ||
|
|
d581192999 | ||
|
|
a26b4db9ac | ||
|
|
2e5007ee42 | ||
|
|
6163301f2e | ||
|
|
8e670cbebe | ||
|
|
dd3210c9a1 | ||
|
|
02f4fe46e7 | ||
|
|
e6a185b6a5 | ||
|
|
1cf5b09d1a | ||
|
|
edd7238183 | ||
|
|
135c5bd39d | ||
|
|
dd764638a5 | ||
|
|
2a676c119a | ||
|
|
ccfdd37b00 | ||
|
|
5cf1d1ec06 | ||
|
|
34a982cbf3 | ||
|
|
0ee978ccfe | ||
|
|
9bd914cfb9 | ||
|
|
650e7e7b52 | ||
|
|
d2896c5ec1 | ||
|
|
4a604ca70e | ||
|
|
d58d09021c | ||
|
|
8deda0863f | ||
|
|
5a02cb8809 | ||
|
|
8ecd67baf6 | ||
|
|
f3adf1280b | ||
|
|
0494d7f070 | ||
|
|
f4faa3f140 | ||
|
|
000e46566d | ||
|
|
ed7e50475d | ||
|
|
d1971f596c | ||
|
|
c51cd0ee67 | ||
|
|
2c4772a3e5 | ||
|
|
629c4c43e8 | ||
|
|
f3262e7666 | ||
|
|
46d1182a5d | ||
|
|
594ffe4f7b | ||
|
|
f25750d994 | ||
|
|
61cb1b1da7 | ||
|
|
a838896eaa | ||
|
|
ca36a4ba44 | ||
|
|
614f02a347 | ||
|
|
59de261a1f | ||
|
|
1a48ef11ab | ||
|
|
fe77036aca | ||
|
|
e67801c67c | ||
|
|
d614bf9d67 | ||
|
|
a046ef4a16 | ||
|
|
d369af67d4 | ||
|
|
e9d554bd39 | ||
|
|
89e299cd57 | ||
|
|
b1c1989e60 | ||
|
|
6608948e2e | ||
|
|
803eb82330 | ||
|
|
4d6a9b9a15 | ||
|
|
9def292467 | ||
|
|
d5f9bfc7fb | ||
|
|
d09d11f374 | ||
|
|
6bfd7484fc | ||
|
|
40e13041f7 | ||
|
|
16fc954c8c | ||
|
|
c492d9a62b | ||
|
|
ccb94e5877 | ||
|
|
cae5088b7d | ||
|
|
4662e21a3d | ||
|
|
b2fb8ed916 | ||
|
|
e8496f9ead | ||
|
|
f85e32b9c5 | ||
|
|
ca83ddab3b | ||
|
|
a9de8a4fac | ||
|
|
ed87222874 | ||
|
|
8dab86b054 | ||
|
|
5f3b63cd43 | ||
|
|
e56bc3a1f2 | ||
|
|
e09d5bb1e1 | ||
|
|
87def91d4b | ||
|
|
b60c477164 | ||
|
|
0829f126b1 | ||
|
|
447721517a | ||
|
|
bebacbd585 | ||
|
|
59c2588709 | ||
|
|
45f9f798f3 | ||
|
|
d6d418126f | ||
|
|
f46228ac6e | ||
|
|
b2fdfdcb2d | ||
|
|
d13254effd | ||
|
|
5ea0a048f8 | ||
|
|
07e265164e | ||
|
|
6393d56c70 | ||
|
|
ef5ff12f38 | ||
|
|
180ca72cd9 | ||
|
|
9ab7c6f4fe | ||
|
|
fd634bc532 | ||
|
|
38a9287b0a | ||
|
|
99f4ad3d04 | ||
|
|
cb333d3cd4 | ||
|
|
a57c46ca44 | ||
|
|
84c832d941 | ||
|
|
1e11b0154f | ||
|
|
ef1ae42bda | ||
|
|
c4952724af | ||
|
|
c302ef69f0 | ||
|
|
32adb4f8f4 | ||
|
|
50f2c727fe | ||
|
|
c0da83cbdd | ||
|
|
506d4ec625 | ||
|
|
900efbc05d | ||
|
|
2d610caa4b | ||
|
|
77f63b66cc | ||
|
|
e66248a23a | ||
|
|
d3110bf10c | ||
|
|
2c27e12847 | ||
|
|
4e3f28e421 | ||
|
|
b797fedced | ||
|
|
6b0c6632a9 | ||
|
|
f49e7d9d43 | ||
|
|
0786a5df61 | ||
|
|
99546280d9 | ||
|
|
07f1539ec9 | ||
|
|
1800940d1d | ||
|
|
3dc996ddf1 | ||
|
|
a6e66aa02a | ||
|
|
78c0949439 | ||
|
|
7537dcb3fc | ||
|
|
378e120c65 | ||
|
|
edb46ab05b | ||
|
|
3582c1e063 | ||
|
|
a679149d03 | ||
|
|
811d1b11e6 | ||
|
|
a29837a4a1 | ||
|
|
6b2b90e92c | ||
|
|
96e3a3de69 | ||
|
|
a3047c96e5 | ||
|
|
0b36f05b98 | ||
|
|
0fc907d879 | ||
|
|
342a5dccab | ||
|
|
dcbec83aac | ||
|
|
b50a9c2fc5 | ||
|
|
10d6dab773 | ||
|
|
bc570810ca | ||
|
|
ffcda7a7a0 | ||
|
|
b59aa0e9ba | ||
|
|
0b7bcd7193 | ||
|
|
8298808db8 | ||
|
|
8fdc2d1b4d | ||
|
|
52fa28cac6 | ||
|
|
7bcbd3beb4 | ||
|
|
c31816b055 | ||
|
|
06cd28b590 | ||
|
|
7df92d319a | ||
|
|
be0ff402d8 | ||
|
|
e9d8415d7f | ||
|
|
53c36fba23 | ||
|
|
dca8031c09 | ||
|
|
0a4068e163 | ||
|
|
511747b720 | ||
|
|
ded3102afe | ||
|
|
57d7d01c4e | ||
|
|
ac263f9928 | ||
|
|
57bdb21d02 | ||
|
|
6742196e92 | ||
|
|
3939c9842f | ||
|
|
769ab50f1a | ||
|
|
8f3e5ec8a9 | ||
|
|
73b6992200 | ||
|
|
e1e6459b96 | ||
|
|
b2f1ac1913 | ||
|
|
ce26d8faf5 | ||
|
|
17c839d59c | ||
|
|
69f8bf97d4 | ||
|
|
2eb18d124f | ||
|
|
7d53cefaf2 | ||
|
|
00cf58c414 | ||
|
|
e3ec2f52f7 | ||
|
|
d69ab118bb | ||
|
|
ae933361a3 | ||
|
|
0d45f243ac | ||
|
|
0871e10cf8 | ||
|
|
51fbba9cb6 | ||
|
|
ed6cda24ee | ||
|
|
80c82e25c9 | ||
|
|
035f6b8baa | ||
|
|
84d2b6a3fe | ||
|
|
0aa54f18ba | ||
|
|
a3b0dad057 | ||
|
|
cad35e6ad4 | ||
|
|
1e02a888b5 | ||
|
|
ebc75dae1b | ||
|
|
6493eaffc4 | ||
|
|
d8a1596f11 | ||
|
|
9725b4db94 | ||
|
|
36c01cd57f | ||
|
|
6202b3ab5c | ||
|
|
c3373f3bdc | ||
|
|
72adf1d628 | ||
|
|
aa43b839eb | ||
|
|
3299a61d83 | ||
|
|
3874575a34 | ||
|
|
35398ce62b | ||
|
|
1e87ac616b | ||
|
|
3fbfbc1532 | ||
|
|
5c6fbdf5b8 | ||
|
|
eb40c081b4 | ||
|
|
7b0dccd596 | ||
|
|
04db6a4250 | ||
|
|
26a517726c | ||
|
|
bf8c4f0b70 | ||
|
|
b96eea8a00 | ||
|
|
3032987904 | ||
|
|
a81c1d25bc | ||
|
|
2b0b5ed884 | ||
|
|
56f73d270a | ||
|
|
84cb7c3730 | ||
|
|
3ccf39512b | ||
|
|
7bd226c07e | ||
|
|
1d9bd23a77 | ||
|
|
7fce7f96a5 | ||
|
|
dcc1f4ee1f | ||
|
|
37b1a3731d | ||
|
|
3eea85b547 | ||
|
|
dc73d73171 | ||
|
|
d57ecf214d | ||
|
|
b6c23960eb | ||
|
|
51843c3298 | ||
|
|
678cdc43a5 | ||
|
|
605a08b4ba | ||
|
|
c4b5de5f98 | ||
|
|
6406495098 | ||
|
|
90003d2012 | ||
|
|
0609ae50e1 | ||
|
|
d5d85a1260 | ||
|
|
45e5298cca | ||
|
|
1822a6bf97 | ||
|
|
e103240f12 | ||
|
|
58dc6adc5a | ||
|
|
e798e7024b | ||
|
|
408d7c4fd5 | ||
|
|
d8880c9679 | ||
|
|
800e66ca87 | ||
|
|
6f5902b263 | ||
|
|
6198ed5ea3 | ||
|
|
fddff8afbc | ||
|
|
1ba1569895 | ||
|
|
4d2d8d0138 | ||
|
|
c7bad1b0a6 | ||
|
|
4c9119fccf | ||
|
|
25eb5367e0 | ||
|
|
de696247a5 | ||
|
|
f472d25001 | ||
|
|
b1f682e683 | ||
|
|
86c6a48065 | ||
|
|
46523c4997 | ||
|
|
29e4b45198 | ||
|
|
d1fe5c4c9d | ||
|
|
3cd285e076 | ||
|
|
e9761c6b91 | ||
|
|
35b2b6db92 | ||
|
|
6077434854 | ||
|
|
dc44e085cc | ||
|
|
b5952f1415 | ||
|
|
894a9cbd0c | ||
|
|
fbbf94c793 | ||
|
|
92a8e9f116 | ||
|
|
74c24959a9 | ||
|
|
3f23f50038 | ||
|
|
900e6897b9 | ||
|
|
b4e2fcabf6 | ||
|
|
18e3f69ae8 | ||
|
|
dda4b604a1 | ||
|
|
a51fe5f826 | ||
|
|
0ffbb58621 | ||
|
|
affa9c4b38 | ||
|
|
f3a56348c1 | ||
|
|
4a5dcfb704 | ||
|
|
e4d9fff148 | ||
|
|
518876bfb0 | ||
|
|
b7bf42ecd3 | ||
|
|
558d58b721 | ||
|
|
cbadbf907f | ||
|
|
c6f7bf91c3 | ||
|
|
30d39e70ac | ||
|
|
0ec415eeb1 | ||
|
|
a11089e1cf | ||
|
|
72236c08d6 | ||
|
|
b312d28be3 | ||
|
|
7fa47e955a | ||
|
|
ff02445301 | ||
|
|
5a5fb99ee2 | ||
|
|
c6147418d9 | ||
|
|
536353239a | ||
|
|
f693e2835a | ||
|
|
0bf452c906 | ||
|
|
7dfbb9f40a | ||
|
|
d1235148ff | ||
|
|
52bb4ce4c3 | ||
|
|
62d1dc98ad | ||
|
|
0b5983f2cd | ||
|
|
35984777a8 | ||
|
|
e6cb91bb74 | ||
|
|
b83917c6bb | ||
|
|
31e787f864 | ||
|
|
0f804c5d09 | ||
|
|
48eb47b852 | ||
|
|
0f11d7e337 | ||
|
|
daa8d4c11e | ||
|
|
e675e9671d | ||
|
|
668fcefdc3 | ||
|
|
f7c3ba1976 | ||
|
|
ebbfaf8ce6 | ||
|
|
8642d70669 | ||
|
|
7fb47c6331 | ||
|
|
04db728099 | ||
|
|
e1463b06ac | ||
|
|
e4d6e15499 | ||
|
|
c1983f6037 | ||
|
|
b319a92612 | ||
|
|
97ae8f9071 | ||
|
|
435a32aa56 | ||
|
|
ff5d6bc46b | ||
|
|
1262531cdc | ||
|
|
de40ee70f8 | ||
|
|
4da05b5cbc | ||
|
|
8044fadc35 | ||
|
|
f7e2535a57 | ||
|
|
258c5079ee | ||
|
|
4c6e1610ab | ||
|
|
ee768c20ce | ||
|
|
70c7f08b8a | ||
|
|
5063047312 | ||
|
|
26f0ac4b1d | ||
|
|
52d67b6e6e | ||
|
|
b9e9bbff4a | ||
|
|
7aee4a4c4c | ||
|
|
1ab575a424 | ||
|
|
6771ce15dc | ||
|
|
748525c417 | ||
|
|
94d4623ff6 | ||
|
|
8e080da8b1 | ||
|
|
946056c729 | ||
|
|
5e2657d742 | ||
|
|
0571924dc1 | ||
|
|
2902ce08c6 | ||
|
|
ea3011b0db | ||
|
|
16a9d159e8 | ||
|
|
7772a77335 | ||
|
|
d88dafc09f | ||
|
|
dbc198ce85 | ||
|
|
a9fb242e23 | ||
|
|
d5482cd50d | ||
|
|
9a98bc5a68 | ||
|
|
66231fdcaa | ||
|
|
c12d1cf31d | ||
|
|
2fb72bb809 | ||
|
|
aa6a105c77 | ||
|
|
e82516dcc6 | ||
|
|
551a28f6f9 | ||
|
|
b3f3d07188 | ||
|
|
6cf10a5e04 | ||
|
|
aa03d5c48b | ||
|
|
537ac3fbc9 | ||
|
|
a26cc56172 | ||
|
|
c7358bbf7f | ||
|
|
a699a9e4a1 | ||
|
|
715455490d | ||
|
|
7d9b7dc516 | ||
|
|
94ea5ff719 | ||
|
|
120f0dbbef | ||
|
|
37d8f2ff72 | ||
|
|
00b8d6d297 | ||
|
|
504d4e0666 | ||
|
|
add5fd9b9a | ||
|
|
6e02fa0784 | ||
|
|
d3f7bb8072 | ||
|
|
874476d4da | ||
|
|
042669f9cc | ||
|
|
7ee57ccd22 | ||
|
|
4113fe3cd4 | ||
|
|
ea6a8bd341 | ||
|
|
83d1276b71 | ||
|
|
1799ca62ae | ||
|
|
a6aa0e0e16 | ||
|
|
c92620e324 | ||
|
|
31ca647ca3 | ||
|
|
7f37df42de | ||
|
|
8cbdb5a7f2 | ||
|
|
86a4255b6d | ||
|
|
9715859626 | ||
|
|
2a5e57fd39 | ||
|
|
7c84ca9fa3 | ||
|
|
0b1d8ad60f | ||
|
|
a9a8b87239 | ||
|
|
2ff10b0dc7 | ||
|
|
e687dbd9c2 | ||
|
|
a5c87be832 | ||
|
|
c609c59371 | ||
|
|
9085357e39 | ||
|
|
ac3eb00884 | ||
|
|
d33aa5712e | ||
|
|
bbea0de47f | ||
|
|
cd59867278 | ||
|
|
9e8cee534c | ||
|
|
9133475ce1 | ||
|
|
ecb825e5e0 | ||
|
|
ee7b1ebd20 | ||
|
|
7539f40d02 | ||
|
|
a998d849f7 |
No files matched your search
@@ -1,14 +0,0 @@
|
||||
# Ignore node modules as they will be installed in the Dockerfile
|
||||
node_modules/
|
||||
|
||||
# Ignore local configuration and cache files
|
||||
.cache/
|
||||
.config/
|
||||
.DS_Store
|
||||
|
||||
# Ignore logs
|
||||
*.log
|
||||
|
||||
# Ignore test and development files
|
||||
*.md
|
||||
*.test.js
|
||||
@@ -1,5 +0,0 @@
|
||||
NEXT_PUBLIC_BASE_URL=http://localhost:3000
|
||||
NEXT_PUBLIC_PAYMENT_URL=https://herowand.lemonsqueezy.com/checkout/buy/ce30521f-c7cc-44f3-9435-995d3260ba22
|
||||
NEXT_PUBLIC_GA_ID=G-JKZEHMJBMH
|
||||
NEXT_PUBLIC_SUPABASE_URL=https://bxkgqurwqjmvrqekcbws.supabase.co
|
||||
NEXT_PUBLIC_SUPABASE_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImJ4a2dxdXJ3cWptdnJxZWtjYndzIiwicm9sZSI6ImFub24iLCJpYXQiOjE2OTA2NDU0MjUsImV4cCI6MjAwNjIyMTQyNX0.3nZ0yhuFjnI3yHbAL8S9UtK-Ny-6F5AylNHgo1tymTU
|
||||
@@ -1,5 +0,0 @@
|
||||
NEXT_PUBLIC_BASE_URL=https://jsoncrack.com
|
||||
NEXT_PUBLIC_PAYMENT_URL=https://herowand.lemonsqueezy.com/checkout/buy/ce30521f-c7cc-44f3-9435-995d3260ba22
|
||||
NEXT_PUBLIC_GA_ID=G-JKZEHMJBMH
|
||||
NEXT_PUBLIC_SUPABASE_URL=https://bxkgqurwqjmvrqekcbws.supabase.co
|
||||
NEXT_PUBLIC_SUPABASE_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImJ4a2dxdXJ3cWptdnJxZWtjYndzIiwicm9sZSI6ImFub24iLCJpYXQiOjE2OTA2NDU0MjUsImV4cCI6MjAwNjIyMTQyNX0.3nZ0yhuFjnI3yHbAL8S9UtK-Ny-6F5AylNHgo1tymTU
|
||||
@@ -1,27 +0,0 @@
|
||||
{
|
||||
"rules": {
|
||||
"@next/next/no-img-element": "off",
|
||||
"unused-imports/no-unused-imports": "error",
|
||||
"prettier/prettier": "error",
|
||||
"space-in-parens": "error",
|
||||
"no-empty": "error",
|
||||
"no-multiple-empty-lines": "error",
|
||||
"no-irregular-whitespace": "error",
|
||||
"strict": ["error", "never"],
|
||||
"linebreak-style": ["error", "unix"],
|
||||
"quotes": ["error", "double", { "avoidEscape": true }],
|
||||
"semi": ["error", "always"],
|
||||
"prefer-const": "error",
|
||||
"space-before-function-paren": [
|
||||
"error",
|
||||
{
|
||||
"anonymous": "always",
|
||||
"named": "never",
|
||||
"asyncArrow": "always"
|
||||
}
|
||||
]
|
||||
},
|
||||
"extends": ["next/core-web-vitals", "prettier"],
|
||||
"plugins": ["prettier", "unused-imports"],
|
||||
"ignorePatterns": ["src/enums"]
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
# These are supported funding model platforms
|
||||
|
||||
github: AykutSarac
|
||||
patreon: # patreon name
|
||||
open_collective: # opencollective name
|
||||
ko_fi: # Replace with a single Ko-fi username
|
||||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
||||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
||||
liberapay: # Replace with a single Liberapay username
|
||||
issuehunt: # Replace with a single IssueHunt username
|
||||
otechie: # Replace with a single Otechie username
|
||||
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
|
||||
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
||||
@@ -2,7 +2,6 @@ name: Bug report
|
||||
description: Create a report to help us improve
|
||||
title: "[BUG]: <Context of the issue>"
|
||||
labels: bug
|
||||
assignees: AykutSarac
|
||||
body:
|
||||
- type: textarea
|
||||
id: description
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
## Issue
|
||||
Closes #[ISSUE_NUMBER]
|
||||
|
||||
## What Changed
|
||||
Brief description of what you changed and why.
|
||||
|
||||
Example:
|
||||
- Added JSON validation tooltip on parse error
|
||||
- Improved performance by memoizing graph component
|
||||
- Fixed bug where large JSON files caused slowdown
|
||||
|
||||
## How to Test
|
||||
Step-by-step instructions to test the change:
|
||||
|
||||
1. ...
|
||||
2. ...
|
||||
3. ...
|
||||
|
||||
## Evidence
|
||||
**Screenshots or Video Required** — Choose one or both:
|
||||
|
||||
### Screenshots
|
||||
- [ ] Before/after screenshots attached (for UI changes)
|
||||
|
||||
### Video
|
||||
- [ ] Screen recording of the feature in action
|
||||
|
||||
### Testing
|
||||
- [ ] Tested locally with `pnpm dev`
|
||||
- [ ] No console errors
|
||||
- [ ] Tested with large JSON files (if applicable)
|
||||
|
||||
## Performance Impact
|
||||
Any notes on performance, re-renders, or potential concerns?
|
||||
|
||||
- [ ] No performance impact
|
||||
- [ ] Improved performance (explain how)
|
||||
- [ ] Potential impact (explain and justify)
|
||||
|
||||
## Additional Notes
|
||||
Anything else reviewers should know?
|
||||
|
||||
---
|
||||
|
||||
**Remember:** If this PR is not linked to an issue, it may be closed. Always reference an approved issue!
|
||||
@@ -20,89 +20,62 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Detect package manager
|
||||
id: detect-package-manager
|
||||
run: |
|
||||
echo "manager=yarn" >> $GITHUB_OUTPUT
|
||||
echo "command=install --frozen-lockfile" >> $GITHUB_OUTPUT
|
||||
echo "runner=yarn" >> $GITHUB_OUTPUT
|
||||
exit 0
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v3
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: "18"
|
||||
cache: ${{ steps.detect-package-manager.outputs.manager }}
|
||||
- name: Cache node_modules
|
||||
uses: actions/cache@v3
|
||||
node-version: "24.10.0"
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
name: Install pnpm
|
||||
with:
|
||||
path: |
|
||||
~/.npm
|
||||
~/.cache/yarn
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}
|
||||
restore-keys: ${{ runner.os }}-node-
|
||||
- name: Setup Pages
|
||||
uses: actions/configure-pages@v3
|
||||
version: 10.20.0
|
||||
run_install: false
|
||||
|
||||
- name: Get pnpm store directory
|
||||
shell: bash
|
||||
run: |
|
||||
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
|
||||
|
||||
- uses: actions/cache@v5
|
||||
name: Setup pnpm cache
|
||||
with:
|
||||
static_site_generator: next
|
||||
- name: Restore cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
.next/cache
|
||||
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
|
||||
path: ${{ env.STORE_PATH }}
|
||||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-
|
||||
${{ runner.os }}-pnpm-store-
|
||||
|
||||
- name: Restore Turbo and Next.js cache
|
||||
uses: actions/cache@v5
|
||||
with:
|
||||
path: |
|
||||
.turbo
|
||||
apps/www/.next/cache
|
||||
key: ${{ runner.os }}-turbo-next-${{ hashFiles('pnpm-lock.yaml', 'turbo.json') }}-${{ hashFiles('apps/www/**.[jt]s', 'apps/www/**.[jt]sx', 'packages/**.[jt]s', 'packages/**.[jt]sx') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-turbo-next-${{ hashFiles('pnpm-lock.yaml', 'turbo.json') }}-
|
||||
|
||||
- name: Install dependencies
|
||||
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
|
||||
- name: Build with Next.js
|
||||
run: ${{ steps.detect-package-manager.outputs.runner }} next build
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Build with Turborepo
|
||||
run: pnpm run build:www
|
||||
env:
|
||||
NEXT_PUBLIC_GA_MEASUREMENT_ID: ${{ vars.NEXT_PUBLIC_GA_MEASUREMENT_ID }}
|
||||
|
||||
- name: Upload Build Artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
uses: actions/upload-artifact@v6
|
||||
with:
|
||||
name: build-files
|
||||
path: ./out/_next/static/chunks
|
||||
path: ./apps/www/out/_next/static/chunks
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v1
|
||||
uses: actions/upload-pages-artifact@v4
|
||||
with:
|
||||
path: './out'
|
||||
|
||||
|
||||
# Sentry job
|
||||
sentry:
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
||||
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
|
||||
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
|
||||
SENTRY_RELEASE: ${{ github.sha }}
|
||||
SENTRY_SOURCEMAP_PATH: "./"
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: build-files
|
||||
- name: Download sentry-cli
|
||||
run: curl -sL https://sentry.io/get-cli/ | SENTRY_CLI_VERSION="2.20.0" sh
|
||||
- name: Create Release
|
||||
run: sentry-cli releases new $SENTRY_RELEASE
|
||||
- name: Inject Debug IDs to source files
|
||||
run: sentry-cli sourcemaps inject $SENTRY_SOURCEMAP_PATH
|
||||
- name: Upload Source Files
|
||||
run: sentry-cli sourcemaps upload --validate -r=$SENTRY_RELEASE $SENTRY_SOURCEMAP_PATH
|
||||
- name: Set Release Commits
|
||||
run: sentry-cli releases set-commits $SENTRY_RELEASE --auto
|
||||
- name: Deploy to Sentry
|
||||
run: sentry-cli releases deploys $SENTRY_RELEASE new -e production
|
||||
- name: Finalize Sentry Release
|
||||
run: sentry-cli releases finalize $SENTRY_RELEASE
|
||||
|
||||
path: './apps/www/out'
|
||||
|
||||
# Deployment job
|
||||
deploy:
|
||||
@@ -114,5 +87,4 @@ jobs:
|
||||
steps:
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v1
|
||||
|
||||
uses: actions/deploy-pages@v4
|
||||
@@ -5,20 +5,54 @@ on:
|
||||
branches: [ "main" ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
cache-and-install:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [18.x]
|
||||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: 'yarn'
|
||||
- run: yarn install
|
||||
- run: yarn lint
|
||||
- run: yarn build
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: "24.10.0"
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
name: Install pnpm
|
||||
with:
|
||||
version: 10.20.0
|
||||
run_install: false
|
||||
|
||||
- name: Get pnpm store directory
|
||||
shell: bash
|
||||
run: |
|
||||
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
|
||||
|
||||
- uses: actions/cache@v5
|
||||
name: Setup pnpm cache
|
||||
with:
|
||||
path: ${{ env.STORE_PATH }}
|
||||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pnpm-store-
|
||||
|
||||
- name: Restore Turbo and Next.js cache
|
||||
uses: actions/cache@v5
|
||||
with:
|
||||
path: |
|
||||
.turbo
|
||||
apps/www/.next/cache
|
||||
key: ${{ runner.os }}-turbo-next-${{ hashFiles('pnpm-lock.yaml', 'turbo.json') }}-${{ hashFiles('apps/www/**.[jt]s', 'apps/www/**.[jt]sx', 'packages/**.[jt]s', 'packages/**.[jt]sx') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-turbo-next-${{ hashFiles('pnpm-lock.yaml', 'turbo.json') }}-
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Lint
|
||||
run: pnpm turbo run lint
|
||||
|
||||
- name: Build
|
||||
run: pnpm turbo run build
|
||||
|
||||
|
||||
@@ -1,46 +1,27 @@
|
||||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
||||
# Agent tooling
|
||||
.agents
|
||||
.claude
|
||||
.codex
|
||||
skills-lock.json
|
||||
|
||||
# dependencies
|
||||
/node_modules
|
||||
/.pnp
|
||||
.pnp.js
|
||||
|
||||
# testing
|
||||
/coverage
|
||||
|
||||
# next.js
|
||||
/.next/
|
||||
/out/
|
||||
|
||||
# production
|
||||
/build
|
||||
|
||||
# misc
|
||||
.DS_Store
|
||||
*.pem
|
||||
|
||||
# debug
|
||||
# Package manager
|
||||
node_modules/
|
||||
.npm-cache/
|
||||
.pnpm-store/
|
||||
.pnp*
|
||||
npm-debug.log*
|
||||
pnpm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
|
||||
# local env files
|
||||
.env.local
|
||||
.env.development.local
|
||||
.env.test.local
|
||||
.env.production.local
|
||||
# Turborepo
|
||||
.turbo/
|
||||
|
||||
# vercel
|
||||
.vercel
|
||||
# Build outputs and caches (all workspaces)
|
||||
**/.next/
|
||||
**/out/
|
||||
**/coverage/
|
||||
**/*.tsbuildinfo
|
||||
|
||||
# typescript
|
||||
*.tsbuildinfo
|
||||
|
||||
# PWA workers
|
||||
**/public/workbox-*.js
|
||||
**/public/sw.js
|
||||
**/public/fallback-*.js
|
||||
# Sentry Auth Token
|
||||
.sentryclirc
|
||||
|
||||
/src/migration
|
||||
# OS
|
||||
.DS_Store
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Run VSCode Extension",
|
||||
"type": "extensionHost",
|
||||
"request": "launch",
|
||||
"args": ["--extensionDevelopmentPath=${workspaceFolder}/apps/vscode"],
|
||||
"outFiles": ["${workspaceFolder}/apps/vscode/build/**/*.js"],
|
||||
"preLaunchTask": "build vscode extension"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "build vscode extension",
|
||||
"type": "shell",
|
||||
"command": "pnpm run build:vscode",
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "watch vscode extension",
|
||||
"type": "shell",
|
||||
"command": "pnpm run dev:vscode",
|
||||
"isBackground": true
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,62 +1,129 @@
|
||||
# Welcome to the JSON Crack Contributing Guide <!-- omit in toc -->
|
||||
# Contributing to JSON Crack
|
||||
|
||||
Thank you for investing your time in contributing to our project! Any contribution you make will be reflected at [jsoncrack.com](https://jsoncrack.com).
|
||||
Thank you for wanting to contribute! This is a community-driven project, and we appreciate your help. Please read this guide carefully to make the review process smooth and fast.
|
||||
|
||||
Read our [Code of Conduct](./CODE_OF_CONDUCT.md) to keep our community approachable and respectable.
|
||||
**Read our [Code of Conduct](./CODE_OF_CONDUCT.md) first** — we want to keep this community friendly and welcoming.
|
||||
|
||||
In this guide you will get an overview of the contribution workflow from opening an issue, creating a PR, reviewing, and merging the PR.
|
||||
---
|
||||
|
||||
## Getting Started
|
||||
JSON Crack is built with React, Reaflow for visualization, Mantine UI for components, Zustand for state management, and Supabase for backend integration. If you are not familiar with these technologies, we recommend you to read their documentation to get started. You can find the links to the respective documentations below:
|
||||
## Before You Start: The Issue-First Workflow
|
||||
|
||||
* [React](https://reactjs.org/docs/getting-started.html)
|
||||
* [Reaflow](https://github.com/reaviz/reaflow)
|
||||
* [Mantine UI](https://mantine.dev/)
|
||||
* [Zustand](https://github.com/pmndrs/zustand)
|
||||
**Always open or find an issue BEFORE you start coding.** This saves everyone time.
|
||||
|
||||
Once you are familiar with these technologies, you can clone the JSON Crack repository by running the following command:
|
||||
1. **Check existing issues** — Search to see if someone already reported this or is working on it
|
||||
2. **Open a new issue** if one doesn't exist — Describe what you want to fix or build
|
||||
3. **Wait for approval** — I'll review and give feedback (usually within a few days)
|
||||
4. **Once approved**, you can start coding
|
||||
5. **Link your PR to the issue** — Use `Closes #123` in your PR description
|
||||
|
||||
This workflow prevents duplicate work and ensures your contribution aligns with the project's direction.
|
||||
|
||||
---
|
||||
|
||||
## Quick Setup
|
||||
|
||||
### Prerequisites
|
||||
- Node.js 18+
|
||||
- pnpm (or npm/yarn)
|
||||
|
||||
### Tech Stack
|
||||
JSON Crack uses:
|
||||
- **React** — UI library
|
||||
- **Reaflow** — Graph visualization
|
||||
- **Mantine UI** — UI components
|
||||
- **Zustand** — State management
|
||||
|
||||
### Get Started
|
||||
```bash
|
||||
# Clone the repo
|
||||
git clone https://github.com/AykutSarac/jsoncrack.com.git
|
||||
cd jsoncrack.com
|
||||
|
||||
# Install dependencies
|
||||
pnpm install
|
||||
|
||||
# Run the dev server
|
||||
pnpm dev
|
||||
```
|
||||
|
||||
After cloning the repository, you can install the required dependencies by running the following command:
|
||||
The app will be available at `http://localhost:3000`
|
||||
|
||||
---
|
||||
|
||||
## How to Submit a Pull Request
|
||||
|
||||
### Requirements
|
||||
Before submitting, make sure your PR includes:
|
||||
|
||||
1. **Issue ID** — Reference the issue: `Closes #123`
|
||||
2. **Clear description** — What does this change do? Why?
|
||||
3. **Evidence of working changes** — One or both:
|
||||
- **Screenshot** — Show the UI before/after
|
||||
- **Video** — Screen recording of the feature in action
|
||||
4. **Test it locally** — Run `pnpm dev` and verify it works
|
||||
5. **Follow code style** — Use [Google TypeScript Style Guide](https://google.github.io/styleguide/tsguide.html)
|
||||
|
||||
### Creating Your Branch
|
||||
```bash
|
||||
yarn install
|
||||
git checkout -b fix/issue-123-description
|
||||
# or
|
||||
git checkout -b feature/issue-123-description
|
||||
```
|
||||
|
||||
To run the development server, you can run the following command:
|
||||
Use clear branch names that reference the issue.
|
||||
|
||||
```bash
|
||||
yarn dev
|
||||
---
|
||||
|
||||
## Guidelines
|
||||
|
||||
### Performance First
|
||||
- Avoid unnecessary re-renders
|
||||
- Use React DevTools Profiler to check performance
|
||||
- Test with large JSON files to ensure no slowdowns
|
||||
|
||||
### Code Quality
|
||||
- Follow the [Google TypeScript Style Guide](https://google.github.io/styleguide/tsguide.html)
|
||||
- Write descriptive commit messages
|
||||
- Keep changes focused — one feature/fix per PR
|
||||
|
||||
### Testing
|
||||
- Manually test your changes thoroughly
|
||||
- Describe exactly how you tested it in the PR
|
||||
- Make sure existing features still work
|
||||
|
||||
---
|
||||
|
||||
## Example PR
|
||||
|
||||
Here's what a good PR looks like:
|
||||
|
||||
**Title:** Add JSON validation tooltip on parse error
|
||||
|
||||
**Description:**
|
||||
```
|
||||
Closes #234
|
||||
|
||||
## What Changed
|
||||
Added a helpful tooltip that shows validation errors when JSON fails to parse, making it easier for users to fix their JSON.
|
||||
|
||||
## How to Test
|
||||
1. Paste invalid JSON: `{invalid`
|
||||
2. Look for the red error indicator
|
||||
3. Hover over it to see the detailed error message
|
||||
|
||||
## Evidence
|
||||
- [Screenshot of tooltip](link-to-image)
|
||||
|
||||
## Performance Notes
|
||||
No performance impact. Tooltip renders conditionally only on errors.
|
||||
```
|
||||
|
||||
## Contributing Guidelines
|
||||
Before submitting a pull request, please make sure to follow these guidelines:
|
||||
---
|
||||
|
||||
### 1. Performance
|
||||
Performance is an important criteria for JSON Crack. Any new contributions should not affect the re-rendering of the application. Therefore, when making changes to the code, please keep performance in mind.
|
||||
## Questions?
|
||||
|
||||
If you're having trouble with re-rendering issues in React, you can use the React Devtools Profiler to debug it. You can also check out this up-to-date guide on debugging re-renders with React Devtools to learn more.
|
||||
- Found a bug? Open an issue
|
||||
- Have an idea? Open an issue
|
||||
- Confused about something? Comment on the issue
|
||||
|
||||
### 2. Code Style
|
||||
We follow the [Google TypeScript Style Guide](https://google.github.io/styleguide/tsguide.html) for our code. Please make sure to follow this guide when writing new code or modifying existing code.
|
||||
|
||||
### 3. Testing
|
||||
While we do not currently have a comprehensive testing suite in place, we encourage contributors to thoroughly test their changes and ensure that they do not break any existing functionality. Please include a description of how you tested your changes in your pull request, so that we can review them more effectively.
|
||||
|
||||
### 4. Commit Messages
|
||||
Please use descriptive commit messages that explain the changes you have made. This will help us understand your changes and make it easier to review your pull request.
|
||||
|
||||
### 5. Pull Requests
|
||||
Please create a new branch for your changes and submit a pull request to the main branch. Please provide a detailed explanation of the changes you have made and any necessary context in the pull request description.
|
||||
|
||||
## Conclusion
|
||||
We appreciate any contributions to JSON Crack, big or small. If you have any questions or need any help, please do not hesitate to reach out to us. Thank you for contributing!
|
||||
|
||||
### Your PR is merged!
|
||||
|
||||
Congratulations :tada::tada: The JSON Crack team thanks you :sparkles:.
|
||||
|
||||
Once your PR is merged, your contributions will become part of the next JSON Crack release, and will be visible in the [JSON Crack app](https://jsoncrack.com).
|
||||
Thank you for contributing to JSON Crack! 🎉
|
||||
@@ -1,16 +0,0 @@
|
||||
# Builder
|
||||
FROM node:18-alpine as builder
|
||||
WORKDIR /src
|
||||
|
||||
# Cache dependencies first
|
||||
COPY package.json yarn.lock ./
|
||||
RUN yarn install --frozen-lockfile
|
||||
|
||||
# Copy other files and build
|
||||
COPY . /src/
|
||||
RUN yarn build
|
||||
|
||||
# App
|
||||
FROM nginxinc/nginx-unprivileged
|
||||
COPY --chown=nginx:nginx --from=builder /src/out /app
|
||||
COPY default.conf /etc/nginx/conf.d/default.conf
|
||||
@@ -1,674 +0,0 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
JSON Crack
|
||||
Copyright (C) 2023 Aykut Saraç
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
JSON Crack Copyright (C) 2023 Aykut Saraç
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU GPL, see
|
||||
<https://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
||||
@@ -0,0 +1,201 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright 2025 Aykut Saraç
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
@@ -1,92 +1,184 @@
|
||||
<a href="https://jsoncrack.com/" target="_blank" rel="noopener">
|
||||
<img alt="JSON Crack" w src="https://user-images.githubusercontent.com/47941171/236689277-0fa9e50a-3106-4854-a2d4-bb5722f16d48.png" />
|
||||
</a>
|
||||
<!-- PROJECT LOGO -->
|
||||
<p align="center">
|
||||
<a href="https://github.com/AykutSarac/jsoncrack.com">
|
||||
<img src="./apps/www/public/assets/192.png" height="50" alt="Logo">
|
||||
</a>
|
||||
|
||||
<h1 align="center">JSON Crack</h1>
|
||||
|
||||
<h4 align="center">
|
||||
<a href="https://jsoncrack.com">JSON Crack</a> |
|
||||
<a href="https://marketplace.visualstudio.com/items?itemName=AykutSarac.jsoncrack-vscode">VS Code Extension</a> |
|
||||
<a href="https://jsoncrack.com/docs">Documentation</a>
|
||||
</h4>
|
||||
|
||||
<div align="center">
|
||||
<h2>
|
||||
An innovative, open source data visualization app.
|
||||
<p align="center">
|
||||
The open-source JSON Editor.
|
||||
<br />
|
||||
Brings data to life through captivating graphs.
|
||||
</h2>
|
||||
</div>
|
||||
|
||||
<br />
|
||||
<p align="center">
|
||||
<a href="https://www.producthunt.com/posts/json-crack?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-json-crack" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=332281&theme=light" alt="JSON Crack - Simple visualization tool for your JSON data. | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" /></a>
|
||||
<a href="https://discord.gg/yVyTtCRueq" target="_blank"><img src="https://user-images.githubusercontent.com/47941171/206397224-94da03a4-59d0-48cd-aafc-512624a768d6.png" "style=" height: 54px;" height="54" /></a>
|
||||
</br>
|
||||
<a href="https://github.com/sponsors/AykutSarac" target="_blank"><img src="https://user-images.githubusercontent.com/47941171/206397875-a4e73f02-5d8f-4db0-902b-9a4bc2b22d90.png" "style=" height: 54px;" height="54" /></a>
|
||||
<a href="https://jsoncrack.com"><strong>Learn more »</strong></a>
|
||||
<br />
|
||||
<br />
|
||||
<a href="https://todiagram.com?utm_source=jsoncrack&utm_medium=readme_header">ToDiagram</a>
|
||||
·
|
||||
<a href="https://discord.gg/yVyTtCRueq">Discord</a>
|
||||
·
|
||||
<a href="https://jsoncrack.com">Website</a>
|
||||
·
|
||||
<a href="https://github.com/AykutSarac/jsoncrack.com/issues">Issues</a>
|
||||
·
|
||||
<a href="https://marketplace.visualstudio.com/items?itemName=AykutSarac.jsoncrack-vscode">VS Code</a>
|
||||
·
|
||||
<a href="https://chromewebstore.google.com/detail/hbaeglefdflnhodchjiaphmheaojikhh">Chrome</a>
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<img src="./public/assets/jsoncrack-screenshot.webp" alt="Product Preview" />
|
||||
</p>
|
||||
|
||||
# JSON Crack (jsoncrack.com)
|
||||
<!-- ABOUT THE PROJECT -->
|
||||
|
||||
JSON Crack is a free, open-source data visualization app capable of visualizing data formats such as JSON, YAML, XML, CSV and more, into interactive graphs. With its intuitive and user-friendly interface, JSON Crack makes it easy to explore, analyze, and understand even the most complex data structures. Whether you're a developer working on a large-scale project or a data enthusiast looking to uncover hidden insights, JSON Crack has the tools and features you need to unlock the full potential of your data.
|
||||
## About the Project
|
||||
|
||||
## Features
|
||||
- 💯 Free & open-source.
|
||||
- 🌓 Dark mode.
|
||||
- 🖼️ Export to PNG, SVG, JPEG & clipboard.
|
||||
- 🔍 Zoom and panning support with touch gestures.
|
||||
- 🛠 Wide range of tools - search, json path, node contents, expand/toggle, auto format...
|
||||
- 🔗 Share/Import/Fetch
|
||||
- 🧱 Embeddable iframe widgets.
|
||||
<img width="100%" alt="JSON Crack editor" src="./apps/www/public/assets/editor.webp">
|
||||
|
||||
## Visualize JSON into interactive graphs
|
||||
|
||||
JSON Crack is a tool for visualizing JSON data in a structured, interactive graphs, making it easier to explore, format, and validate JSON. It offers features like converting JSON to other formats (CSV, YAML), generating JSON Schema, executing queries, and exporting visualizations as images. Designed for both readability and usability.
|
||||
|
||||
* **Visualizer**: Instantly convert JSON, YAML, CSV, and XML into interactive graphs or trees in dark or light mode.
|
||||
* **Convert**: Seamlessly transform data formats, like JSON to CSV or XML to JSON, for easy sharing.
|
||||
* **Format & Validate**: Beautify and validate JSON, YAML, and CSV for clear and accurate data.
|
||||
* **Code Generation**: Generate TypeScript interfaces, Golang structs, Kotlin data classes, Rust serde types, and JSON Schema.
|
||||
* **JSON Schema**: Create and validate JSON Schema.
|
||||
* **Advanced Tools**: Run jq and JSON path queries.
|
||||
* **Export Image**: Download your visualization as PNG, JPEG, or SVG.
|
||||
* **Privacy**: All data processing is local; nothing is stored on our servers.
|
||||
|
||||
## Recognition
|
||||
|
||||
<a href="https://news.ycombinator.com/item?id=32626873">
|
||||
<img
|
||||
style="width: 250px; height: 54px;" width="250" height="54"
|
||||
alt="Featured on Hacker News"
|
||||
src="https://hackernews-badge.vercel.app/api?id=32626873"
|
||||
/>
|
||||
</a>
|
||||
|
||||
<a href="https://producthunt.com/posts/JSON-Crack?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-jsoncrack" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=332281&theme=light" alt="JSON Crack | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" /></a>
|
||||
|
||||
## Integrations
|
||||
|
||||
- [VS Code Extension](https://marketplace.visualstudio.com/items?itemName=AykutSarac.jsoncrack-vscode)
|
||||
- [Chrome Extension](https://chromewebstore.google.com/detail/hbaeglefdflnhodchjiaphmheaojikhh)
|
||||
- [npm Package (`jsoncrack-react`)](https://www.npmjs.com/package/jsoncrack-react)
|
||||
|
||||
## Contributing
|
||||
|
||||
- Missing something or found a bug? [Report here](https://github.com/AykutSarac/jsoncrack.com/issues).
|
||||
- Want to contribute? Check out our [contribution guide](https://github.com/AykutSarac/jsoncrack.com/blob/main/CONTRIBUTING.md) or let us know on [Discord](https://discord.gg/yVyTtCRueq).
|
||||
- Found a bug or missing feature? Open an issue on [GitHub Issues](https://github.com/AykutSarac/jsoncrack.com/issues).
|
||||
- Want to contribute code or docs? Start with our [contribution guide](./CONTRIBUTING.md).
|
||||
|
||||
## Sponsors & support
|
||||
## Sponsors & Support
|
||||
|
||||
If you like the project, you can become a sponsor at [GitHub Sponsors](https://github.com/sponsors/AykutSarac) or use [Premium](https://jsoncrack.com/pricing).
|
||||
If you find JSON Crack useful, you can support the project by using [ToDiagram](https://todiagram.com?utm_source=jsoncrack&utm_medium=readme_sponsors). For sponsorship inquiries, reach out at contact@todiagram.com.
|
||||
|
||||
## Running Locally
|
||||
|
||||
### Local
|
||||
## Stay Up-to-Date
|
||||
|
||||
After cloning the repository, run the following commands:
|
||||
```console
|
||||
# Install the packages
|
||||
yarn install
|
||||
JSON Crack officially launched as v1.0 on the 17th of February 2022 and we've come a long way so far. Watch **releases** of this repository to be notified of future updates:
|
||||
|
||||
# Start development server
|
||||
# Then the development server will run at http://localhost:3000
|
||||
yarn dev
|
||||
<a href="https://github.com/AykutSarac/jsoncrack.com"><img src="https://img.shields.io/github/stars/AykutSarac/jsoncrack.com" alt="Star at GitHub" /></a>
|
||||
|
||||
<!-- GETTING STARTED -->
|
||||
|
||||
## Getting Started
|
||||
|
||||
To get a local copy up and running, please follow these simple steps.
|
||||
|
||||
### Prerequisites
|
||||
|
||||
Here is what you need to be able to run JSON Crack.
|
||||
|
||||
- Node.js (Version: >=24.x)
|
||||
- pnpm (Version: >=10)
|
||||
|
||||
|
||||
## Development
|
||||
|
||||
### Setup
|
||||
|
||||
1. Clone the repo into a public GitHub repository (or fork https://github.com/AykutSarac/jsoncrack.com/fork). If you plan to distribute the code, read the [`LICENSE`](/LICENSE.md) for additional details.
|
||||
|
||||
```sh
|
||||
git clone https://github.com/AykutSarac/jsoncrack.com.git
|
||||
```
|
||||
|
||||
2. Go to the project folder
|
||||
|
||||
```sh
|
||||
cd jsoncrack.com
|
||||
```
|
||||
|
||||
3. Install packages
|
||||
|
||||
```sh
|
||||
pnpm install
|
||||
```
|
||||
|
||||
4. Run the web app
|
||||
|
||||
```sh
|
||||
pnpm dev:www
|
||||
|
||||
# Running on http://localhost:3000/
|
||||
```
|
||||
|
||||
### Useful Commands
|
||||
|
||||
From repository root:
|
||||
|
||||
```sh
|
||||
# Web app
|
||||
pnpm dev:www
|
||||
pnpm build:www
|
||||
|
||||
# VS Code extension
|
||||
pnpm dev:vscode
|
||||
pnpm build:vscode
|
||||
pnpm lint:vscode
|
||||
pnpm lint:fix:vscode
|
||||
|
||||
# Chrome extension
|
||||
pnpm dev:chrome
|
||||
pnpm build:chrome
|
||||
pnpm lint:chrome
|
||||
|
||||
# All workspaces
|
||||
pnpm dev
|
||||
pnpm build
|
||||
pnpm lint
|
||||
```
|
||||
|
||||
### Debug VS Code Extension
|
||||
|
||||
1. Open repository root in VS Code.
|
||||
2. Press `F5`.
|
||||
3. Select `Run VSCode Extension (apps/vscode)` when prompted.
|
||||
4. In the Extension Development Host window, open a `.json` file and run:
|
||||
`JSON Crack: Enable JSON Crack visualization`.
|
||||
|
||||
### Docker
|
||||
|
||||
🐳 A [`Dockerfile`](Dockerfile) is provided in the root of the repository.
|
||||
🐳 Docker assets are in `apps/www`.
|
||||
If you want to run JSON Crack locally:
|
||||
|
||||
```console
|
||||
cd apps/www
|
||||
|
||||
# Build a Docker image with:
|
||||
docker build -t jsoncrack .
|
||||
docker compose build
|
||||
|
||||
# Run locally with `docker run`
|
||||
docker run -p 8888:8080 jsoncrack
|
||||
|
||||
# Run locally with `docker-compose`
|
||||
docker-compose up -d
|
||||
# Run locally with docker compose
|
||||
docker compose up
|
||||
|
||||
# Go to http://localhost:8888
|
||||
```
|
||||
|
||||
## Thank you for supporting JSON Crack
|
||||
## Configuration
|
||||
|
||||
Last but not least, we're thankful to these companies for offering their services for free:
|
||||
The supported node limit can be changed by editing `NEXT_PUBLIC_NODE_LIMIT` in `apps/www/.env`.
|
||||
|
||||
<a href="https://sentry.io">
|
||||
<img height="30" src="https://user-images.githubusercontent.com/47941171/236691121-717c7975-809f-4508-b58e-5ada2f7e8c7c.png" alt="Sentry" />
|
||||
</a>
|
||||
<!-- LICENSE -->
|
||||
|
||||
## License
|
||||
|
||||
See [`LICENSE`](/LICENSE.md) for more information.
|
||||
@@ -0,0 +1,2 @@
|
||||
dist
|
||||
*.zip
|
||||
@@ -0,0 +1,52 @@
|
||||
# Privacy Policy for JSON Crack Chrome Extension
|
||||
|
||||
**Effective Date:** April 10, 2026
|
||||
|
||||
This Privacy Policy describes how the JSON Crack Chrome Extension (the "Extension") handles information.
|
||||
|
||||
## 1. Scope
|
||||
|
||||
This policy applies to the Chrome Extension published from this project.
|
||||
|
||||
## 2. Information Processed by the Extension
|
||||
|
||||
When active on a page, the Extension may:
|
||||
|
||||
- Read page text to determine whether the page contains JSON.
|
||||
- Parse and render JSON content locally in the tab to provide graph visualization.
|
||||
- Read system light/dark preference to set visual theme.
|
||||
- Write to clipboard only when you click a copy button in the node modal.
|
||||
|
||||
## 3. Data Collection, Storage, and Sharing
|
||||
|
||||
As of the effective date above, the Extension is designed to minimize data handling:
|
||||
|
||||
- No account or sign-in is required.
|
||||
- No analytics or telemetry SDK is included in the Extension source.
|
||||
- No persistent storage is used for page JSON data (including `localStorage`, `sessionStorage`, `indexedDB`, or Chrome extension storage).
|
||||
- Page JSON content is not automatically transmitted to JSON Crack servers.
|
||||
- We do not sell personal information through the Extension.
|
||||
|
||||
## 4. External Links
|
||||
|
||||
The Extension does not send page JSON data to our servers.
|
||||
|
||||
The Extension can also open external URLs only when you click a link (for example attribution, upgrade links, or URL values in graph nodes). Any external site you open is governed by that site's own terms and privacy policy.
|
||||
|
||||
## 5. Permissions
|
||||
|
||||
The Extension uses a broad content-script match pattern (`<all_urls>`) so it can detect JSON pages across domains. As of April 10, 2026, the manifest does not request additional explicit Chrome API permissions.
|
||||
|
||||
## 6. Retention
|
||||
|
||||
JSON content handled by the Extension is processed in-memory within the active page context and is not intentionally retained by the Extension after the tab/session ends.
|
||||
|
||||
## 7. Changes to This Policy
|
||||
|
||||
We may update this policy. Any update will be reflected by changing the effective date above.
|
||||
|
||||
## 8. Contact
|
||||
|
||||
For privacy questions related to the Extension, use:
|
||||
|
||||
- https://github.com/AykutSarac/jsoncrack.com/issues
|
||||
@@ -0,0 +1,38 @@
|
||||
# JSON Crack Chrome Extension
|
||||
|
||||
Chrome Extension (Manifest v3) that injects a segmented control on JSON-only pages.
|
||||
Parsed mode renders with local `jsoncrack-react` (no iframe).
|
||||
|
||||
- `Raw`: browser's default JSON response view
|
||||
- `Parsed`: JSON Crack graph view
|
||||
|
||||
## Development
|
||||
|
||||
From repository root:
|
||||
|
||||
```sh
|
||||
pnpm --filter chrome-extension dev
|
||||
```
|
||||
|
||||
This runs `vite build --watch` and updates `apps/chrome-extension/dist`.
|
||||
|
||||
## Build
|
||||
|
||||
From repository root:
|
||||
|
||||
```sh
|
||||
pnpm --filter chrome-extension build
|
||||
```
|
||||
|
||||
Then load the extension in Chrome:
|
||||
|
||||
1. Open `chrome://extensions`
|
||||
2. Enable **Developer mode**
|
||||
3. Click **Load unpacked**
|
||||
4. Select `apps/chrome-extension/dist`
|
||||
|
||||
## Usage
|
||||
|
||||
1. Open a URL that responds with raw JSON.
|
||||
2. Use the floating `Raw | Parsed` segmented control.
|
||||
3. Press `Esc` to quickly return to `Raw`.
|
||||
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"name": "chrome-extension",
|
||||
"private": true,
|
||||
"version": "0.0.0",
|
||||
"license": "Apache-2.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite build --watch",
|
||||
"build": "vite build",
|
||||
"lint": "tsc --project tsconfig.json --noEmit",
|
||||
"clean": "rm -rf dist",
|
||||
"zip": "pnpm run build && bash zip.sh"
|
||||
},
|
||||
"dependencies": {
|
||||
"jsoncrack-react": "workspace:*",
|
||||
"react": "catalog:",
|
||||
"react-dom": "catalog:"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/react": "catalog:",
|
||||
"@types/react-dom": "catalog:",
|
||||
"typescript": "5.9.3",
|
||||
"vite": "^8.2.1"
|
||||
},
|
||||
"packageManager": "pnpm@10.20.0"
|
||||
}
|
||||
|
After Width: | Height: | Size: 7.7 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
@@ -0,0 +1,17 @@
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 600 600"
|
||||
width="1.8em"
|
||||
height="1.8em"
|
||||
version="1.0"
|
||||
>
|
||||
<defs>
|
||||
<linearGradient id="td-g" x1="1" y1="0.5" x2="0" y2="0.5">
|
||||
<stop offset="0" stop-color="#FFDE59"/>
|
||||
<stop offset="1" stop-color="#FF66C4"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<path fill="url(#td-g)" d="M87.3 290.8h187a10.8 10.8 0 0 1 10.3 14.2l-62.8 188.6a20.8 20.8 0 0 1-19.8 14.2H15a10.8 10.8 0 0 1-10.3-14.2l62.8-188.6a20.8 20.8 0 0 1 19.8-14.2z"/>
|
||||
<path fill="url(#td-g)" d="M363.1 290.8h187a10.8 10.8 0 0 1 10.3 14.2l-62.8 188.6a20.8 20.8 0 0 1-19.8 14.2H290.8a10.8 10.8 0 0 1-10.3-14.2l62.8-188.6a20.8 20.8 0 0 1 19.8-14.2z"/>
|
||||
<path fill="url(#td-g)" d="M111.7 92.2h401a36.7 36.7 0 0 1 25.7 10.5l50.9 49.9a14.7 14.7 0 0 1 0 21l-50.9 49.9a36.7 36.7 0 0 1-25.7 10.5H111.7a6.1 6.1 0 0 1-4.3-10.5l50.9-49.9a14.7 14.7 0 0 0 0-21l-50.9-49.9a6.1 6.1 0 0 1 4.3-10.5z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 919 B |
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"manifest_version": 3,
|
||||
"name": "JSON Crack",
|
||||
"short_name": "JSON Crack",
|
||||
"description": "Visualize JSON pages as an interactive graph. Toggle between raw text and an auto-generated diagram.",
|
||||
"version": "0.1.2",
|
||||
"author": "Aykut Saraç",
|
||||
"homepage_url": "https://jsoncrack.com",
|
||||
"icons": {
|
||||
"16": "icons/icon-16.png",
|
||||
"32": "icons/icon-32.png",
|
||||
"48": "icons/icon-48.png",
|
||||
"128": "icons/icon-128.png"
|
||||
},
|
||||
"action": {
|
||||
"default_title": "JSON Crack",
|
||||
"default_icon": {
|
||||
"16": "icons/icon-16.png",
|
||||
"32": "icons/icon-32.png",
|
||||
"48": "icons/icon-48.png",
|
||||
"128": "icons/icon-128.png"
|
||||
}
|
||||
},
|
||||
"content_scripts": [
|
||||
{
|
||||
"matches": ["<all_urls>"],
|
||||
"js": ["content-script.js"],
|
||||
"run_at": "document_idle"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,307 @@
|
||||
#jsoncrack-toggle,
|
||||
#jsoncrack-graph-overlay,
|
||||
#jsoncrack-node-modal-backdrop {
|
||||
--jsoncrack-font:
|
||||
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
||||
--jsoncrack-font-mono:
|
||||
ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
|
||||
monospace;
|
||||
}
|
||||
|
||||
#jsoncrack-toggle {
|
||||
position: fixed;
|
||||
top: 12px;
|
||||
right: 12px;
|
||||
z-index: 2147483647;
|
||||
font-family: var(--jsoncrack-font);
|
||||
}
|
||||
|
||||
#jsoncrack-toggle .jsoncrack-segmented {
|
||||
display: inline-flex;
|
||||
border: 1px solid #a8a8a8;
|
||||
border-radius: 6px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
#jsoncrack-toggle .jsoncrack-toggle-btn {
|
||||
border: 0;
|
||||
border-right: 1px solid #b4b4b4;
|
||||
background: linear-gradient(180deg, #f2f2f2 0%, #dadada 100%);
|
||||
color: #383838;
|
||||
height: 30px;
|
||||
padding: 0 12px;
|
||||
font-size: 13px;
|
||||
line-height: 1;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
-webkit-user-select: none;
|
||||
}
|
||||
|
||||
#jsoncrack-toggle .jsoncrack-toggle-btn:last-child {
|
||||
border-right: 0;
|
||||
}
|
||||
|
||||
#jsoncrack-toggle .jsoncrack-toggle-btn.is-active {
|
||||
background: linear-gradient(180deg, #dcdcdc 0%, #c6c6c6 100%);
|
||||
color: #232323;
|
||||
}
|
||||
|
||||
#jsoncrack-graph-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 2147483646;
|
||||
background: #ffffff;
|
||||
font-family: var(--jsoncrack-font);
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
#jsoncrack-graph-overlay {
|
||||
background: #0b0f17;
|
||||
}
|
||||
}
|
||||
|
||||
#jsoncrack-graph-overlay[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
#jsoncrack-attribution {
|
||||
position: fixed;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
z-index: 2147483647;
|
||||
padding: 8px 16px;
|
||||
background: #0b0f17;
|
||||
color: #ffffff;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
text-decoration: none;
|
||||
font-family: var(--jsoncrack-font);
|
||||
}
|
||||
|
||||
#jsoncrack-attribution:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
#jsoncrack-upgrade-overlay {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: 40;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 16px;
|
||||
background: rgba(17, 17, 17, 0.6);
|
||||
backdrop-filter: blur(3px);
|
||||
-webkit-backdrop-filter: blur(3px);
|
||||
font-family: var(--jsoncrack-font);
|
||||
}
|
||||
|
||||
#jsoncrack-upgrade-card {
|
||||
position: relative;
|
||||
width: 90%;
|
||||
max-width: 460px;
|
||||
padding: 40px 48px;
|
||||
border-radius: 16px;
|
||||
background: rgba(37, 38, 43, 0.97);
|
||||
box-shadow:
|
||||
0 20px 60px rgba(0, 0, 0, 0.4),
|
||||
0 1px 3px rgba(0, 0, 0, 0.2);
|
||||
color: #f1f3f5;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
animation: jsoncrack-upgrade-fade-in 0.4s ease-out;
|
||||
}
|
||||
|
||||
@keyframes jsoncrack-upgrade-fade-in {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(12px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
.jsoncrack-upgrade-logo {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
}
|
||||
|
||||
.jsoncrack-upgrade-badge {
|
||||
display: inline-block;
|
||||
padding: 3px 10px;
|
||||
border-radius: 4px;
|
||||
background: rgba(18, 184, 134, 0.15);
|
||||
color: #0ca678;
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.02em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.jsoncrack-upgrade-title {
|
||||
margin: 0;
|
||||
color: #ffffff;
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
line-height: 1.2;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.jsoncrack-upgrade-desc {
|
||||
margin: 0;
|
||||
max-width: 360px;
|
||||
color: #adb5bd;
|
||||
font-size: 14px;
|
||||
line-height: 1.5;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.jsoncrack-upgrade-link {
|
||||
color: #20c997;
|
||||
font-weight: 500;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.jsoncrack-upgrade-link:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.jsoncrack-upgrade-cta {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
padding: 12px 16px;
|
||||
border-radius: 8px;
|
||||
background: #0ca678;
|
||||
color: #ffffff;
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
text-decoration: none;
|
||||
transition: background 120ms ease;
|
||||
}
|
||||
|
||||
.jsoncrack-upgrade-cta:hover {
|
||||
background: #099268;
|
||||
}
|
||||
|
||||
#jsoncrack-react-root {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#jsoncrack-graph-error {
|
||||
margin: 20px;
|
||||
padding: 12px 14px;
|
||||
border-radius: 8px;
|
||||
border: 1px solid #7f1d1d;
|
||||
background: rgba(220, 38, 38, 0.15);
|
||||
color: #fee2e2;
|
||||
font: 500 14px/1.4 var(--jsoncrack-font);
|
||||
}
|
||||
|
||||
#jsoncrack-graph-status {
|
||||
margin: 20px;
|
||||
padding: 12px 14px;
|
||||
border-radius: 8px;
|
||||
border: 1px solid #1e3a8a;
|
||||
background: rgba(59, 130, 246, 0.16);
|
||||
color: #dbeafe;
|
||||
font: 500 14px/1.4 var(--jsoncrack-font);
|
||||
}
|
||||
|
||||
#jsoncrack-node-modal-backdrop {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 2147483646;
|
||||
background: rgba(1, 6, 15, 0.66);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
#jsoncrack-node-modal {
|
||||
width: min(680px, calc(100vw - 32px));
|
||||
max-height: min(80vh, 760px);
|
||||
overflow: auto;
|
||||
border-radius: 12px;
|
||||
border: 1px solid #334155;
|
||||
background: #0f172a;
|
||||
color: #e2e8f0;
|
||||
box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
|
||||
font-family: var(--jsoncrack-font);
|
||||
}
|
||||
|
||||
#jsoncrack-node-modal .jsoncrack-node-modal-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 12px 14px;
|
||||
border-bottom: 1px solid #1f2937;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
#jsoncrack-node-modal .jsoncrack-node-modal-close {
|
||||
border: 1px solid #334155;
|
||||
border-radius: 6px;
|
||||
background: #111827;
|
||||
color: #cbd5e1;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
font-size: 20px;
|
||||
line-height: 1;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#jsoncrack-node-modal .jsoncrack-node-modal-close:hover {
|
||||
background: #1f2937;
|
||||
}
|
||||
|
||||
#jsoncrack-node-modal .jsoncrack-node-modal-section {
|
||||
padding: 12px 14px 14px;
|
||||
}
|
||||
|
||||
#jsoncrack-node-modal .jsoncrack-node-modal-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 8px;
|
||||
color: #bfdbfe;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
#jsoncrack-node-modal .jsoncrack-node-modal-copy {
|
||||
border: 1px solid #334155;
|
||||
border-radius: 6px;
|
||||
background: #111827;
|
||||
color: #dbeafe;
|
||||
height: 26px;
|
||||
padding: 0 10px;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#jsoncrack-node-modal .jsoncrack-node-modal-copy:hover {
|
||||
background: #1f2937;
|
||||
}
|
||||
|
||||
#jsoncrack-node-modal pre {
|
||||
margin: 0;
|
||||
padding: 10px 12px;
|
||||
border-radius: 8px;
|
||||
border: 1px solid #334155;
|
||||
background: #020617;
|
||||
color: #dbeafe;
|
||||
white-space: pre-wrap;
|
||||
overflow-wrap: anywhere;
|
||||
font: 500 12px/1.45 var(--jsoncrack-font-mono);
|
||||
}
|
||||
@@ -0,0 +1,403 @@
|
||||
import type { JSONCrackProps, NodeData } from "jsoncrack-react";
|
||||
import type { ReactNode } from "react";
|
||||
import { useEffect, useMemo, useState } from "react";
|
||||
import { createRoot } from "react-dom/client";
|
||||
import jsoncrackStyles from "jsoncrack-react/style.css?inline";
|
||||
import localStyles from "./content-script.css?inline";
|
||||
|
||||
type ThemeMode = "light" | "dark";
|
||||
type JSONCrackComponentType = (props: JSONCrackProps) => ReactNode;
|
||||
const NODE_MODAL_BACKDROP_ID = "jsoncrack-node-modal-backdrop";
|
||||
const GRAPH_OVERLAY_ID = "jsoncrack-graph-overlay";
|
||||
const TOGGLE_ID = "jsoncrack-toggle";
|
||||
|
||||
const getExtensionAssetUrl = (path: string) => {
|
||||
const runtime = (
|
||||
globalThis as {
|
||||
chrome?: { runtime?: { getURL?: (assetPath: string) => string } };
|
||||
}
|
||||
).chrome?.runtime;
|
||||
|
||||
return runtime?.getURL?.(path) ?? "";
|
||||
};
|
||||
|
||||
const TO_DIAGRAM_LOGO_URL = getExtensionAssetUrl("icons/logo.svg");
|
||||
|
||||
let jsonCrackComponentPromise: Promise<JSONCrackComponentType> | null = null;
|
||||
|
||||
const loadJsonCrackComponent = async (): Promise<JSONCrackComponentType> => {
|
||||
if (jsonCrackComponentPromise) {
|
||||
return jsonCrackComponentPromise;
|
||||
}
|
||||
|
||||
jsonCrackComponentPromise = (async () => {
|
||||
// ELK (the layout engine used by reaflow) tries to spawn a Web Worker
|
||||
// on first use. On JSON pages with a strict `default-src 'none'` CSP,
|
||||
// worker creation throws. Temporarily shadow `Worker` for the duration
|
||||
// of the import + initial layout so ELK falls back to its sync path,
|
||||
// then restore it so the host page's own workers keep working.
|
||||
const originalWorker = (globalThis as { Worker?: typeof Worker }).Worker;
|
||||
try {
|
||||
(globalThis as { Worker?: typeof Worker }).Worker = undefined;
|
||||
const mod = await import("jsoncrack-react");
|
||||
return mod.JSONCrack as JSONCrackComponentType;
|
||||
} finally {
|
||||
(globalThis as { Worker?: typeof Worker }).Worker = originalWorker;
|
||||
}
|
||||
})();
|
||||
|
||||
return jsonCrackComponentPromise;
|
||||
};
|
||||
|
||||
(() => {
|
||||
if (window.top !== window) return;
|
||||
if (!document.body) return;
|
||||
if (document.getElementById(TOGGLE_ID)) return;
|
||||
|
||||
const source = getJsonSource();
|
||||
if (!source) return;
|
||||
|
||||
injectStyles();
|
||||
injectToggle(source);
|
||||
})();
|
||||
|
||||
function injectStyles() {
|
||||
const styleTag = document.createElement("style");
|
||||
styleTag.id = "jsoncrack-inline-style";
|
||||
styleTag.textContent = `${jsoncrackStyles}\n${localStyles}`;
|
||||
document.documentElement.appendChild(styleTag);
|
||||
}
|
||||
|
||||
function getJsonSource() {
|
||||
const contentType = (document.contentType || "").toLowerCase();
|
||||
if (!contentType.includes("json")) return null;
|
||||
|
||||
const raw = (document.body.innerText || document.body.textContent || "").trim();
|
||||
if (!raw) return null;
|
||||
|
||||
try {
|
||||
JSON.parse(raw);
|
||||
return raw;
|
||||
} catch {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
function detectTheme(): ThemeMode {
|
||||
return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
||||
}
|
||||
|
||||
function useSystemTheme(): ThemeMode {
|
||||
const [theme, setTheme] = useState<ThemeMode>(detectTheme);
|
||||
|
||||
useEffect(() => {
|
||||
const media = window.matchMedia("(prefers-color-scheme: dark)");
|
||||
const handler = (event: MediaQueryListEvent) => {
|
||||
setTheme(event.matches ? "dark" : "light");
|
||||
};
|
||||
media.addEventListener("change", handler);
|
||||
return () => media.removeEventListener("change", handler);
|
||||
}, []);
|
||||
|
||||
return theme;
|
||||
}
|
||||
|
||||
function injectToggle(rawJson: string) {
|
||||
const toggleRoot = document.createElement("div");
|
||||
toggleRoot.id = TOGGLE_ID;
|
||||
toggleRoot.innerHTML = [
|
||||
'<div class="jsoncrack-segmented" role="group" aria-label="JSON view mode">',
|
||||
'<button class="jsoncrack-toggle-btn is-active" type="button" data-mode="raw" aria-pressed="true">Raw</button>',
|
||||
'<button class="jsoncrack-toggle-btn" type="button" data-mode="graph" aria-pressed="false">Graph</button>',
|
||||
"</div>",
|
||||
].join("");
|
||||
|
||||
const graphOverlay = document.createElement("div");
|
||||
graphOverlay.id = GRAPH_OVERLAY_ID;
|
||||
graphOverlay.hidden = true;
|
||||
|
||||
const reactRootContainer = document.createElement("div");
|
||||
reactRootContainer.id = "jsoncrack-react-root";
|
||||
graphOverlay.appendChild(reactRootContainer);
|
||||
|
||||
const attribution = document.createElement("a");
|
||||
attribution.id = "jsoncrack-attribution";
|
||||
attribution.href =
|
||||
"https://jsoncrack.com/editor?utm_source=jsoncrack&utm_medium=chrome_extension&utm_campaign=attribution";
|
||||
attribution.target = "_blank";
|
||||
attribution.rel = "noopener noreferrer";
|
||||
attribution.textContent = "Powered by JSON Crack";
|
||||
graphOverlay.appendChild(attribution);
|
||||
|
||||
document.body.appendChild(graphOverlay);
|
||||
document.body.appendChild(toggleRoot);
|
||||
|
||||
const rawButton = toggleRoot.querySelector<HTMLButtonElement>('[data-mode="raw"]');
|
||||
const graphButton = toggleRoot.querySelector<HTMLButtonElement>('[data-mode="graph"]');
|
||||
|
||||
if (!rawButton || !graphButton) return;
|
||||
|
||||
let graphRoot: ReturnType<typeof createRoot> | null = null;
|
||||
|
||||
const mountGraphView = () => {
|
||||
if (graphRoot) return;
|
||||
|
||||
graphRoot = createRoot(reactRootContainer);
|
||||
graphRoot.render(<GraphView rawJson={rawJson} />);
|
||||
};
|
||||
|
||||
const unmountGraphView = () => {
|
||||
if (!graphRoot) return;
|
||||
graphRoot.unmount();
|
||||
graphRoot = null;
|
||||
reactRootContainer.textContent = "";
|
||||
};
|
||||
|
||||
const setMode = (mode: "raw" | "graph") => {
|
||||
const isGraph = mode === "graph";
|
||||
|
||||
graphOverlay.hidden = !isGraph;
|
||||
rawButton.classList.toggle("is-active", !isGraph);
|
||||
graphButton.classList.toggle("is-active", isGraph);
|
||||
rawButton.setAttribute("aria-pressed", String(!isGraph));
|
||||
graphButton.setAttribute("aria-pressed", String(isGraph));
|
||||
|
||||
if (isGraph) {
|
||||
// Wait for the overlay to be laid out before mounting so the graph
|
||||
// viewport initializes with the correct container dimensions and
|
||||
// centerOnLayout fits the graph correctly.
|
||||
window.requestAnimationFrame(() => {
|
||||
if (graphOverlay.hidden) return;
|
||||
mountGraphView();
|
||||
});
|
||||
} else {
|
||||
unmountGraphView();
|
||||
}
|
||||
};
|
||||
|
||||
rawButton.addEventListener("click", () => setMode("raw"));
|
||||
graphButton.addEventListener("click", () => setMode("graph"));
|
||||
window.addEventListener(
|
||||
"keydown",
|
||||
event => {
|
||||
if (event.key !== "Escape") return;
|
||||
if (graphOverlay.hidden) return;
|
||||
if (document.getElementById(NODE_MODAL_BACKDROP_ID)) return;
|
||||
setMode("raw");
|
||||
},
|
||||
// Use capture so we beat host-page handlers that might stopPropagation.
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
const normalizeNodeData = (nodeRows: NodeData["text"]) => {
|
||||
if (!nodeRows || nodeRows.length === 0) return "{}";
|
||||
if (nodeRows.length === 1 && !nodeRows[0].key) return `${nodeRows[0].value}`;
|
||||
|
||||
const obj: Record<string, unknown> = {};
|
||||
nodeRows.forEach(row => {
|
||||
if (row.type !== "array" && row.type !== "object" && row.key) {
|
||||
obj[row.key] = row.value;
|
||||
}
|
||||
});
|
||||
|
||||
return JSON.stringify(obj, null, 2);
|
||||
};
|
||||
|
||||
const jsonPathToString = (path?: NodeData["path"]) => {
|
||||
if (!path || path.length === 0) return "$";
|
||||
const segments = path.map(seg => (typeof seg === "number" ? seg : `"${seg}"`));
|
||||
return `$[${segments.join("][")}]`;
|
||||
};
|
||||
|
||||
function NodeModal({ nodeData, onClose }: { nodeData: NodeData | null; onClose: () => void }) {
|
||||
const [copiedField, setCopiedField] = useState<"content" | "path" | null>(null);
|
||||
const nodeContent = useMemo(() => normalizeNodeData(nodeData?.text ?? []), [nodeData]);
|
||||
const jsonPath = useMemo(() => jsonPathToString(nodeData?.path), [nodeData]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!nodeData) return;
|
||||
|
||||
const onEscape = (event: KeyboardEvent) => {
|
||||
if (event.key !== "Escape") return;
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
onClose();
|
||||
};
|
||||
|
||||
window.addEventListener("keydown", onEscape, true);
|
||||
return () => {
|
||||
window.removeEventListener("keydown", onEscape, true);
|
||||
};
|
||||
}, [nodeData, onClose]);
|
||||
|
||||
if (!nodeData) return null;
|
||||
|
||||
const handleCopy = async (field: "content" | "path", text: string) => {
|
||||
try {
|
||||
await navigator.clipboard.writeText(text);
|
||||
setCopiedField(field);
|
||||
window.setTimeout(() => {
|
||||
setCopiedField(current => (current === field ? null : current));
|
||||
}, 1200);
|
||||
} catch {
|
||||
setCopiedField(null);
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<div id={NODE_MODAL_BACKDROP_ID} onClick={onClose}>
|
||||
<div
|
||||
id="jsoncrack-node-modal"
|
||||
role="dialog"
|
||||
aria-modal="true"
|
||||
onClick={event => event.stopPropagation()}
|
||||
>
|
||||
<div className="jsoncrack-node-modal-header">
|
||||
<strong>Node Content</strong>
|
||||
<button
|
||||
type="button"
|
||||
className="jsoncrack-node-modal-close"
|
||||
onClick={onClose}
|
||||
aria-label="Close modal"
|
||||
>
|
||||
×
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div className="jsoncrack-node-modal-section">
|
||||
<div className="jsoncrack-node-modal-row">
|
||||
<span>Content</span>
|
||||
<button
|
||||
type="button"
|
||||
className="jsoncrack-node-modal-copy"
|
||||
onClick={() => handleCopy("content", nodeContent)}
|
||||
>
|
||||
{copiedField === "content" ? "Copied" : "Copy"}
|
||||
</button>
|
||||
</div>
|
||||
<pre>{nodeContent}</pre>
|
||||
</div>
|
||||
|
||||
<div className="jsoncrack-node-modal-section">
|
||||
<div className="jsoncrack-node-modal-row">
|
||||
<span>JSON Path</span>
|
||||
<button
|
||||
type="button"
|
||||
className="jsoncrack-node-modal-copy"
|
||||
onClick={() => handleCopy("path", jsonPath)}
|
||||
>
|
||||
{copiedField === "path" ? "Copied" : "Copy"}
|
||||
</button>
|
||||
</div>
|
||||
<pre>{jsonPath}</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
// NOTE: `rawJson` is captured once at injection time. Single-Page-App JSON
|
||||
// viewers that swap the payload in place without a full reload won't update
|
||||
// the graph. That's acceptable for the current target (browser JSON viewers
|
||||
// on static responses) — revisit if we add SPA support.
|
||||
function GraphView({ rawJson }: { rawJson: string }) {
|
||||
const theme = useSystemTheme();
|
||||
const [JSONCrackComponent, setJSONCrackComponent] = useState<JSONCrackComponentType | null>(null);
|
||||
const [componentError, setComponentError] = useState<string | null>(null);
|
||||
const [selectedNode, setSelectedNode] = useState<NodeData | null>(null);
|
||||
|
||||
useEffect(() => {
|
||||
let active = true;
|
||||
|
||||
loadJsonCrackComponent()
|
||||
.then(component => {
|
||||
if (!active) return;
|
||||
setJSONCrackComponent(() => component);
|
||||
})
|
||||
.catch((error: unknown) => {
|
||||
if (!active) return;
|
||||
const message = error instanceof Error ? error.message : "Unable to load graph renderer.";
|
||||
setComponentError(message);
|
||||
});
|
||||
|
||||
return () => {
|
||||
active = false;
|
||||
};
|
||||
}, []);
|
||||
|
||||
const parsedJson = useMemo(() => {
|
||||
try {
|
||||
return JSON.parse(rawJson);
|
||||
} catch {
|
||||
return null;
|
||||
}
|
||||
}, [rawJson]);
|
||||
|
||||
if (parsedJson === null) {
|
||||
return <div id="jsoncrack-graph-error">JSON parsing failed for graph mode.</div>;
|
||||
}
|
||||
|
||||
if (componentError) {
|
||||
return <div id="jsoncrack-graph-error">Graph renderer error: {componentError}</div>;
|
||||
}
|
||||
|
||||
if (!JSONCrackComponent) {
|
||||
return <div id="jsoncrack-graph-status">Loading graph renderer...</div>;
|
||||
}
|
||||
|
||||
return (
|
||||
<div style={{ width: "100%", height: "100%" }}>
|
||||
<JSONCrackComponent
|
||||
json={parsedJson}
|
||||
theme={theme}
|
||||
showControls
|
||||
showGrid
|
||||
centerOnLayout
|
||||
onNodeClick={node => setSelectedNode(node)}
|
||||
renderNodeLimitExceeded={() => <NodeLimitUpgrade />}
|
||||
/>
|
||||
<NodeModal nodeData={selectedNode} onClose={() => setSelectedNode(null)} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
function NodeLimitUpgrade() {
|
||||
return (
|
||||
<div id="jsoncrack-upgrade-overlay">
|
||||
<div id="jsoncrack-upgrade-card">
|
||||
{TO_DIAGRAM_LOGO_URL ? (
|
||||
<img
|
||||
src={TO_DIAGRAM_LOGO_URL}
|
||||
alt="ToDiagram"
|
||||
width={48}
|
||||
height={48}
|
||||
className="jsoncrack-upgrade-logo"
|
||||
/>
|
||||
) : null}
|
||||
<span className="jsoncrack-upgrade-badge">Upgrade Required</span>
|
||||
<h2 className="jsoncrack-upgrade-title">Your diagram is too large</h2>
|
||||
<p className="jsoncrack-upgrade-desc">
|
||||
JSON Crack can't render this file.{" "}
|
||||
<a
|
||||
href="https://todiagram.com/editor?utm_source=jsoncrack&utm_medium=chrome_extension&utm_campaign=data_limit"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="jsoncrack-upgrade-link"
|
||||
>
|
||||
ToDiagram
|
||||
</a>{" "}
|
||||
handles large datasets with ease.
|
||||
</p>
|
||||
<a
|
||||
href="https://todiagram.com/editor?utm_source=jsoncrack&utm_medium=chrome_extension&utm_campaign=data_limit&modal=upgrade&format=json&example=true"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="jsoncrack-upgrade-cta"
|
||||
>
|
||||
Continue with ToDiagram →
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
/// <reference types="vite/client" />
|
||||
|
||||
declare module "*.css?inline" {
|
||||
const content: string;
|
||||
export default content;
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES2020",
|
||||
"lib": ["DOM", "DOM.Iterable", "ESNext"],
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "bundler",
|
||||
"jsx": "react-jsx",
|
||||
"strict": true,
|
||||
"skipLibCheck": true,
|
||||
"esModuleInterop": true,
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"noEmit": true,
|
||||
"noImplicitAny": false
|
||||
},
|
||||
"include": ["src/**/*.ts", "src/**/*.tsx", "vite.config.ts"],
|
||||
"exclude": ["dist", "node_modules"]
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
import { defineConfig } from "vite";
|
||||
import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
|
||||
export default defineConfig({
|
||||
define: {
|
||||
"process.env.NODE_ENV": JSON.stringify("production"),
|
||||
},
|
||||
build: {
|
||||
lib: {
|
||||
entry: path.resolve(__dirname, "src/content-script.tsx"),
|
||||
formats: ["iife"],
|
||||
name: "JSONCrackContentScript",
|
||||
fileName: () => "content-script.js",
|
||||
},
|
||||
cssCodeSplit: false,
|
||||
outDir: "dist",
|
||||
emptyOutDir: true,
|
||||
target: "es2022",
|
||||
sourcemap: false,
|
||||
rollupOptions: {
|
||||
output: {
|
||||
banner:
|
||||
"var Worker = undefined; var process = globalThis.process || (globalThis.process = { env: { NODE_ENV: 'production' } });",
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Define the source directory (dist output)
|
||||
SRC_DIR="dist"
|
||||
|
||||
# Read version from dist/manifest.json
|
||||
VERSION=$(grep '"version":' dist/manifest.json | sed 's/.*"\(.*\)".*/\1/')
|
||||
|
||||
# Define the output zip file name
|
||||
OUTPUT_ZIP="chrome_extension_v$VERSION.zip"
|
||||
|
||||
# Check if the source directory exists
|
||||
if [ -d "$SRC_DIR" ]; then
|
||||
# Zip the files in the source directory
|
||||
zip -r "$OUTPUT_ZIP" "$SRC_DIR"
|
||||
echo "Files in $SRC_DIR have been zipped into $OUTPUT_ZIP"
|
||||
else
|
||||
echo "Source directory $SRC_DIR does not exist."
|
||||
fi
|
||||
@@ -0,0 +1,3 @@
|
||||
node_modules/
|
||||
build/
|
||||
*.vsix
|
||||
@@ -0,0 +1,9 @@
|
||||
.github
|
||||
.next
|
||||
node_modules/
|
||||
out
|
||||
public
|
||||
*-lock.json
|
||||
tsconfig.json
|
||||
build
|
||||
jsoncrack
|
||||
@@ -7,6 +7,8 @@
|
||||
"importOrder": [
|
||||
"^(react/(.*)$)|^(react$)",
|
||||
"^(next/(.*)$)|^(next$)",
|
||||
"^@mantine/core",
|
||||
"^@mantine",
|
||||
"styled",
|
||||
"<THIRD_PARTY_MODULES>",
|
||||
"^src/(.*)$",
|
||||
@@ -0,0 +1,16 @@
|
||||
.vscode/**
|
||||
.vscode-test/**
|
||||
.github/**
|
||||
.turbo/**
|
||||
node_modules/**
|
||||
src/**
|
||||
ext-src/**
|
||||
.gitignore
|
||||
.prettierignore
|
||||
.prettierrc
|
||||
index.html
|
||||
vite.config.ts
|
||||
esbuild.config.mjs
|
||||
eslint.config.mjs
|
||||
**/tsconfig.json
|
||||
**/*.map
|
||||
@@ -0,0 +1,9 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2025 Aykut Saraç
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
@@ -0,0 +1,52 @@
|
||||
<img src="https://github.com/AykutSarac/jsoncrack-vscode/assets/47941171/23b26537-7c4a-4029-af78-456dea0d0b04" width="300" alt="JSON Crack" />
|
||||
|
||||
<hr />
|
||||
|
||||
[JSON Crack](https://jsoncrack.com?utm_source=jsoncrack-vscode&utm_medium=readme)'s Official Visual Studio Code Extension that visualizes JSON data as an interactive diagram. The extension parses the open JSON file and displays its structure as a connected graph where nodes represent objects, arrays, and values.
|
||||
|
||||
## How to use?
|
||||
|
||||
1. Install the JSON Crack extension from the [VS Code marketplace](https://marketplace.visualstudio.com/items?itemName=AykutSarac.jsoncrack-vscode).
|
||||
2. Open a JSON file.
|
||||
3. Click on the JSON Crack icon in the menubar at top right.
|
||||
|
||||
<img width="600" alt="image" src="https://github.com/AykutSarac/jsoncrack-vscode/assets/47941171/06715ac1-2403-402f-b3fa-3d91e1c9196a">
|
||||
|
||||
## Privacy
|
||||
|
||||
The extension works **fully offline**. No data is sent to any server. All JSON parsing and visualization happens locally in your editor.
|
||||
|
||||
## Development
|
||||
|
||||
This extension lives in `apps/vscode` inside the [jsoncrack.com](https://github.com/AykutSarac/jsoncrack.com) monorepo.
|
||||
|
||||
**Prerequisites:** Node.js `>=20`, pnpm `>=10`
|
||||
|
||||
**Stack:** Vite (webview) + esbuild (extension host) + React 19
|
||||
|
||||
```sh
|
||||
# Install dependencies from repo root
|
||||
pnpm install
|
||||
|
||||
# Build the extension
|
||||
cd apps/vscode
|
||||
pnpm run build
|
||||
```
|
||||
|
||||
### Debugging
|
||||
|
||||
1. Open the **monorepo root** in VS Code.
|
||||
2. Press **F5** to launch the "Run VSCode Extension" config — it builds and opens the Extension Development Host.
|
||||
3. After making changes, press `Cmd+R` (macOS) / `Ctrl+R` (Windows/Linux) in the host window to reload.
|
||||
|
||||
### Scripts
|
||||
|
||||
| Script | Description |
|
||||
|---|---|
|
||||
| `build` | Production build (minified, no sourcemaps) |
|
||||
| `build:dev` | Dev build (sourcemaps, no minification) |
|
||||
| `watch` | Watch extension host (`ext-src/`) for changes |
|
||||
| `watch:webview` | Watch webview (`src/`) for changes |
|
||||
| `dev` | Start Vite dev server (standalone webview in browser) |
|
||||
| `lint` | Run ESLint + Prettier check |
|
||||
| `clean` | Remove `build/` directory |
|
||||
@@ -0,0 +1,7 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" color="#7d8590" viewBox="0 0 600 600" fill="none">
|
||||
<path d="M240 300 C 320 300, 320 160, 400 160" stroke="currentColor" stroke-width="50" stroke-linecap="round"/>
|
||||
<path d="M240 300 C 320 300, 320 440, 400 440" stroke="currentColor" stroke-width="50" stroke-linecap="round"/>
|
||||
<rect x="60" y="220" width="180" height="160" rx="32" fill="currentColor"/>
|
||||
<rect x="400" y="80" width="160" height="160" rx="32" fill="currentColor"/>
|
||||
<rect x="400" y="360" width="160" height="160" rx="32" fill="currentColor"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 561 B |
@@ -0,0 +1,7 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" color="#424242" viewBox="0 0 600 600" fill="none">
|
||||
<path d="M240 300 C 320 300, 320 160, 400 160" stroke="currentColor" stroke-width="50" stroke-linecap="round"/>
|
||||
<path d="M240 300 C 320 300, 320 440, 400 440" stroke="currentColor" stroke-width="50" stroke-linecap="round"/>
|
||||
<rect x="60" y="220" width="180" height="160" rx="32" fill="currentColor"/>
|
||||
<rect x="400" y="80" width="160" height="160" rx="32" fill="currentColor"/>
|
||||
<rect x="400" y="360" width="160" height="160" rx="32" fill="currentColor"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 561 B |
|
After Width: | Height: | Size: 66 KiB |
@@ -0,0 +1,26 @@
|
||||
import * as esbuild from "esbuild";
|
||||
|
||||
const isWatch = process.argv.includes("--watch");
|
||||
const isProduction = process.argv.includes("--production");
|
||||
|
||||
/** @type {esbuild.BuildOptions} */
|
||||
const config = {
|
||||
entryPoints: ["ext-src/extension.ts"],
|
||||
bundle: true,
|
||||
outdir: "build",
|
||||
external: ["vscode"],
|
||||
format: "cjs",
|
||||
platform: "node",
|
||||
target: "node20",
|
||||
sourcemap: !isProduction,
|
||||
minify: isProduction,
|
||||
logLevel: "info",
|
||||
};
|
||||
|
||||
if (isWatch) {
|
||||
const ctx = await esbuild.context(config);
|
||||
await ctx.watch();
|
||||
console.log("Watching for changes...");
|
||||
} else {
|
||||
await esbuild.build(config);
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
import eslint from "@eslint/js";
|
||||
import { defineConfig, globalIgnores } from "eslint/config";
|
||||
import eslintConfigPrettier from "eslint-config-prettier/flat";
|
||||
import eslintPluginPrettier from "eslint-plugin-prettier/recommended";
|
||||
import unusedImports from "eslint-plugin-unused-imports";
|
||||
import globals from "globals";
|
||||
import tseslint from "typescript-eslint";
|
||||
|
||||
export default defineConfig([
|
||||
eslint.configs.recommended,
|
||||
tseslint.configs.recommended,
|
||||
eslintConfigPrettier,
|
||||
eslintPluginPrettier,
|
||||
{
|
||||
languageOptions: {
|
||||
globals: {
|
||||
...globals.browser,
|
||||
...globals.node,
|
||||
},
|
||||
parserOptions: {
|
||||
ecmaVersion: "latest",
|
||||
sourceType: "module",
|
||||
tsconfigRootDir: import.meta.dirname,
|
||||
},
|
||||
},
|
||||
plugins: {
|
||||
"unused-imports": unusedImports,
|
||||
},
|
||||
rules: {
|
||||
"@typescript-eslint/consistent-type-imports": "error",
|
||||
"unused-imports/no-unused-imports": "error",
|
||||
"@typescript-eslint/no-explicit-any": "off",
|
||||
"prettier/prettier": "error",
|
||||
"space-in-parens": "error",
|
||||
"no-empty": "error",
|
||||
"no-multiple-empty-lines": "error",
|
||||
"no-irregular-whitespace": "error",
|
||||
strict: ["error", "never"],
|
||||
"linebreak-style": ["error", "unix"],
|
||||
quotes: ["error", "double", { avoidEscape: true }],
|
||||
semi: ["error", "always"],
|
||||
"prefer-const": "error",
|
||||
"space-before-function-paren": [
|
||||
"error",
|
||||
{
|
||||
anonymous: "always",
|
||||
named: "never",
|
||||
asyncArrow: "always",
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
globalIgnores(["build/**"]),
|
||||
]);
|
||||
@@ -0,0 +1,113 @@
|
||||
import * as path from "path";
|
||||
import * as vscode from "vscode";
|
||||
import { createWebviewPanel } from "./webview";
|
||||
|
||||
function getPanelTitle(document?: vscode.TextDocument) {
|
||||
if (!document) return "JSON Crack";
|
||||
|
||||
const fileName = path.basename(document.fileName);
|
||||
return fileName || "JSON Crack";
|
||||
}
|
||||
|
||||
export function activate(context: vscode.ExtensionContext) {
|
||||
context.subscriptions.push(
|
||||
vscode.commands.registerCommand("jsoncrack-vscode.start", () =>
|
||||
createWebviewForActiveEditor(context)
|
||||
),
|
||||
vscode.commands.registerCommand("jsoncrack-vscode.start.specific", (content?: string) =>
|
||||
createWebviewForContent(context, content)
|
||||
),
|
||||
vscode.commands.registerCommand("jsoncrack-vscode.start.selected", () =>
|
||||
createWebviewForSelectedText(context)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
// create webview for selected text
|
||||
async function createWebviewForSelectedText(context: vscode.ExtensionContext) {
|
||||
const editor = vscode.window.activeTextEditor;
|
||||
|
||||
if (editor && editor.selection.isEmpty) {
|
||||
vscode.window.showInformationMessage("Please select some text first!");
|
||||
return;
|
||||
}
|
||||
|
||||
const selectedText = editor?.document.getText(editor.selection);
|
||||
|
||||
// Create the webview panel and send the selected JSON content
|
||||
const panel = createWebviewPanel(context, getPanelTitle(editor?.document));
|
||||
panel.webview.postMessage({
|
||||
json: selectedText,
|
||||
});
|
||||
|
||||
const onReceiveMessage = panel.webview.onDidReceiveMessage(e => {
|
||||
if (e === "ready") {
|
||||
panel.webview.postMessage({
|
||||
json: selectedText,
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
const onTextChange = vscode.workspace.onDidChangeTextDocument(changeEvent => {
|
||||
if (changeEvent.document === editor?.document) {
|
||||
panel.webview.postMessage({
|
||||
json: changeEvent.document.getText(editor?.selection),
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
const disposer = () => {
|
||||
onTextChange.dispose();
|
||||
onReceiveMessage.dispose();
|
||||
};
|
||||
|
||||
panel.onDidDispose(disposer, null, context.subscriptions);
|
||||
}
|
||||
|
||||
async function createWebviewForActiveEditor(context: vscode.ExtensionContext) {
|
||||
const editor = vscode.window.activeTextEditor;
|
||||
const panel = createWebviewPanel(context, getPanelTitle(editor?.document));
|
||||
|
||||
const onReceiveMessage = panel.webview.onDidReceiveMessage(e => {
|
||||
if (e === "ready") {
|
||||
panel.webview.postMessage({
|
||||
json: editor?.document.getText(),
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
const onTextChange = vscode.workspace.onDidChangeTextDocument(changeEvent => {
|
||||
if (changeEvent.document === editor?.document) {
|
||||
panel.webview.postMessage({
|
||||
json: changeEvent.document.getText(),
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
const disposer = () => {
|
||||
onTextChange.dispose();
|
||||
onReceiveMessage.dispose();
|
||||
};
|
||||
|
||||
panel.onDidDispose(disposer, null, context.subscriptions);
|
||||
}
|
||||
|
||||
/**
|
||||
* Renders a readonly diagram from a string
|
||||
* @param context ExtensionContext
|
||||
* @param content JSON content as a string
|
||||
*/
|
||||
function createWebviewForContent(context?: vscode.ExtensionContext, content?: string): any {
|
||||
if (context && content) {
|
||||
const panel = createWebviewPanel(
|
||||
context,
|
||||
getPanelTitle(vscode.window.activeTextEditor?.document)
|
||||
);
|
||||
panel.webview.postMessage({
|
||||
json: content,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// This method is called when your extension is deactivated
|
||||
export function deactivate() {}
|
||||
@@ -0,0 +1,60 @@
|
||||
import * as path from "path";
|
||||
import * as vscode from "vscode";
|
||||
|
||||
export function createWebviewPanel(context: vscode.ExtensionContext, title = "JSON Crack") {
|
||||
const extPath = context.extensionPath;
|
||||
const webviewDir = vscode.Uri.file(path.join(extPath, "build", "webview"));
|
||||
|
||||
const panel = vscode.window.createWebviewPanel(
|
||||
"liveHTMLPreviewer",
|
||||
title,
|
||||
vscode.ViewColumn.Beside,
|
||||
{
|
||||
enableScripts: true,
|
||||
retainContextWhenHidden: true,
|
||||
localResourceRoots: [webviewDir, vscode.Uri.file(path.join(extPath, "assets"))],
|
||||
}
|
||||
);
|
||||
panel.iconPath = vscode.Uri.file(path.join(extPath, "assets", "jsoncrack.png"));
|
||||
|
||||
const scriptUri = panel.webview.asWebviewUri(
|
||||
vscode.Uri.file(path.join(extPath, "build", "webview", "index.js"))
|
||||
);
|
||||
const styleUri = panel.webview.asWebviewUri(
|
||||
vscode.Uri.file(path.join(extPath, "build", "webview", "index.css"))
|
||||
);
|
||||
|
||||
const nonce = getNonce();
|
||||
const csp = [
|
||||
`default-src 'self' ${panel.webview.cspSource} blob:`,
|
||||
`connect-src ${panel.webview.cspSource} blob:`,
|
||||
`script-src 'unsafe-eval' 'unsafe-inline' ${panel.webview.cspSource}`,
|
||||
`style-src ${panel.webview.cspSource} 'unsafe-inline'`,
|
||||
`worker-src ${panel.webview.cspSource} blob: data:`,
|
||||
].join("; ");
|
||||
|
||||
panel.webview.html = `<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="Content-Security-Policy" content="${csp}">
|
||||
<link href="${styleUri}" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||
<div id="root"></div>
|
||||
<script nonce="${nonce}" src="${scriptUri}"></script>
|
||||
</body>
|
||||
</html>`;
|
||||
|
||||
return panel;
|
||||
}
|
||||
|
||||
function getNonce() {
|
||||
let text = "";
|
||||
const possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
||||
for (let i = 0; i < 32; i++) {
|
||||
text += possible.charAt(Math.floor(Math.random() * possible.length));
|
||||
}
|
||||
return text;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
|
||||
</head>
|
||||
<body>
|
||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||
<div id="root"></div>
|
||||
<script type="module" src="/src/index.tsx"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,131 @@
|
||||
{
|
||||
"name": "jsoncrack-vscode",
|
||||
"version": "5.1.0",
|
||||
"displayName": "JSON Crack",
|
||||
"description": "Seamlessly visualize your JSON data instantly into graphs.",
|
||||
"publisher": "AykutSarac",
|
||||
"license": "MIT",
|
||||
"author": {
|
||||
"email": "aykutsarac0@gmail.com",
|
||||
"name": "Aykut Saraç"
|
||||
},
|
||||
"homepage": "https://jsoncrack.com",
|
||||
"icon": "assets/jsoncrack.png",
|
||||
"galleryBanner": {
|
||||
"color": "#202225",
|
||||
"theme": "dark"
|
||||
},
|
||||
"categories": [
|
||||
"Visualization"
|
||||
],
|
||||
"keywords": [
|
||||
"json",
|
||||
"visualizer",
|
||||
"jsoncrack",
|
||||
"data",
|
||||
"yaml",
|
||||
"livepreview"
|
||||
],
|
||||
"activationEvents": [
|
||||
"workspaceContains:**/*.{json}"
|
||||
],
|
||||
"main": "./build/extension.js",
|
||||
"contributes": {
|
||||
"commands": [
|
||||
{
|
||||
"command": "jsoncrack-vscode.start",
|
||||
"title": "Enable JSON Crack visualization",
|
||||
"category": "menubar",
|
||||
"icon": {
|
||||
"light": "./assets/icon-light.svg",
|
||||
"dark": "./assets/icon-dark.svg"
|
||||
}
|
||||
},
|
||||
{
|
||||
"command": "jsoncrack-vscode.start.specific",
|
||||
"title": "Enable JSON Crack visualization for specific file",
|
||||
"category": "menubar"
|
||||
},
|
||||
{
|
||||
"command": "jsoncrack-vscode.start.selected",
|
||||
"title": "Open with JSON Crack",
|
||||
"category": "Navigation"
|
||||
}
|
||||
],
|
||||
"menus": {
|
||||
"editor/context": [
|
||||
{
|
||||
"command": "jsoncrack-vscode.start.selected",
|
||||
"when": "editorHasSelection",
|
||||
"group": "navigation"
|
||||
}
|
||||
],
|
||||
"commandPalette": [
|
||||
{
|
||||
"command": "jsoncrack-vscode.start",
|
||||
"when": "never"
|
||||
}
|
||||
],
|
||||
"editor/title": [
|
||||
{
|
||||
"command": "jsoncrack-vscode.start",
|
||||
"when": "resourceExtname == .json || editorLangId == json",
|
||||
"group": "navigation"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vite build && node esbuild.config.mjs --production",
|
||||
"vsc:package": "pnpm run build && vsce package --no-dependencies",
|
||||
"build:dev": "vite build && node esbuild.config.mjs",
|
||||
"watch": "node esbuild.config.mjs --watch",
|
||||
"watch:webview": "vite build --watch",
|
||||
"lint": "eslint src ext-src && prettier --check src ext-src",
|
||||
"lint:fix": "eslint --fix src ext-src && prettier --write src ext-src",
|
||||
"clean": "rm -rf build"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^10.0.1",
|
||||
"@mantine/code-highlight": "^8.3.18",
|
||||
"@mantine/core": "^8.3.18",
|
||||
"@mantine/hooks": "^8.3.18",
|
||||
"@trivago/prettier-plugin-sort-imports": "^6.0.2",
|
||||
"@types/node": "^25.9.5",
|
||||
"@types/react": "catalog:",
|
||||
"@types/react-dom": "catalog:",
|
||||
"@types/vscode": "^1.100.0",
|
||||
"@typescript-eslint/eslint-plugin": "^8.67.0",
|
||||
"@typescript-eslint/parser": "^8.67.0",
|
||||
"@vitejs/plugin-react": "^4.7.0",
|
||||
"@vscode/vsce": "^3.9.2",
|
||||
"esbuild": "^0.25.12",
|
||||
"eslint": "^10.8.1",
|
||||
"eslint-config-prettier": "^10.1.8",
|
||||
"eslint-plugin-prettier": "^5.5.6",
|
||||
"eslint-plugin-unused-imports": "^4.4.1",
|
||||
"globals": "^17.11.0",
|
||||
"prettier": "^3.9.6",
|
||||
"typescript": "^5.9.3",
|
||||
"typescript-eslint": "^8.67.0",
|
||||
"vite": "^6.4.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"jsoncrack-react": "workspace:*",
|
||||
"react": "catalog:",
|
||||
"react-dom": "catalog:",
|
||||
"shiki": "^4.4.3"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/AykutSarac/jsoncrack.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/AykutSarac/jsoncrack.com/issues"
|
||||
},
|
||||
"engines": {
|
||||
"vscode": "^1.100.0"
|
||||
},
|
||||
"packageManager": "pnpm@10.20.0"
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
import { useCallback, useEffect, useState } from "react";
|
||||
import { Anchor, Box, MantineProvider, Text } from "@mantine/core";
|
||||
import { CodeHighlightAdapterProvider, createShikiAdapter } from "@mantine/code-highlight";
|
||||
import type { NodeData } from "jsoncrack-react";
|
||||
import { JSONCrack } from "jsoncrack-react";
|
||||
import { NodeModal } from "./components/NodeModal";
|
||||
|
||||
async function loadShiki() {
|
||||
const { createHighlighter } = await import("shiki");
|
||||
return createHighlighter({ langs: ["json"], themes: [] });
|
||||
}
|
||||
|
||||
const shikiAdapter = createShikiAdapter(loadShiki);
|
||||
|
||||
function getTheme() {
|
||||
const theme = document.body.getAttribute("data-vscode-theme-kind");
|
||||
if (theme?.includes("light")) return "light" as const;
|
||||
return "dark";
|
||||
}
|
||||
|
||||
const App: React.FC = () => {
|
||||
const [json, setJson] = useState("{}");
|
||||
const [selectedNode, setSelectedNode] = useState<NodeData | null>(null);
|
||||
const theme = getTheme();
|
||||
|
||||
useEffect(() => {
|
||||
const vscode = window?.acquireVsCodeApi?.();
|
||||
vscode?.postMessage("ready");
|
||||
|
||||
const onMessage = (event: MessageEvent<{ json?: string }>) => {
|
||||
const jsonData = event.data?.json;
|
||||
if (typeof jsonData === "string") {
|
||||
setJson(jsonData);
|
||||
}
|
||||
};
|
||||
|
||||
window.addEventListener("message", onMessage);
|
||||
|
||||
return () => {
|
||||
window.removeEventListener("message", onMessage);
|
||||
};
|
||||
}, []);
|
||||
|
||||
const handleNodeClick = useCallback((node: NodeData) => {
|
||||
setSelectedNode(node);
|
||||
}, []);
|
||||
|
||||
const closeNodeModal = useCallback(() => {
|
||||
setSelectedNode(null);
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<MantineProvider forceColorScheme={theme}>
|
||||
<CodeHighlightAdapterProvider adapter={shikiAdapter}>
|
||||
<Box h="100vh" w="100vw">
|
||||
<JSONCrack json={json} theme={theme} showControls={false} onNodeClick={handleNodeClick} />
|
||||
{selectedNode && (
|
||||
<NodeModal opened={!!selectedNode} onClose={closeNodeModal} nodeData={selectedNode} />
|
||||
)}
|
||||
<Anchor
|
||||
pos="fixed"
|
||||
bottom={0}
|
||||
left={0}
|
||||
href="https://jsoncrack.com/editor?utm_source=vscode&utm_campaign=attribute"
|
||||
target="_blank"
|
||||
>
|
||||
<Box px="12" py="4" bg="dark">
|
||||
<Text fz="sm" c="white">
|
||||
Powered by JSON Crack
|
||||
</Text>
|
||||
</Box>
|
||||
</Anchor>
|
||||
</Box>
|
||||
</CodeHighlightAdapterProvider>
|
||||
</MantineProvider>
|
||||
);
|
||||
};
|
||||
|
||||
export default App;
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
acquireVsCodeApi?: () => any;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
import type { ModalProps } from "@mantine/core";
|
||||
import { Modal, Stack, Text, ScrollArea } from "@mantine/core";
|
||||
import { CodeHighlight } from "@mantine/code-highlight";
|
||||
import type { NodeData } from "jsoncrack-react";
|
||||
|
||||
interface NodeModalProps extends ModalProps {
|
||||
nodeData: NodeData | null;
|
||||
}
|
||||
|
||||
const normalizeNodeData = (nodeRows: NodeData["text"]) => {
|
||||
if (!nodeRows || nodeRows.length === 0) return "{}";
|
||||
if (nodeRows.length === 1 && !nodeRows[0].key) return `${nodeRows[0].value}`;
|
||||
|
||||
const obj: Record<string, unknown> = {};
|
||||
nodeRows.forEach(row => {
|
||||
if (row.type !== "array" && row.type !== "object" && row.key) {
|
||||
obj[row.key] = row.value;
|
||||
}
|
||||
});
|
||||
|
||||
return JSON.stringify(obj, null, 2);
|
||||
};
|
||||
|
||||
const jsonPathToString = (path?: NodeData["path"]) => {
|
||||
if (!path || path.length === 0) return "$";
|
||||
const segments = path.map(seg => (typeof seg === "number" ? seg : `"${seg}"`));
|
||||
return `$[${segments.join("][")}]`;
|
||||
};
|
||||
|
||||
export const NodeModal = ({ opened, onClose, nodeData }: NodeModalProps) => {
|
||||
const nodeContent = normalizeNodeData(nodeData?.text ?? []);
|
||||
const jsonPath = jsonPathToString(nodeData?.path);
|
||||
|
||||
return (
|
||||
<Modal title="Node Content" size="auto" opened={opened} onClose={onClose} centered>
|
||||
<Stack py="sm" gap="sm">
|
||||
<Stack gap="xs">
|
||||
<Text fz="xs" fw={500}>
|
||||
Content
|
||||
</Text>
|
||||
<ScrollArea.Autosize mah={250} maw={600}>
|
||||
<CodeHighlight code={nodeContent} miw={350} maw={600} language="json" withCopyButton />
|
||||
</ScrollArea.Autosize>
|
||||
</Stack>
|
||||
<Text fz="xs" fw={500}>
|
||||
JSON Path
|
||||
</Text>
|
||||
<ScrollArea.Autosize maw={600}>
|
||||
<CodeHighlight
|
||||
code={jsonPath}
|
||||
miw={350}
|
||||
mah={250}
|
||||
language="json"
|
||||
copyLabel="Copy to clipboard"
|
||||
copiedLabel="Copied to clipboard"
|
||||
withCopyButton
|
||||
/>
|
||||
</ScrollArea.Autosize>
|
||||
</Stack>
|
||||
</Modal>
|
||||
);
|
||||
};
|
||||
@@ -0,0 +1 @@
|
||||
/// <reference types="vite/client" />
|
||||
@@ -0,0 +1,20 @@
|
||||
html,
|
||||
body,
|
||||
#root {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
import "@mantine/core/styles.css";
|
||||
import "@mantine/code-highlight/styles.css";
|
||||
import "jsoncrack-react/style.css";
|
||||
import { createRoot } from "react-dom/client";
|
||||
import App from "./App";
|
||||
import "./global.css";
|
||||
|
||||
const container = document.getElementById("root") as HTMLElement;
|
||||
const root = createRoot(container);
|
||||
root.render(<App />);
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES2020",
|
||||
"lib": ["dom", "dom.iterable", "esnext"],
|
||||
"module": "esnext",
|
||||
"moduleResolution": "bundler",
|
||||
"jsx": "react-jsx",
|
||||
"strict": true,
|
||||
"skipLibCheck": true,
|
||||
"esModuleInterop": true,
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"noEmit": true,
|
||||
"noImplicitAny": false
|
||||
},
|
||||
"include": ["src", "ext-src"],
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
import react from "@vitejs/plugin-react";
|
||||
import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { defineConfig } from "vite";
|
||||
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
build: {
|
||||
outDir: "build/webview",
|
||||
emptyOutDir: true,
|
||||
rollupOptions: {
|
||||
input: "src/index.tsx",
|
||||
output: {
|
||||
entryFileNames: "index.js",
|
||||
assetFileNames: "index[extname]",
|
||||
inlineDynamicImports: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
react: path.resolve(__dirname, "node_modules/react"),
|
||||
"react-dom": path.resolve(__dirname, "node_modules/react-dom"),
|
||||
},
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,7 @@
|
||||
Dockerfile
|
||||
.dockerignore
|
||||
node_modules
|
||||
npm-debug.log
|
||||
README.md
|
||||
.next
|
||||
.git
|
||||
@@ -0,0 +1,2 @@
|
||||
NEXT_PUBLIC_NODE_LIMIT=1200
|
||||
NEXT_TELEMETRY_DISABLED=1
|
||||
@@ -0,0 +1,2 @@
|
||||
NEXT_PUBLIC_NODE_LIMIT=2000
|
||||
NEXT_PUBLIC_DISABLE_EXTERNAL_MODE=false
|
||||
@@ -0,0 +1,31 @@
|
||||
# App dependencies
|
||||
node_modules/
|
||||
|
||||
# Next.js
|
||||
.next/
|
||||
out/
|
||||
|
||||
# Turborepo task cache
|
||||
.turbo/
|
||||
|
||||
# Test/build artifacts
|
||||
coverage/
|
||||
build/
|
||||
*.tsbuildinfo
|
||||
|
||||
# Local environment files
|
||||
.env.local
|
||||
.env.development.local
|
||||
.env.test.local
|
||||
.env.production.local
|
||||
|
||||
# Deployment
|
||||
.vercel
|
||||
|
||||
# Workspace migration artifact (root lockfile is authoritative)
|
||||
pnpm-lock.yaml
|
||||
|
||||
# PWA workers
|
||||
public/workbox-*.js
|
||||
public/sw.js
|
||||
public/fallback-*.js
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"trailingComma": "es5",
|
||||
"singleQuote": false,
|
||||
"semi": true,
|
||||
"printWidth": 100,
|
||||
"arrowParens": "avoid",
|
||||
"importOrder": [
|
||||
"^(react/(.*)$)|^(react$)",
|
||||
"^(next/(.*)$)|^(next$)",
|
||||
"^@mantine/core",
|
||||
"^@mantine",
|
||||
"styled",
|
||||
"<THIRD_PARTY_MODULES>",
|
||||
"^src/(.*)$",
|
||||
"^[./]"
|
||||
],
|
||||
"importOrderParserPlugins": ["typescript", "jsx", "decorators-legacy"],
|
||||
"plugins": ["@trivago/prettier-plugin-sort-imports"]
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
# syntax=docker/dockerfile:1.6
|
||||
|
||||
FROM node:24-alpine AS base
|
||||
RUN apk add --no-cache libc6-compat && npm install -g pnpm@10.20.0
|
||||
WORKDIR /app
|
||||
|
||||
FROM base AS pruner
|
||||
COPY . .
|
||||
RUN pnpm dlx turbo@2.8.20 prune www --docker
|
||||
|
||||
FROM base AS installer
|
||||
COPY --from=pruner /app/out/pnpm-lock.yaml ./pnpm-lock.yaml
|
||||
COPY --from=pruner /app/out/pnpm-workspace.yaml ./pnpm-workspace.yaml
|
||||
COPY --from=pruner /app/out/json/ .
|
||||
|
||||
ENV PNPM_SKIP_LIFECYCLE_SCRIPTS=1
|
||||
RUN --mount=type=cache,target=/root/.pnpm-store \
|
||||
pnpm config set store-dir /root/.pnpm-store && \
|
||||
pnpm install --frozen-lockfile --ignore-scripts
|
||||
|
||||
COPY --from=pruner /app/out/full/ .
|
||||
RUN pnpm turbo run build
|
||||
|
||||
FROM nginxinc/nginx-unprivileged:stable AS production
|
||||
WORKDIR /app
|
||||
COPY --from=installer /app/apps/www/out /app
|
||||
COPY apps/www/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
EXPOSE 8080
|
||||
@@ -0,0 +1,201 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright 2025 Aykut Saraç
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
@@ -1,4 +1,3 @@
|
||||
version: '3.9'
|
||||
services:
|
||||
jsoncrack:
|
||||
image: jsoncrack
|
||||
@@ -7,4 +6,6 @@ services:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- "8888:8080"
|
||||
- "8888:8080"
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
@@ -0,0 +1,58 @@
|
||||
import eslint from "@eslint/js";
|
||||
import nextPlugin from "@next/eslint-plugin-next";
|
||||
import eslintConfigPrettier from "eslint-config-prettier/flat";
|
||||
import eslintPluginPrettier from "eslint-plugin-prettier/recommended";
|
||||
import unusedImports from "eslint-plugin-unused-imports";
|
||||
import { defineConfig, globalIgnores } from "eslint/config";
|
||||
import tseslint from "typescript-eslint";
|
||||
|
||||
export default defineConfig([
|
||||
globalIgnores(["src/enums", "**/next.config.js", "src/lib/utils/json2go.js"]),
|
||||
eslint.configs.recommended,
|
||||
tseslint.configs.recommended,
|
||||
{
|
||||
plugins: {
|
||||
"@next/next": nextPlugin,
|
||||
},
|
||||
rules: {
|
||||
...nextPlugin.configs.recommended.rules,
|
||||
...nextPlugin.configs["core-web-vitals"].rules,
|
||||
"@next/next/no-img-element": "off",
|
||||
},
|
||||
},
|
||||
eslintConfigPrettier,
|
||||
eslintPluginPrettier,
|
||||
{
|
||||
languageOptions: {
|
||||
parserOptions: {
|
||||
tsconfigRootDir: import.meta.dirname,
|
||||
},
|
||||
},
|
||||
plugins: {
|
||||
"unused-imports": unusedImports,
|
||||
},
|
||||
rules: {
|
||||
"@typescript-eslint/consistent-type-imports": "error",
|
||||
"unused-imports/no-unused-imports": "error",
|
||||
"@typescript-eslint/no-explicit-any": "off",
|
||||
"prettier/prettier": "error",
|
||||
"space-in-parens": "error",
|
||||
"no-empty": "error",
|
||||
"no-multiple-empty-lines": "error",
|
||||
"no-irregular-whitespace": "error",
|
||||
strict: ["error", "never"],
|
||||
"linebreak-style": ["error", "unix"],
|
||||
quotes: ["error", "double", { avoidEscape: true }],
|
||||
semi: ["error", "always"],
|
||||
"prefer-const": "error",
|
||||
"space-before-function-paren": [
|
||||
"error",
|
||||
{
|
||||
anonymous: "always",
|
||||
named: "never",
|
||||
asyncArrow: "always",
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
]);
|
||||
@@ -0,0 +1,7 @@
|
||||
/// <reference types="next" />
|
||||
/// <reference types="next/image-types/global" />
|
||||
import "./.next/dev/types/routes.d.ts";
|
||||
import "./.next/dev/types/root-params.d.ts";
|
||||
|
||||
// NOTE: This file should not be edited
|
||||
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.
|
||||
@@ -0,0 +1,7 @@
|
||||
/** @type {import('next-sitemap').IConfig} */
|
||||
module.exports = {
|
||||
siteUrl: "https://jsoncrack.com",
|
||||
exclude: ["/widget"],
|
||||
autoLastmod: false,
|
||||
changefreq: "never",
|
||||
};
|
||||
@@ -0,0 +1,40 @@
|
||||
const withBundleAnalyzer = require("@next/bundle-analyzer")({
|
||||
enabled: process.env.ANALYZE === "true",
|
||||
});
|
||||
|
||||
/**
|
||||
* @type {import('next').NextConfig}
|
||||
*/
|
||||
const config = {
|
||||
output: "export",
|
||||
reactStrictMode: false,
|
||||
productionBrowserSourceMaps: true,
|
||||
compiler: {
|
||||
styledComponents: true,
|
||||
},
|
||||
turbopack: {
|
||||
resolveAlias: {
|
||||
fs: {
|
||||
browser: "./shims/empty.ts",
|
||||
},
|
||||
},
|
||||
},
|
||||
webpack: (config, { isServer }) => {
|
||||
config.resolve.fallback = { fs: false };
|
||||
config.output.webassemblyModuleFilename = "static/wasm/[modulehash].wasm";
|
||||
config.experiments = { asyncWebAssembly: true, layers: true };
|
||||
|
||||
if (!isServer) {
|
||||
config.output.environment = { ...config.output.environment, asyncFunction: true };
|
||||
}
|
||||
|
||||
return config;
|
||||
},
|
||||
};
|
||||
|
||||
const configExport = () => {
|
||||
if (process.env.ANALYZE === "true") return withBundleAnalyzer(config);
|
||||
return config;
|
||||
};
|
||||
|
||||
module.exports = configExport();
|
||||
@@ -0,0 +1,17 @@
|
||||
server {
|
||||
listen 8080;
|
||||
root /app;
|
||||
include /etc/nginx/mime.types;
|
||||
|
||||
location /editor {
|
||||
try_files $uri /editor.html;
|
||||
}
|
||||
|
||||
location /widget {
|
||||
try_files $uri /widget.html;
|
||||
}
|
||||
|
||||
location /docs {
|
||||
try_files $uri /docs.html;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"name": "www",
|
||||
"private": true,
|
||||
"version": "0.0.0",
|
||||
"license": "Apache-2.0",
|
||||
"scripts": {
|
||||
"dev": "next dev --webpack",
|
||||
"build": "next build --webpack",
|
||||
"postbuild": "next-sitemap --config next-sitemap.config.js",
|
||||
"start": "next start",
|
||||
"lint": "tsc --project tsconfig.json && eslint src && prettier --check src",
|
||||
"lint:fix": "eslint --fix src && prettier --write src",
|
||||
"analyze": "ANALYZE=true npm run build"
|
||||
},
|
||||
"dependencies": {
|
||||
"@mantine/code-highlight": "^8.3.18",
|
||||
"@mantine/core": "^8.3.18",
|
||||
"@mantine/dropzone": "^8.3.18",
|
||||
"@mantine/hooks": "^8.3.18",
|
||||
"@monaco-editor/react": "^4.7.0",
|
||||
"allotment": "^1.20.5",
|
||||
"fast-xml-parser": "5.11.1",
|
||||
"gofmt.js": "0.0.2",
|
||||
"html-to-image": "1.11.11",
|
||||
"jq-web": "0.6.2",
|
||||
"js-yaml": "5.4.2",
|
||||
"json-2-csv": "5.6.0",
|
||||
"json_typegen_wasm": "0.7.0",
|
||||
"jsonc-parser": "3.3.1",
|
||||
"jsoncrack-react": "workspace:*",
|
||||
"jsonpath-plus": "10.4.0",
|
||||
"lodash.debounce": "^4.0.8",
|
||||
"next": "16.3.5",
|
||||
"next-seo": "^7.3.0",
|
||||
"next-sitemap": "^4.2.3",
|
||||
"nextjs-google-analytics": "^2.3.7",
|
||||
"react": "catalog:",
|
||||
"react-dom": "catalog:",
|
||||
"react-hot-toast": "^2.6.0",
|
||||
"react-icons": "^5.7.0",
|
||||
"react-json-tree": "^0.20.0",
|
||||
"react-linkify-it": "^2.0.0",
|
||||
"react-zoomable-ui": "^0.11.0",
|
||||
"reaflow": "5.4.1",
|
||||
"shiki": "^4.4.3",
|
||||
"styled-components": "^6.5.3",
|
||||
"zustand": "^5.0.15"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^10.0.1",
|
||||
"@next/bundle-analyzer": "16.3.5",
|
||||
"@next/eslint-plugin-next": "16.3.5",
|
||||
"@trivago/prettier-plugin-sort-imports": "^6.0.2",
|
||||
"@types/js-yaml": "^4.0.9",
|
||||
"@types/node": "^25.9.5",
|
||||
"@types/react": "catalog:",
|
||||
"@types/react-dom": "catalog:",
|
||||
"eslint": "^10.8.1",
|
||||
"eslint-config-prettier": "^10.1.8",
|
||||
"eslint-plugin-prettier": "^5.5.6",
|
||||
"eslint-plugin-unused-imports": "^4.4.1",
|
||||
"prettier": "^3.9.6",
|
||||
"ts-node": "^10.9.2",
|
||||
"typescript": "5.9.3",
|
||||
"typescript-eslint": "^8.67.0"
|
||||
},
|
||||
"packageManager": "pnpm@10.20.0"
|
||||
}
|
||||
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 56 KiB |
|
After Width: | Height: | Size: 12 KiB |
@@ -0,0 +1,10 @@
|
||||
<svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<defs>
|
||||
<filter id="shadow" x="0" y="0" width="150%" height="150%">
|
||||
<feOffset result="offOut" in="SourceAlpha" dx="1" dy="1" />
|
||||
<feGaussianBlur result="blurOut" in="offOut" stdDeviation="1" />
|
||||
<feBlend in="SourceGraphic" in2="blurOut" mode="normal" />
|
||||
</filter>
|
||||
</defs>
|
||||
<path d="M5.65376 12.3673H5.46026L5.31717 12.4976L0.500002 16.8829L0.500002 1.19841L11.7841 12.3673H5.65376Z" fill="#000000" stroke="#E2E2E2" stroke-width="1" filter="url(#shadow)" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 620 B |
|
After Width: | Height: | Size: 100 KiB |
|
After Width: | Height: | Size: 100 KiB |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="887" height="342" viewBox="0 0 887 342"><foreignObject width="100%" height="100%" x="0" y="0" externalResourcesRequired="true"><svg xmlns="http://www.w3.org/2000/svg" id="ref-1" height="341.78125" width="886.515625" style="accent-color: auto; place-content: normal; place-items: normal; place-self: auto; alignment-baseline: auto; anchor-name: none; animation-composition: replace; animation: 0s ease 0s 1 normal none running none; app-region: none; appearance: none; backdrop-filter: none; backface-visibility: visible; background: none 0% 0% / auto repeat scroll padding-box border-box transparent; background-blend-mode: normal; baseline-shift: 0px; baseline-source: auto; block-size: 341.781px; border-block-end: 0px none rgb(0, 0, 0); border-block-start: 0px none rgb(0, 0, 0); border-color: rgb(0, 0, 0); border-radius: 0px; border-style: none; border-width: 0px; border-collapse: separate; border-end-end-radius: 0px; border-end-start-radius: 0px; border-image: none 100% / 1 / 0 stretch; border-inline-end: 0px none rgb(0, 0, 0); border-inline-start: 0px none rgb(0, 0, 0); border-start-end-radius: 0px; border-start-start-radius: 0px; inset: auto; box-shadow: none; box-sizing: border-box; break-after: auto; break-before: auto; break-inside: auto; buffered-rendering: auto; caption-side: top; caret-color: rgb(0, 0, 0); clear: none; clip: auto; clip-path: none; clip-rule: nonzero; color: rgb(0, 0, 0); color-interpolation: srgb; color-interpolation-filters: linearrgb; color-rendering: auto; columns: auto; gap: normal; column-rule: 0px rgb(0, 0, 0); column-span: none; contain-intrinsic-block-size: none; contain-intrinsic-size: none; contain-intrinsic-inline-size: none; container: none; content: normal; cursor: url("http://localhost:3000/assets/cursor.svg"), auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline; dominant-baseline: auto; empty-cells: show; field-sizing: fixed; fill: rgb(0, 0, 0); fill-opacity: 1; fill-rule: nonzero; filter: none; flex: 0 1 auto; flex-flow: row; float: none; flood-color: rgb(0, 0, 0); flood-opacity: 1; font-family: system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-kerning: auto; font-optical-sizing: auto; font-palette: normal; font-size: 15.9px; font-size-adjust: none; font-stretch: 100%; font-style: normal; font-synthesis: weight style small-caps; font-variant: normal; font-weight: 400; grid: none; grid-area: auto; height: 341.781px; hyphenate-character: auto; hyphenate-limit-chars: auto; hyphens: manual; image-orientation: from-image; image-rendering: auto; initial-letter: normal; inline-size: 886.516px; inset-area: none; inset-block: auto; inset-inline: auto; isolation: auto; letter-spacing: normal; lighting-color: rgb(255, 255, 255); line-break: auto; line-height: 24.8px; list-style: outside none disc; margin-block: 0px; margin: 0px; margin-inline: 0px; marker: none; mask: none; mask-type: luminance; math-depth: 0; math-shift: normal; math-style: normal; max-block-size: none; max-height: none; max-inline-size: none; max-width: none; min-block-size: 0px; min-height: 0px; min-inline-size: 0px; min-width: 0px; mix-blend-mode: normal; object-fit: fill; object-position: 50% 50%; object-view-box: none; offset: normal; opacity: 1; order: 0; orphans: 2; outline: rgb(0, 0, 0) none 0px; outline-offset: 0px; overflow-anchor: auto; overflow-clip-margin: content-box; overflow-wrap: normal; overflow: hidden; overlay: none; overscroll-behavior-block: auto; overscroll-behavior-inline: auto; padding-block: 0px; padding: 0px; padding-inline: 0px; paint-order: normal; perspective: none; perspective-origin: 443.258px 170.891px; pointer-events: auto; position: static; position-anchor: auto; position-try: none; position-visibility: always; r: 0px; resize: none; rotate: none; ruby-align: space-around; ruby-position: over; rx: auto; ry: auto; scale: none; scroll-behavior: smooth; scroll-margin-block: 0px; scroll-margin-inline: 0px; scroll-padding-block: auto; scroll-padding-inline: auto; scroll-timeline: none; scrollbar-color: auto; scrollbar-gutter: auto; scrollbar-width: auto; shape-image-threshold: 0; shape-margin: 0px; shape-outside: none; shape-rendering: auto; speak: normal; stop-color: rgb(0, 0, 0); stop-opacity: 1; stroke: none; stroke-dasharray: none; stroke-dashoffset: 0px; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 4; stroke-opacity: 1; stroke-width: 1px; tab-size: 8; table-layout: auto; text-align: start; text-align-last: auto; text-anchor: start; text-decoration: none solid rgb(0, 0, 0); text-decoration-skip-ink: auto; text-emphasis: none rgb(0, 0, 0); text-emphasis-position: over; text-indent: 0px; text-overflow: clip; text-rendering: auto; text-shadow: none; text-size-adjust: auto; text-sLine truncated
|
||||
|
After Width: | Height: | Size: 613 KiB |
|
After Width: | Height: | Size: 96 KiB |
|
Before Width: | Height: | Size: 394 KiB After Width: | Height: | Size: 394 KiB |
@@ -0,0 +1,441 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="184" height="39" viewBox="0 0 184 39" fill="none">
|
||||
<defs>
|
||||
<linearGradient id="text_gradient" x1="44.5303" y1="25.3333" x2="139.907" y2="78.0713" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#FBAD41"/>
|
||||
<stop offset="1" stop-color="#FF6633"/>
|
||||
</linearGradient>
|
||||
<clipPath id="logo_a">
|
||||
<path d="M4.188 290.809h280.94v216.988H4.189Zm0 0"/>
|
||||
</clipPath>
|
||||
<clipPath id="logo_b">
|
||||
<path d="M87.328 290.809H274.32a10.81 10.81 0 0 1 10.254 14.23L221.73 493.566a20.808 20.808 0 0 1-19.742 14.23H15a10.813 10.813 0 0 1-10.258-14.23L67.586 305.04a20.808 20.808 0 0 1 19.742-14.23Zm0 0"/>
|
||||
</clipPath>
|
||||
<clipPath id="logo_d">
|
||||
<path d="M279.96 290.809h280.942v216.988H279.961Zm0 0"/>
|
||||
</clipPath>
|
||||
<clipPath id="logo_e">
|
||||
<path d="M363.105 290.809h186.989a10.81 10.81 0 0 1 10.254 14.23l-62.84 188.527a20.809 20.809 0 0 1-19.746 14.23H290.773a10.81 10.81 0 0 1-10.254-14.23l62.84-188.527a20.809 20.809 0 0 1 19.746-14.23Zm0 0"/>
|
||||
</clipPath>
|
||||
<clipPath id="logo_g">
|
||||
<path d="M105.594 92.203h488.101v141.785H105.594Zm0 0"/>
|
||||
</clipPath>
|
||||
<clipPath id="logo_h">
|
||||
<path d="M111.723 92.203h400.949c9.613 0 18.844 3.77 25.71 10.5l50.907 49.89a14.708 14.708 0 0 1 0 21l-50.906 49.895a36.732 36.732 0 0 1-25.711 10.5h-400.95a6.126 6.126 0 0 1-4.29-10.5l50.908-49.894a14.702 14.702 0 0 0 0-21l-50.906-49.89a6.126 6.126 0 0 1 4.289-10.5Zm0 0"/>
|
||||
</clipPath>
|
||||
<linearGradient x1="4.942" gradientTransform="matrix(.84761 0 0 .84761 -.002 290.808)" y1="128" x2="336.392" gradientUnits="userSpaceOnUse" y2="128" id="logo_c">
|
||||
<stop stop-color="#FF66C4" offset="0"/>
|
||||
<stop stop-color="#FF66C4" offset=".008"/>
|
||||
<stop stop-color="#FF67C3" offset=".016"/>
|
||||
<stop stop-color="#FF68C2" offset=".023"/>
|
||||
<stop stop-color="#FF69C1" offset=".031"/>
|
||||
<stop stop-color="#FF6AC0" offset=".039"/>
|
||||
<stop stop-color="#FF6BBF" offset=".047"/>
|
||||
<stop stop-color="#FF6CBF" offset=".055"/>
|
||||
<stop stop-color="#FF6DBE" offset=".063"/>
|
||||
<stop stop-color="#FF6EBD" offset=".07"/>
|
||||
<stop stop-color="#FF6FBC" offset=".078"/>
|
||||
<stop stop-color="#FF70BB" offset=".086"/>
|
||||
<stop stop-color="#FF71BA" offset=".094"/>
|
||||
<stop stop-color="#FF72BA" offset=".102"/>
|
||||
<stop stop-color="#FF73B9" offset=".109"/>
|
||||
<stop stop-color="#FF74B8" offset=".117"/>
|
||||
<stop stop-color="#FF75B7" offset=".125"/>
|
||||
<stop stop-color="#FF75B6" offset=".133"/>
|
||||
<stop stop-color="#FF76B5" offset=".141"/>
|
||||
<stop stop-color="#FF77B5" offset=".148"/>
|
||||
<stop stop-color="#FF78B4" offset=".156"/>
|
||||
<stop stop-color="#FF79B3" offset=".164"/>
|
||||
<stop stop-color="#FF7AB2" offset=".172"/>
|
||||
<stop stop-color="#FF7BB1" offset=".18"/>
|
||||
<stop stop-color="#FF7CB0" offset=".188"/>
|
||||
<stop stop-color="#FF7DB0" offset=".195"/>
|
||||
<stop stop-color="#FF7EAF" offset=".203"/>
|
||||
<stop stop-color="#FF7FAE" offset=".211"/>
|
||||
<stop stop-color="#FF80AD" offset=".219"/>
|
||||
<stop stop-color="#FF81AC" offset=".227"/>
|
||||
<stop stop-color="#FF82AB" offset=".234"/>
|
||||
<stop stop-color="#FF83AB" offset=".242"/>
|
||||
<stop stop-color="#FF84AA" offset=".25"/>
|
||||
<stop stop-color="#FF84A9" offset=".258"/>
|
||||
<stop stop-color="#FF85A8" offset=".266"/>
|
||||
<stop stop-color="#FF86A7" offset=".273"/>
|
||||
<stop stop-color="#FF87A6" offset=".281"/>
|
||||
<stop stop-color="#FF88A6" offset=".289"/>
|
||||
<stop stop-color="#FF89A5" offset=".297"/>
|
||||
<stop stop-color="#FF8AA4" offset=".305"/>
|
||||
<stop stop-color="#FF8BA3" offset=".313"/>
|
||||
<stop stop-color="#FF8CA2" offset=".32"/>
|
||||
<stop stop-color="#FF8DA1" offset=".328"/>
|
||||
<stop stop-color="#FF8EA1" offset=".336"/>
|
||||
<stop stop-color="#FF8FA0" offset=".344"/>
|
||||
<stop stop-color="#FF909F" offset=".352"/>
|
||||
<stop stop-color="#FF919E" offset=".359"/>
|
||||
<stop stop-color="#FF929D" offset=".367"/>
|
||||
<stop stop-color="#FF939C" offset=".375"/>
|
||||
<stop stop-color="#FF949C" offset=".383"/>
|
||||
<stop stop-color="#FF949B" offset=".391"/>
|
||||
<stop stop-color="#FF959A" offset=".398"/>
|
||||
<stop stop-color="#FF9699" offset=".406"/>
|
||||
<stop stop-color="#FF9798" offset=".414"/>
|
||||
<stop stop-color="#FF9897" offset=".422"/>
|
||||
<stop stop-color="#FF9996" offset=".43"/>
|
||||
<stop stop-color="#FF9A96" offset=".438"/>
|
||||
<stop stop-color="#FF9B95" offset=".445"/>
|
||||
<stop stop-color="#FF9C94" offset=".453"/>
|
||||
<stop stop-color="#FF9D93" offset=".461"/>
|
||||
<stop stop-color="#FF9E92" offset=".469"/>
|
||||
<stop stop-color="#FF9F91" offset=".477"/>
|
||||
<stop stop-color="#FFA091" offset=".484"/>
|
||||
<stop stop-color="#FFA190" offset=".492"/>
|
||||
<stop stop-color="#FFA28F" offset=".5"/>
|
||||
<stop stop-color="#FFA38E" offset=".508"/>
|
||||
<stop stop-color="#FFA38D" offset=".516"/>
|
||||
<stop stop-color="#FFA48C" offset=".523"/>
|
||||
<stop stop-color="#FFA58C" offset=".531"/>
|
||||
<stop stop-color="#FFA68B" offset=".539"/>
|
||||
<stop stop-color="#FFA78A" offset=".547"/>
|
||||
<stop stop-color="#FFA889" offset=".555"/>
|
||||
<stop stop-color="#FFA988" offset=".563"/>
|
||||
<stop stop-color="#FFAA87" offset=".57"/>
|
||||
<stop stop-color="#FFAB87" offset=".578"/>
|
||||
<stop stop-color="#FFAC86" offset=".586"/>
|
||||
<stop stop-color="#FFAD85" offset=".594"/>
|
||||
<stop stop-color="#FFAE84" offset=".602"/>
|
||||
<stop stop-color="#FFAF83" offset=".609"/>
|
||||
<stop stop-color="#FFB082" offset=".617"/>
|
||||
<stop stop-color="#FFB182" offset=".625"/>
|
||||
<stop stop-color="#FFB281" offset=".633"/>
|
||||
<stop stop-color="#FFB280" offset=".641"/>
|
||||
<stop stop-color="#FFB37F" offset=".648"/>
|
||||
<stop stop-color="#FFB47E" offset=".656"/>
|
||||
<stop stop-color="#FFB57D" offset=".664"/>
|
||||
<stop stop-color="#FFB67D" offset=".672"/>
|
||||
<stop stop-color="#FFB77C" offset=".68"/>
|
||||
<stop stop-color="#FFB87B" offset=".688"/>
|
||||
<stop stop-color="#FFB97A" offset=".695"/>
|
||||
<stop stop-color="#FFBA79" offset=".703"/>
|
||||
<stop stop-color="#FFBB78" offset=".711"/>
|
||||
<stop stop-color="#FFBC78" offset=".719"/>
|
||||
<stop stop-color="#FFBD77" offset=".727"/>
|
||||
<stop stop-color="#FFBE76" offset=".734"/>
|
||||
<stop stop-color="#FFBF75" offset=".742"/>
|
||||
<stop stop-color="#FFC074" offset=".75"/>
|
||||
<stop stop-color="#FFC173" offset=".758"/>
|
||||
<stop stop-color="#FFC173" offset=".766"/>
|
||||
<stop stop-color="#FFC272" offset=".773"/>
|
||||
<stop stop-color="#FFC371" offset=".781"/>
|
||||
<stop stop-color="#FFC470" offset=".789"/>
|
||||
<stop stop-color="#FFC56F" offset=".797"/>
|
||||
<stop stop-color="#FFC66E" offset=".805"/>
|
||||
<stop stop-color="#FFC76D" offset=".813"/>
|
||||
<stop stop-color="#FFC86D" offset=".82"/>
|
||||
<stop stop-color="#FFC96C" offset=".828"/>
|
||||
<stop stop-color="#FFCA6B" offset=".836"/>
|
||||
<stop stop-color="#FFCB6A" offset=".844"/>
|
||||
<stop stop-color="#FFCC69" offset=".852"/>
|
||||
<stop stop-color="#FFCD68" offset=".859"/>
|
||||
<stop stop-color="#FFCE68" offset=".867"/>
|
||||
<stop stop-color="#FFCF67" offset=".875"/>
|
||||
<stop stop-color="#FFD066" offset=".883"/>
|
||||
<stop stop-color="#FFD065" offset=".891"/>
|
||||
<stop stop-color="#FFD164" offset=".898"/>
|
||||
<stop stop-color="#FFD263" offset=".906"/>
|
||||
<stop stop-color="#FFD363" offset=".914"/>
|
||||
<stop stop-color="#FFD462" offset=".922"/>
|
||||
<stop stop-color="#FFD561" offset=".93"/>
|
||||
<stop stop-color="#FFD660" offset=".938"/>
|
||||
<stop stop-color="#FFD75F" offset=".945"/>
|
||||
<stop stop-color="#FFD85E" offset=".953"/>
|
||||
<stop stop-color="#FFD95E" offset=".961"/>
|
||||
<stop stop-color="#FFDA5D" offset=".969"/>
|
||||
<stop stop-color="#FFDB5C" offset=".977"/>
|
||||
<stop stop-color="#FFDC5B" offset=".984"/>
|
||||
<stop stop-color="#FFDD5A" offset=".992"/>
|
||||
<stop stop-color="#FFDE59" offset="1"/>
|
||||
</linearGradient>
|
||||
<linearGradient x1="4.942" gradientTransform="matrix(.84761 0 0 .84761 275.772 290.808)" y1="128" x2="336.392" gradientUnits="userSpaceOnUse" y2="128" id="logo_f">
|
||||
<stop stop-color="#FF66C4" offset="0"/>
|
||||
<stop stop-color="#FF66C4" offset=".008"/>
|
||||
<stop stop-color="#FF67C3" offset=".016"/>
|
||||
<stop stop-color="#FF68C2" offset=".023"/>
|
||||
<stop stop-color="#FF69C1" offset=".031"/>
|
||||
<stop stop-color="#FF6AC0" offset=".039"/>
|
||||
<stop stop-color="#FF6BBF" offset=".047"/>
|
||||
<stop stop-color="#FF6CBF" offset=".055"/>
|
||||
<stop stop-color="#FF6DBE" offset=".063"/>
|
||||
<stop stop-color="#FF6EBD" offset=".07"/>
|
||||
<stop stop-color="#FF6FBC" offset=".078"/>
|
||||
<stop stop-color="#FF70BB" offset=".086"/>
|
||||
<stop stop-color="#FF71BA" offset=".094"/>
|
||||
<stop stop-color="#FF72BA" offset=".102"/>
|
||||
<stop stop-color="#FF73B9" offset=".109"/>
|
||||
<stop stop-color="#FF74B8" offset=".117"/>
|
||||
<stop stop-color="#FF75B7" offset=".125"/>
|
||||
<stop stop-color="#FF75B6" offset=".133"/>
|
||||
<stop stop-color="#FF76B5" offset=".141"/>
|
||||
<stop stop-color="#FF77B5" offset=".148"/>
|
||||
<stop stop-color="#FF78B4" offset=".156"/>
|
||||
<stop stop-color="#FF79B3" offset=".164"/>
|
||||
<stop stop-color="#FF7AB2" offset=".172"/>
|
||||
<stop stop-color="#FF7BB1" offset=".18"/>
|
||||
<stop stop-color="#FF7CB0" offset=".188"/>
|
||||
<stop stop-color="#FF7DB0" offset=".195"/>
|
||||
<stop stop-color="#FF7EAF" offset=".203"/>
|
||||
<stop stop-color="#FF7FAE" offset=".211"/>
|
||||
<stop stop-color="#FF80AD" offset=".219"/>
|
||||
<stop stop-color="#FF81AC" offset=".227"/>
|
||||
<stop stop-color="#FF82AB" offset=".234"/>
|
||||
<stop stop-color="#FF83AB" offset=".242"/>
|
||||
<stop stop-color="#FF84AA" offset=".25"/>
|
||||
<stop stop-color="#FF84A9" offset=".258"/>
|
||||
<stop stop-color="#FF85A8" offset=".266"/>
|
||||
<stop stop-color="#FF86A7" offset=".273"/>
|
||||
<stop stop-color="#FF87A6" offset=".281"/>
|
||||
<stop stop-color="#FF88A6" offset=".289"/>
|
||||
<stop stop-color="#FF89A5" offset=".297"/>
|
||||
<stop stop-color="#FF8AA4" offset=".305"/>
|
||||
<stop stop-color="#FF8BA3" offset=".313"/>
|
||||
<stop stop-color="#FF8CA2" offset=".32"/>
|
||||
<stop stop-color="#FF8DA1" offset=".328"/>
|
||||
<stop stop-color="#FF8EA1" offset=".336"/>
|
||||
<stop stop-color="#FF8FA0" offset=".344"/>
|
||||
<stop stop-color="#FF909F" offset=".352"/>
|
||||
<stop stop-color="#FF919E" offset=".359"/>
|
||||
<stop stop-color="#FF929D" offset=".367"/>
|
||||
<stop stop-color="#FF939C" offset=".375"/>
|
||||
<stop stop-color="#FF949C" offset=".383"/>
|
||||
<stop stop-color="#FF949B" offset=".391"/>
|
||||
<stop stop-color="#FF959A" offset=".398"/>
|
||||
<stop stop-color="#FF9699" offset=".406"/>
|
||||
<stop stop-color="#FF9798" offset=".414"/>
|
||||
<stop stop-color="#FF9897" offset=".422"/>
|
||||
<stop stop-color="#FF9996" offset=".43"/>
|
||||
<stop stop-color="#FF9A96" offset=".438"/>
|
||||
<stop stop-color="#FF9B95" offset=".445"/>
|
||||
<stop stop-color="#FF9C94" offset=".453"/>
|
||||
<stop stop-color="#FF9D93" offset=".461"/>
|
||||
<stop stop-color="#FF9E92" offset=".469"/>
|
||||
<stop stop-color="#FF9F91" offset=".477"/>
|
||||
<stop stop-color="#FFA091" offset=".484"/>
|
||||
<stop stop-color="#FFA190" offset=".492"/>
|
||||
<stop stop-color="#FFA28F" offset=".5"/>
|
||||
<stop stop-color="#FFA38E" offset=".508"/>
|
||||
<stop stop-color="#FFA38D" offset=".516"/>
|
||||
<stop stop-color="#FFA48C" offset=".523"/>
|
||||
<stop stop-color="#FFA58C" offset=".531"/>
|
||||
<stop stop-color="#FFA68B" offset=".539"/>
|
||||
<stop stop-color="#FFA78A" offset=".547"/>
|
||||
<stop stop-color="#FFA889" offset=".555"/>
|
||||
<stop stop-color="#FFA988" offset=".563"/>
|
||||
<stop stop-color="#FFAA87" offset=".57"/>
|
||||
<stop stop-color="#FFAB87" offset=".578"/>
|
||||
<stop stop-color="#FFAC86" offset=".586"/>
|
||||
<stop stop-color="#FFAD85" offset=".594"/>
|
||||
<stop stop-color="#FFAE84" offset=".602"/>
|
||||
<stop stop-color="#FFAF83" offset=".609"/>
|
||||
<stop stop-color="#FFB082" offset=".617"/>
|
||||
<stop stop-color="#FFB182" offset=".625"/>
|
||||
<stop stop-color="#FFB281" offset=".633"/>
|
||||
<stop stop-color="#FFB280" offset=".641"/>
|
||||
<stop stop-color="#FFB37F" offset=".648"/>
|
||||
<stop stop-color="#FFB47E" offset=".656"/>
|
||||
<stop stop-color="#FFB57D" offset=".664"/>
|
||||
<stop stop-color="#FFB67D" offset=".672"/>
|
||||
<stop stop-color="#FFB77C" offset=".68"/>
|
||||
<stop stop-color="#FFB87B" offset=".688"/>
|
||||
<stop stop-color="#FFB97A" offset=".695"/>
|
||||
<stop stop-color="#FFBA79" offset=".703"/>
|
||||
<stop stop-color="#FFBB78" offset=".711"/>
|
||||
<stop stop-color="#FFBC78" offset=".719"/>
|
||||
<stop stop-color="#FFBD77" offset=".727"/>
|
||||
<stop stop-color="#FFBE76" offset=".734"/>
|
||||
<stop stop-color="#FFBF75" offset=".742"/>
|
||||
<stop stop-color="#FFC074" offset=".75"/>
|
||||
<stop stop-color="#FFC173" offset=".758"/>
|
||||
<stop stop-color="#FFC173" offset=".766"/>
|
||||
<stop stop-color="#FFC272" offset=".773"/>
|
||||
<stop stop-color="#FFC371" offset=".781"/>
|
||||
<stop stop-color="#FFC470" offset=".789"/>
|
||||
<stop stop-color="#FFC56F" offset=".797"/>
|
||||
<stop stop-color="#FFC66E" offset=".805"/>
|
||||
<stop stop-color="#FFC76D" offset=".813"/>
|
||||
<stop stop-color="#FFC86D" offset=".82"/>
|
||||
<stop stop-color="#FFC96C" offset=".828"/>
|
||||
<stop stop-color="#FFCA6B" offset=".836"/>
|
||||
<stop stop-color="#FFCB6A" offset=".844"/>
|
||||
<stop stop-color="#FFCC69" offset=".852"/>
|
||||
<stop stop-color="#FFCD68" offset=".859"/>
|
||||
<stop stop-color="#FFCE68" offset=".867"/>
|
||||
<stop stop-color="#FFCF67" offset=".875"/>
|
||||
<stop stop-color="#FFD066" offset=".883"/>
|
||||
<stop stop-color="#FFD065" offset=".891"/>
|
||||
<stop stop-color="#FFD164" offset=".898"/>
|
||||
<stop stop-color="#FFD263" offset=".906"/>
|
||||
<stop stop-color="#FFD363" offset=".914"/>
|
||||
<stop stop-color="#FFD462" offset=".922"/>
|
||||
<stop stop-color="#FFD561" offset=".93"/>
|
||||
<stop stop-color="#FFD660" offset=".938"/>
|
||||
<stop stop-color="#FFD75F" offset=".945"/>
|
||||
<stop stop-color="#FFD85E" offset=".953"/>
|
||||
<stop stop-color="#FFD95E" offset=".961"/>
|
||||
<stop stop-color="#FFDA5D" offset=".969"/>
|
||||
<stop stop-color="#FFDB5C" offset=".977"/>
|
||||
<stop stop-color="#FFDC5B" offset=".984"/>
|
||||
<stop stop-color="#FFDD5A" offset=".992"/>
|
||||
<stop stop-color="#FFDE59" offset="1"/>
|
||||
</linearGradient>
|
||||
<linearGradient x1="16.024" gradientTransform="matrix(.55385 0 0 .55385 96.72 92.203)" y1="128" x2="897.319" gradientUnits="userSpaceOnUse" y2="128" id="logo_i">
|
||||
<stop stop-color="#FF66C4" offset="0"/>
|
||||
<stop stop-color="#FF66C4" offset=".008"/>
|
||||
<stop stop-color="#FF67C3" offset=".016"/>
|
||||
<stop stop-color="#FF68C2" offset=".023"/>
|
||||
<stop stop-color="#FF69C1" offset=".031"/>
|
||||
<stop stop-color="#FF6AC0" offset=".039"/>
|
||||
<stop stop-color="#FF6BBF" offset=".047"/>
|
||||
<stop stop-color="#FF6CBF" offset=".055"/>
|
||||
<stop stop-color="#FF6DBE" offset=".063"/>
|
||||
<stop stop-color="#FF6EBD" offset=".07"/>
|
||||
<stop stop-color="#FF6FBC" offset=".078"/>
|
||||
<stop stop-color="#FF70BB" offset=".086"/>
|
||||
<stop stop-color="#FF71BA" offset=".094"/>
|
||||
<stop stop-color="#FF72BA" offset=".102"/>
|
||||
<stop stop-color="#FF73B9" offset=".109"/>
|
||||
<stop stop-color="#FF74B8" offset=".117"/>
|
||||
<stop stop-color="#FF75B7" offset=".125"/>
|
||||
<stop stop-color="#FF75B6" offset=".133"/>
|
||||
<stop stop-color="#FF76B5" offset=".141"/>
|
||||
<stop stop-color="#FF77B5" offset=".148"/>
|
||||
<stop stop-color="#FF78B4" offset=".156"/>
|
||||
<stop stop-color="#FF79B3" offset=".164"/>
|
||||
<stop stop-color="#FF7AB2" offset=".172"/>
|
||||
<stop stop-color="#FF7BB1" offset=".18"/>
|
||||
<stop stop-color="#FF7CB0" offset=".188"/>
|
||||
<stop stop-color="#FF7DB0" offset=".195"/>
|
||||
<stop stop-color="#FF7EAF" offset=".203"/>
|
||||
<stop stop-color="#FF7FAE" offset=".211"/>
|
||||
<stop stop-color="#FF80AD" offset=".219"/>
|
||||
<stop stop-color="#FF81AC" offset=".227"/>
|
||||
<stop stop-color="#FF82AB" offset=".234"/>
|
||||
<stop stop-color="#FF83AB" offset=".242"/>
|
||||
<stop stop-color="#FF84AA" offset=".25"/>
|
||||
<stop stop-color="#FF84A9" offset=".258"/>
|
||||
<stop stop-color="#FF85A8" offset=".266"/>
|
||||
<stop stop-color="#FF86A7" offset=".273"/>
|
||||
<stop stop-color="#FF87A6" offset=".281"/>
|
||||
<stop stop-color="#FF88A6" offset=".289"/>
|
||||
<stop stop-color="#FF89A5" offset=".297"/>
|
||||
<stop stop-color="#FF8AA4" offset=".305"/>
|
||||
<stop stop-color="#FF8BA3" offset=".313"/>
|
||||
<stop stop-color="#FF8CA2" offset=".32"/>
|
||||
<stop stop-color="#FF8DA1" offset=".328"/>
|
||||
<stop stop-color="#FF8EA1" offset=".336"/>
|
||||
<stop stop-color="#FF8FA0" offset=".344"/>
|
||||
<stop stop-color="#FF909F" offset=".352"/>
|
||||
<stop stop-color="#FF919E" offset=".359"/>
|
||||
<stop stop-color="#FF929D" offset=".367"/>
|
||||
<stop stop-color="#FF939C" offset=".375"/>
|
||||
<stop stop-color="#FF949C" offset=".383"/>
|
||||
<stop stop-color="#FF949B" offset=".391"/>
|
||||
<stop stop-color="#FF959A" offset=".398"/>
|
||||
<stop stop-color="#FF9699" offset=".406"/>
|
||||
<stop stop-color="#FF9798" offset=".414"/>
|
||||
<stop stop-color="#FF9897" offset=".422"/>
|
||||
<stop stop-color="#FF9996" offset=".43"/>
|
||||
<stop stop-color="#FF9A96" offset=".438"/>
|
||||
<stop stop-color="#FF9B95" offset=".445"/>
|
||||
<stop stop-color="#FF9C94" offset=".453"/>
|
||||
<stop stop-color="#FF9D93" offset=".461"/>
|
||||
<stop stop-color="#FF9E92" offset=".469"/>
|
||||
<stop stop-color="#FF9F91" offset=".477"/>
|
||||
<stop stop-color="#FFA091" offset=".484"/>
|
||||
<stop stop-color="#FFA190" offset=".492"/>
|
||||
<stop stop-color="#FFA28F" offset=".5"/>
|
||||
<stop stop-color="#FFA38E" offset=".508"/>
|
||||
<stop stop-color="#FFA38D" offset=".516"/>
|
||||
<stop stop-color="#FFA48C" offset=".523"/>
|
||||
<stop stop-color="#FFA58C" offset=".531"/>
|
||||
<stop stop-color="#FFA68B" offset=".539"/>
|
||||
<stop stop-color="#FFA78A" offset=".547"/>
|
||||
<stop stop-color="#FFA889" offset=".555"/>
|
||||
<stop stop-color="#FFA988" offset=".563"/>
|
||||
<stop stop-color="#FFAA87" offset=".57"/>
|
||||
<stop stop-color="#FFAB87" offset=".578"/>
|
||||
<stop stop-color="#FFAC86" offset=".586"/>
|
||||
<stop stop-color="#FFAD85" offset=".594"/>
|
||||
<stop stop-color="#FFAE84" offset=".602"/>
|
||||
<stop stop-color="#FFAF83" offset=".609"/>
|
||||
<stop stop-color="#FFB082" offset=".617"/>
|
||||
<stop stop-color="#FFB182" offset=".625"/>
|
||||
<stop stop-color="#FFB281" offset=".633"/>
|
||||
<stop stop-color="#FFB280" offset=".641"/>
|
||||
<stop stop-color="#FFB37F" offset=".648"/>
|
||||
<stop stop-color="#FFB47E" offset=".656"/>
|
||||
<stop stop-color="#FFB57D" offset=".664"/>
|
||||
<stop stop-color="#FFB67D" offset=".672"/>
|
||||
<stop stop-color="#FFB77C" offset=".68"/>
|
||||
<stop stop-color="#FFB87B" offset=".688"/>
|
||||
<stop stop-color="#FFB97A" offset=".695"/>
|
||||
<stop stop-color="#FFBA79" offset=".703"/>
|
||||
<stop stop-color="#FFBB78" offset=".711"/>
|
||||
<stop stop-color="#FFBC78" offset=".719"/>
|
||||
<stop stop-color="#FFBD77" offset=".727"/>
|
||||
<stop stop-color="#FFBE76" offset=".734"/>
|
||||
<stop stop-color="#FFBF75" offset=".742"/>
|
||||
<stop stop-color="#FFC074" offset=".75"/>
|
||||
<stop stop-color="#FFC173" offset=".758"/>
|
||||
<stop stop-color="#FFC173" offset=".766"/>
|
||||
<stop stop-color="#FFC272" offset=".773"/>
|
||||
<stop stop-color="#FFC371" offset=".781"/>
|
||||
<stop stop-color="#FFC470" offset=".789"/>
|
||||
<stop stop-color="#FFC56F" offset=".797"/>
|
||||
<stop stop-color="#FFC66E" offset=".805"/>
|
||||
<stop stop-color="#FFC76D" offset=".813"/>
|
||||
<stop stop-color="#FFC86D" offset=".82"/>
|
||||
<stop stop-color="#FFC96C" offset=".828"/>
|
||||
<stop stop-color="#FFCA6B" offset=".836"/>
|
||||
<stop stop-color="#FFCB6A" offset=".844"/>
|
||||
<stop stop-color="#FFCC69" offset=".852"/>
|
||||
<stop stop-color="#FFCD68" offset=".859"/>
|
||||
<stop stop-color="#FFCE68" offset=".867"/>
|
||||
<stop stop-color="#FFCF67" offset=".875"/>
|
||||
<stop stop-color="#FFD066" offset=".883"/>
|
||||
<stop stop-color="#FFD065" offset=".891"/>
|
||||
<stop stop-color="#FFD164" offset=".898"/>
|
||||
<stop stop-color="#FFD263" offset=".906"/>
|
||||
<stop stop-color="#FFD363" offset=".914"/>
|
||||
<stop stop-color="#FFD462" offset=".922"/>
|
||||
<stop stop-color="#FFD561" offset=".93"/>
|
||||
<stop stop-color="#FFD660" offset=".938"/>
|
||||
<stop stop-color="#FFD75F" offset=".945"/>
|
||||
<stop stop-color="#FFD85E" offset=".953"/>
|
||||
<stop stop-color="#FFD95E" offset=".961"/>
|
||||
<stop stop-color="#FFDA5D" offset=".969"/>
|
||||
<stop stop-color="#FFDB5C" offset=".977"/>
|
||||
<stop stop-color="#FFDC5B" offset=".984"/>
|
||||
<stop stop-color="#FFDD5A" offset=".992"/>
|
||||
<stop stop-color="#FFDE59" offset="1"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<path d="M1 4C1 2.34315 2.34315 1 4 1H180C181.657 1 183 2.34315 183 4V35C183 36.6569 181.657 38 180 38H4C2.34314 38 1 36.6569 1 35V4Z" fill="black"/>
|
||||
<path d="M1 4C1 2.34315 2.34315 1 4 1H180C181.657 1 183 2.34315 183 4V35C183 36.6569 181.657 38 180 38H4C2.34314 38 1 36.6569 1 35V4Z" stroke="#F6821F" stroke-width="2"/>
|
||||
|
||||
<g transform="translate(14, 7.5) scale(0.04)">
|
||||
<g clip-path="url(#logo_a)">
|
||||
<g clip-path="url(#logo_b)">
|
||||
<path fill="url(#logo_c)" d="M4.188 290.809v216.988h280.94V290.809Zm0 0"/>
|
||||
</g>
|
||||
</g>
|
||||
<g clip-path="url(#logo_d)">
|
||||
<g clip-path="url(#logo_e)">
|
||||
<path fill="url(#logo_f)" d="M279.96 290.809v216.988h280.942V290.809Zm0 0"/>
|
||||
</g>
|
||||
</g>
|
||||
<g clip-path="url(#logo_g)">
|
||||
<g clip-path="url(#logo_h)">
|
||||
<path fill="url(#logo_i)" d="M105.594 92.203v141.785h488.101V92.203Zm0 0"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
<text x="44" y="24.5" font-family="system-ui, -apple-system, sans-serif" font-size="13" font-weight="600" fill="url(#text_gradient)">Open in ToDiagram</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 8.8 KiB |
|
After Width: | Height: | Size: 3.6 KiB |
|
After Width: | Height: | Size: 7.4 KiB |
|
After Width: | Height: | Size: 51 KiB |
|
After Width: | Height: | Size: 135 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 69 KiB |
|
After Width: | Height: | Size: 4.5 KiB |
|
After Width: | Height: | Size: 15 KiB |
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "JSON Crack",
|
||||
"short_name": "JSON Crack",
|
||||
"description": "Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML, CSV and more, into interactive graphs.",
|
||||
"description": "JSON Crack Editor is a tool for visualizing into graphs, analyzing, editing, formatting, querying, transforming and validating JSON, CSV, YAML, XML, and more.",
|
||||
"theme_color": "#36393e",
|
||||
"background_color": "#36393e",
|
||||
"display": "standalone",
|
||||
@@ -0,0 +1,5 @@
|
||||
User-agent: *
|
||||
|
||||
Allow: /
|
||||
|
||||
Sitemap: https://jsoncrack.com/sitemap.xml
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
|
||||
<url><loc>https://jsoncrack.com</loc><changefreq>never</changefreq><priority>0.7</priority></url>
|
||||
<url><loc>https://jsoncrack.com/docs</loc><changefreq>never</changefreq><priority>0.7</priority></url>
|
||||
<url><loc>https://jsoncrack.com/editor</loc><changefreq>never</changefreq><priority>0.7</priority></url>
|
||||
<url><loc>https://jsoncrack.com/legal/privacy</loc><changefreq>never</changefreq><priority>0.7</priority></url>
|
||||
<url><loc>https://jsoncrack.com/legal/terms</loc><changefreq>never</changefreq><priority>0.7</priority></url>
|
||||
</urlset>
|
||||
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
<sitemap><loc>https://jsoncrack.com/sitemap-0.xml</loc></sitemap>
|
||||
</sitemapindex>
|
||||
@@ -0,0 +1 @@
|
||||
export {};
|
||||
@@ -0,0 +1,45 @@
|
||||
import { createGlobalStyle } from "styled-components";
|
||||
|
||||
const GlobalStyle = createGlobalStyle`
|
||||
html, body {
|
||||
background: #ffffff;
|
||||
overscroll-behavior: none;
|
||||
-webkit-font-smoothing: subpixel-antialiased !important;
|
||||
}
|
||||
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
scroll-behavior: smooth !important;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
-webkit-font-smoothing: never;
|
||||
}
|
||||
|
||||
.hide {
|
||||
display: none;
|
||||
}
|
||||
|
||||
svg {
|
||||
vertical-align: text-top;
|
||||
}
|
||||
|
||||
a {
|
||||
color: unset;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
button {
|
||||
border: none;
|
||||
outline: none;
|
||||
background: transparent;
|
||||
width: fit-content;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
`;
|
||||
|
||||
export default GlobalStyle;
|
||||
@@ -0,0 +1,6 @@
|
||||
export const NODE_DIMENSIONS = {
|
||||
ROW_HEIGHT: 30, // Regular row height
|
||||
PARENT_HEIGHT: 36, // Height for parent nodes
|
||||
} as const;
|
||||
|
||||
export const SUPPORTED_LIMIT = +(process.env.NEXT_PUBLIC_NODE_LIMIT as string);
|
||||