@eqtylab/explorer 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.api +6 -0
- package/.env.iframe +2 -0
- package/.env.manifest +2 -0
- package/.envrc +1 -0
- package/.eslintrc.cjs +17 -0
- package/.github/workflows/ci.yml +46 -0
- package/.github/workflows/publish.yml +44 -0
- package/.husky/pre-push +2 -0
- package/.prettierignore +2 -0
- package/.prettierrc.json +13 -0
- package/LICENSE +201 -0
- package/README.md +84 -0
- package/flake.lock +61 -0
- package/flake.nix +23 -0
- package/index.html +13 -0
- package/package.json +93 -0
- package/postcss.config.js +5 -0
- package/public/logos/eci.svg +23 -0
- package/public/logos/eqty.svg +3 -0
- package/public/manifests/B-200-merged.json +773 -0
- package/public/manifests/amd-sev.json +426 -0
- package/public/manifests/anchors.json +609 -0
- package/public/manifests/association-no-metadata.json +1393 -0
- package/public/manifests/association.json +1402 -0
- package/public/manifests/eqty-docker.json +562 -0
- package/public/manifests/governance.json +1324 -0
- package/public/manifests/intel-tdx-with-nvidia.json +441 -0
- package/public/manifests/intel-tdx.json +404 -0
- package/public/manifests/iroh-collections.json +1285 -0
- package/public/manifests/model-signing.json +1536 -0
- package/public/manifests/multiple-registrations.json +129 -0
- package/public/manifests/no-vcs.json +114 -0
- package/public/manifests/storage.json +294 -0
- package/public/manifests/sub-graphs.json +1 -0
- package/src/animations/variants.ts +52 -0
- package/src/app/apiClient/integrityService/fetchAttributes.ts +29 -0
- package/src/app/apiClient/integrityService/fetchManifest.ts +28 -0
- package/src/app/apiClient/integrityService/types.ts +12 -0
- package/src/app/components/integrityService/IntegrityService.tsx +105 -0
- package/src/app/components/integrityService/components/AuthButton.tsx +26 -0
- package/src/app/components/integrityService/components/FiltersModal.tsx +214 -0
- package/src/app/components/integrityService/components/FiltersToggle.tsx +28 -0
- package/src/app/components/manifestViewer/ManifestViewer.tsx +90 -0
- package/src/app/components/manifestViewer/components/ManifestButtons.tsx +215 -0
- package/src/app/config.json +23 -0
- package/src/app/config.ts +28 -0
- package/src/app/pages/index.tsx +34 -0
- package/src/app/stores/manifestStore.ts +19 -0
- package/src/app/utils/appMode.ts +37 -0
- package/src/assets/fonts/TWKLausanne-300.woff +0 -0
- package/src/assets/fonts/TWKLausanne-300.woff2 +0 -0
- package/src/assets/fonts/TWKLausanne-400.woff +0 -0
- package/src/assets/fonts/TWKLausanne-400.woff2 +0 -0
- package/src/assets/fonts/TWKLausanne-500.woff +0 -0
- package/src/assets/fonts/TWKLausanne-500.woff2 +0 -0
- package/src/assets/fonts/TWKLausanne-600.woff +0 -0
- package/src/assets/fonts/TWKLausanne-600.woff2 +0 -0
- package/src/assets/vectors/eqtylab.svg +6 -0
- package/src/components/app-header.tsx +61 -0
- package/src/components/dark-mode-switch.tsx +16 -0
- package/src/components/ui/accordion.tsx +47 -0
- package/src/components/ui/certificate-chain.tsx +60 -0
- package/src/components/ui/certificate-code.tsx +39 -0
- package/src/components/ui/details.tsx +20 -0
- package/src/components/ui/display-code.tsx +47 -0
- package/src/components/ui/panel-label.tsx +12 -0
- package/src/components/ui/verify-state-badge.tsx +32 -0
- package/src/explorer-component/LineageExplorer.tsx +89 -0
- package/src/explorer-component/components/CustomEdge.tsx +28 -0
- package/src/explorer-component/components/LineageFlow.tsx +220 -0
- package/src/explorer-component/components/NodeIconLoader.tsx +26 -0
- package/src/explorer-component/components/nodes/ComputationNode.tsx +56 -0
- package/src/explorer-component/components/nodes/CustomNode.tsx +112 -0
- package/src/explorer-component/components/nodes/index.ts +4 -0
- package/src/explorer-component/components/nodes/nodes.tsx +144 -0
- package/src/explorer-component/components/nodes/types.ts +167 -0
- package/src/explorer-component/components/sidebar/SectionList.tsx +54 -0
- package/src/explorer-component/components/sidebar/SectionTitle.tsx +10 -0
- package/src/explorer-component/components/sidebar/Sidebar.tsx +70 -0
- package/src/explorer-component/components/sidebar/SidebarWrapper.tsx +76 -0
- package/src/explorer-component/components/sidebar/sections/CustomSection.tsx +238 -0
- package/src/explorer-component/components/sidebar/sections/FileViewer.tsx +229 -0
- package/src/explorer-component/components/sidebar/sections/GovernanceSection.tsx +52 -0
- package/src/explorer-component/components/sidebar/sections/RegistrationSection.tsx +254 -0
- package/src/explorer-component/components/sidebar/sections/SigstoreSection.tsx +37 -0
- package/src/explorer-component/components/sidebar/sections/StorageSection.tsx +73 -0
- package/src/explorer-component/components/sidebar/sections/custom/IrohCollectionsView.tsx +139 -0
- package/src/explorer-component/components/sidebar/sections/registration/VerificationIcon.tsx +108 -0
- package/src/explorer-component/components/sidebar/sections/registration/actor/ActorBadge.tsx +62 -0
- package/src/explorer-component/components/sidebar/sections/registration/actor/svg/AMDLogo.tsx +40 -0
- package/src/explorer-component/components/sidebar/sections/registration/actor/svg/AzureLogo.tsx +65 -0
- package/src/explorer-component/components/sidebar/sections/registration/actor/svg/IntelLogo.tsx +24 -0
- package/src/explorer-component/components/sidebar/sections/registration/actor/svg/NvidiaLogo.tsx +27 -0
- package/src/explorer-component/components/sidebar/sections/registration/verifierClient.ts +13 -0
- package/src/explorer-component/icons/AttributionIcon.svg +6 -0
- package/src/explorer-component/icons/BenchmarkIcon.svg +6 -0
- package/src/explorer-component/icons/BenchmarkResultIcon.svg +6 -0
- package/src/explorer-component/icons/CertificateIcon.svg +6 -0
- package/src/explorer-component/icons/CodeIcon.svg +6 -0
- package/src/explorer-component/icons/ComputationIcon.svg +6 -0
- package/src/explorer-component/icons/DataIcon.svg +6 -0
- package/src/explorer-component/icons/DatabaseIcon.svg +6 -0
- package/src/explorer-component/icons/DatasetIcon.svg +6 -0
- package/src/explorer-component/icons/DeltaLakeIcon.svg +7 -0
- package/src/explorer-component/icons/DocumentIcon.svg +6 -0
- package/src/explorer-component/icons/MediaIcon.svg +6 -0
- package/src/explorer-component/icons/ModelIcon.svg +6 -0
- package/src/explorer-component/icons/TeamIcon.svg +3 -0
- package/src/explorer-component/icons/TokenIcon.svg +6 -0
- package/src/explorer-component/icons/UnknownIcon.svg +6 -0
- package/src/explorer-component/icons/index.ts +35 -0
- package/src/explorer-component/index.ts +5 -0
- package/src/explorer-component/integrityTypes/AnchorTypes.ts +31 -0
- package/src/explorer-component/integrityTypes/StatementTypes.ts +333 -0
- package/src/explorer-component/integrityTypes/VCTypes.ts +85 -0
- package/src/explorer-component/integrityTypes/types.ts +3 -0
- package/src/explorer-component/utils/config.ts +163 -0
- package/src/explorer-component/utils/formatTimestamp.ts +5 -0
- package/src/explorer-component/utils/generateGraph.ts +271 -0
- package/src/explorer-component/utils/layoutGraph.ts +148 -0
- package/src/explorer-component/utils/resolveIrohBlobs.ts +117 -0
- package/src/explorer-component/utils/statementHelpers.ts +252 -0
- package/src/explorer-component/utils/stripPrefix.ts +4 -0
- package/src/hooks/use-mobile.tsx +19 -0
- package/src/index.ts +3 -0
- package/src/lib/resource-types.ts +31 -0
- package/src/lib/use-escape-key.tsx +16 -0
- package/src/lib/utils.ts +19 -0
- package/src/main.css +82 -0
- package/src/main.tsx +39 -0
- package/src/v-comp-viewer/components/container-did-details.tsx +53 -0
- package/src/v-comp-viewer/components/system-did-details.tsx +356 -0
- package/src/v-comp-viewer/useVComp.ts +196 -0
- package/src/v-comp-viewer/utils.tsx +824 -0
- package/src/vite-env.d.ts +1 -0
- package/tsconfig.json +33 -0
- package/tsconfig.node.json +10 -0
- package/vercel.json +13 -0
- package/vite.app.config.ts +48 -0
- package/vite.lib.config.ts +61 -0
package/.env.api
ADDED
package/.env.iframe
ADDED
package/.env.manifest
ADDED
package/.envrc
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
use flake
|
package/.eslintrc.cjs
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
root: true,
|
|
3
|
+
env: { browser: true, es2020: true },
|
|
4
|
+
extends: [
|
|
5
|
+
"eslint:recommended",
|
|
6
|
+
"plugin:@typescript-eslint/recommended",
|
|
7
|
+
"plugin:react-hooks/recommended",
|
|
8
|
+
"plugin:prettier/recommended",
|
|
9
|
+
],
|
|
10
|
+
ignorePatterns: ["dist", ".eslintrc.cjs"],
|
|
11
|
+
parser: "@typescript-eslint/parser",
|
|
12
|
+
plugins: ["react-refresh", "prettier"],
|
|
13
|
+
rules: {
|
|
14
|
+
"react-refresh/only-export-components": ["warn", { allowConstantExport: true }],
|
|
15
|
+
"prettier/prettier": "warn",
|
|
16
|
+
},
|
|
17
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
|
|
9
|
+
concurrency:
|
|
10
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
11
|
+
cancel-in-progress: true
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
ci-check:
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v4
|
|
18
|
+
|
|
19
|
+
- name: Install Nix
|
|
20
|
+
uses: eqtylab-actions/install-nix-action@v31
|
|
21
|
+
with:
|
|
22
|
+
nix_path: nixpkgs=channel:nixos-unstable
|
|
23
|
+
|
|
24
|
+
- name: Cachix
|
|
25
|
+
uses: eqtylab-actions/cachix-action@v14
|
|
26
|
+
with:
|
|
27
|
+
name: eqtylab
|
|
28
|
+
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
|
29
|
+
skipPush: true
|
|
30
|
+
continue-on-error: true
|
|
31
|
+
|
|
32
|
+
- name: Build nix shell
|
|
33
|
+
run: nix develop . -c true
|
|
34
|
+
|
|
35
|
+
- name: Install dependencies
|
|
36
|
+
run: nix develop -c pnpm install --frozen-lockfile
|
|
37
|
+
|
|
38
|
+
- name: Check formatting
|
|
39
|
+
run: nix develop -c pnpm format:check
|
|
40
|
+
|
|
41
|
+
- name: Lint
|
|
42
|
+
run: nix develop -c pnpm lint
|
|
43
|
+
continue-on-error: true
|
|
44
|
+
|
|
45
|
+
- name: Typecheck
|
|
46
|
+
run: nix develop -c pnpm typecheck
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
name: Publish
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
publish:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
steps:
|
|
13
|
+
- uses: actions/checkout@v4
|
|
14
|
+
|
|
15
|
+
- name: Install Nix
|
|
16
|
+
uses: eqtylab-actions/install-nix-action@v31
|
|
17
|
+
with:
|
|
18
|
+
nix_path: nixpkgs=channel:nixos-unstable
|
|
19
|
+
|
|
20
|
+
- name: Cachix
|
|
21
|
+
uses: eqtylab-actions/cachix-action@v14
|
|
22
|
+
with:
|
|
23
|
+
name: eqtylab
|
|
24
|
+
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
|
25
|
+
skipPush: true
|
|
26
|
+
continue-on-error: true
|
|
27
|
+
|
|
28
|
+
- name: Build nix shell
|
|
29
|
+
run: nix develop . -c true
|
|
30
|
+
|
|
31
|
+
- name: Install dependencies
|
|
32
|
+
run: nix develop -c pnpm install --frozen-lockfile
|
|
33
|
+
|
|
34
|
+
- name: Set version from release tag
|
|
35
|
+
run: nix develop -c npm version "${{ github.ref_name }}" --no-git-tag-version --allow-same-version
|
|
36
|
+
|
|
37
|
+
- name: Add commit hash to description
|
|
38
|
+
run: 'nix develop -c npm pkg set "description=Lineage Explorer (commit: ${{ github.sha }})"'
|
|
39
|
+
|
|
40
|
+
- name: Build
|
|
41
|
+
run: nix develop -c pnpm build
|
|
42
|
+
|
|
43
|
+
- name: Publish
|
|
44
|
+
run: nix develop -c pnpm publish --no-git-checks ${{ github.event_name == 'workflow_dispatch' && '--dry-run' || '' }}
|
package/.husky/pre-push
ADDED
package/.prettierignore
ADDED
package/.prettierrc.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"printWidth": 120,
|
|
3
|
+
"tabWidth": 4,
|
|
4
|
+
"useTabs": false,
|
|
5
|
+
"semi": true,
|
|
6
|
+
"singleQuote": false,
|
|
7
|
+
"jsxSingleQuote": false,
|
|
8
|
+
"trailingComma": "all",
|
|
9
|
+
"bracketSpacing": true,
|
|
10
|
+
"bracketSameLine": false,
|
|
11
|
+
"arrowParens": "always",
|
|
12
|
+
"endOfLine": "lf"
|
|
13
|
+
}
|
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# Lineage Explorer
|
|
2
|
+
|
|
3
|
+
A React-based visualization tool for exploring data lineage and computational integrity. Part of the EQTYlab ecosystem, it displays data provenance chains showing how data flows through computational systems, which actors are involved, and what verification statements are attached.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- **Interactive Graph Visualization**: Drag-to-explore canvas with zoom/pan controls using ReactFlow
|
|
8
|
+
- **Detailed Inspector**: Sidebar showing registration, governance, storage, and signature details for selected nodes
|
|
9
|
+
- **Dual Operating Modes**:
|
|
10
|
+
- **Manifest Viewer**: Upload or select sample manifest JSON files to explore
|
|
11
|
+
- **Integrity Service**: Auth0-integrated mode for querying a backend integrity service
|
|
12
|
+
|
|
13
|
+
## Prerequisites
|
|
14
|
+
|
|
15
|
+
This project uses [Nix](https://nixos.org/) for development environment management. Install Nix, then the devshell will provide all required dependencies.
|
|
16
|
+
|
|
17
|
+
Alternatively, ensure you have installed:
|
|
18
|
+
- Node.js
|
|
19
|
+
- pnpm
|
|
20
|
+
|
|
21
|
+
## Local Development
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
# Enter the Nix development shell (if using Nix)
|
|
25
|
+
nix develop
|
|
26
|
+
|
|
27
|
+
# Install dependencies
|
|
28
|
+
pnpm install
|
|
29
|
+
|
|
30
|
+
# Start development server
|
|
31
|
+
pnpm dev
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Available Commands
|
|
35
|
+
|
|
36
|
+
| Command | Description |
|
|
37
|
+
|---------|-------------|
|
|
38
|
+
| `pnpm dev` | Start development server |
|
|
39
|
+
| `pnpm build` | Build both app and library |
|
|
40
|
+
| `pnpm build:app` | Build standalone application |
|
|
41
|
+
| `pnpm build:lib` | Build npm package |
|
|
42
|
+
| `pnpm fmt` | Format code with Prettier |
|
|
43
|
+
| `pnpm format:check` | Check code formatting |
|
|
44
|
+
| `pnpm lint` | Run ESLint |
|
|
45
|
+
| `pnpm lint:fix` | Run ESLint with auto-fix |
|
|
46
|
+
| `pnpm typecheck` | Run TypeScript type checking |
|
|
47
|
+
|
|
48
|
+
## Build Outputs
|
|
49
|
+
|
|
50
|
+
The project produces two build artifacts:
|
|
51
|
+
|
|
52
|
+
1. **Standalone App** (`dist/app/`): Deployed to https://explorer.eqtylab.io
|
|
53
|
+
2. **NPM Package** (`dist/lib/`): Published to npm as `@eqtylab/explorer`
|
|
54
|
+
|
|
55
|
+
## Release
|
|
56
|
+
|
|
57
|
+
Releases are automated via GitHub Actions and triggered by creating a GitHub Release.
|
|
58
|
+
|
|
59
|
+
### How to Release
|
|
60
|
+
|
|
61
|
+
1. Go to the repository's **Releases** page on GitHub
|
|
62
|
+
2. Click **Draft a new release**
|
|
63
|
+
3. Create a new tag with the version number (e.g., `v1.2.3` or `1.2.3`)
|
|
64
|
+
4. Fill in the release title and notes
|
|
65
|
+
5. Click **Publish release**
|
|
66
|
+
|
|
67
|
+
The publish workflow will automatically:
|
|
68
|
+
- Set the package version from the release tag
|
|
69
|
+
- Build the project
|
|
70
|
+
- Publish to npm
|
|
71
|
+
|
|
72
|
+
### Version Management
|
|
73
|
+
|
|
74
|
+
The version in `package.json` is set automatically during CI from the release tag. You do not need to manually update the version in `package.json`.
|
|
75
|
+
|
|
76
|
+
## Configuration
|
|
77
|
+
|
|
78
|
+
See the [configuration documentation](https://eqty-lab.readme.io/update/docs/custom-config#/) for customization options.
|
|
79
|
+
|
|
80
|
+
## Adding Example Manifests
|
|
81
|
+
|
|
82
|
+
1. Add the manifest JSON file to `./public/manifests`
|
|
83
|
+
2. Update the `manifests` section in `./src/app/config.json`
|
|
84
|
+
- The name must match the filename without the extension
|
package/flake.lock
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"nodes": {
|
|
3
|
+
"flake-utils": {
|
|
4
|
+
"inputs": {
|
|
5
|
+
"systems": "systems"
|
|
6
|
+
},
|
|
7
|
+
"locked": {
|
|
8
|
+
"lastModified": 1731533236,
|
|
9
|
+
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
|
10
|
+
"owner": "numtide",
|
|
11
|
+
"repo": "flake-utils",
|
|
12
|
+
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
|
13
|
+
"type": "github"
|
|
14
|
+
},
|
|
15
|
+
"original": {
|
|
16
|
+
"owner": "numtide",
|
|
17
|
+
"repo": "flake-utils",
|
|
18
|
+
"type": "github"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"nixpkgs": {
|
|
22
|
+
"locked": {
|
|
23
|
+
"lastModified": 1769170682,
|
|
24
|
+
"narHash": "sha256-oMmN1lVQU0F0W2k6OI3bgdzp2YOHWYUAw79qzDSjenU=",
|
|
25
|
+
"owner": "NixOS",
|
|
26
|
+
"repo": "nixpkgs",
|
|
27
|
+
"rev": "c5296fdd05cfa2c187990dd909864da9658df755",
|
|
28
|
+
"type": "github"
|
|
29
|
+
},
|
|
30
|
+
"original": {
|
|
31
|
+
"owner": "NixOS",
|
|
32
|
+
"ref": "nixos-unstable",
|
|
33
|
+
"repo": "nixpkgs",
|
|
34
|
+
"type": "github"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"root": {
|
|
38
|
+
"inputs": {
|
|
39
|
+
"flake-utils": "flake-utils",
|
|
40
|
+
"nixpkgs": "nixpkgs"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"systems": {
|
|
44
|
+
"locked": {
|
|
45
|
+
"lastModified": 1681028828,
|
|
46
|
+
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
|
47
|
+
"owner": "nix-systems",
|
|
48
|
+
"repo": "default",
|
|
49
|
+
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
|
50
|
+
"type": "github"
|
|
51
|
+
},
|
|
52
|
+
"original": {
|
|
53
|
+
"owner": "nix-systems",
|
|
54
|
+
"repo": "default",
|
|
55
|
+
"type": "github"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"root": "root",
|
|
60
|
+
"version": 7
|
|
61
|
+
}
|
package/flake.nix
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
inputs = {
|
|
3
|
+
flake-utils.url = "github:numtide/flake-utils";
|
|
4
|
+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
outputs = inputs:
|
|
8
|
+
inputs.flake-utils.lib.eachDefaultSystem (system:
|
|
9
|
+
let
|
|
10
|
+
pkgs = (import (inputs.nixpkgs) { inherit system; });
|
|
11
|
+
in {
|
|
12
|
+
devShell = pkgs.mkShell {
|
|
13
|
+
buildInputs=[
|
|
14
|
+
pkgs.nodejs
|
|
15
|
+
pkgs.pnpm
|
|
16
|
+
pkgs.husky
|
|
17
|
+
pkgs.nodePackages.typescript
|
|
18
|
+
pkgs.nodePackages.typescript-language-server
|
|
19
|
+
];
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
}
|
package/index.html
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en" data-equality-theme="dark">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<link rel="icon" type="image/svg+xml" href="./vite.svg" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
+
<title>Lineage Explorer</title>
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<div id="root"></div>
|
|
11
|
+
<script type="module" src="./src/main.tsx"></script>
|
|
12
|
+
</body>
|
|
13
|
+
</html>
|
package/package.json
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@eqtylab/explorer",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/eqtylab/explorer.git"
|
|
8
|
+
},
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"registry": "https://registry.npmjs.org/"
|
|
11
|
+
},
|
|
12
|
+
"license": "ISC",
|
|
13
|
+
"module": "./dist/lib/explorer.js",
|
|
14
|
+
"types": "./dist/lib/index.d.ts",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"import": "./dist/lib/explorer.js",
|
|
18
|
+
"require": "./dist/lib/explorer.js",
|
|
19
|
+
"types": "./dist/lib/index.d.ts"
|
|
20
|
+
},
|
|
21
|
+
"./style.css": "./dist/lib/style.css"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@auth0/auth0-react": "^2.3.0",
|
|
25
|
+
"@dagrejs/dagre": "^1.0.2",
|
|
26
|
+
"@dagrejs/graphlib": "^2.1.13",
|
|
27
|
+
"@eqtylab/integrity-js": "0.0.0",
|
|
28
|
+
"@eqtylab/equality": "1.0.0",
|
|
29
|
+
"@eqtylab/vcomp-verify-js": "^0.0.0",
|
|
30
|
+
"@fontsource/ibm-plex-mono": "^5.0.2",
|
|
31
|
+
"@radix-ui/react-accordion": "^1.2.3",
|
|
32
|
+
"@xyflow/react": "^12.6.4",
|
|
33
|
+
"bs58": "^6.0.0",
|
|
34
|
+
"class-variance-authority": "^0.7.1",
|
|
35
|
+
"clsx": "^2.1.1",
|
|
36
|
+
"date-fns": "^3.6.0",
|
|
37
|
+
"date-fns-tz": "^3.1.3",
|
|
38
|
+
"framer-motion": "^12.23.24",
|
|
39
|
+
"lucide-react": "^0.486.0",
|
|
40
|
+
"magic-bytes.js": "^1.12.1",
|
|
41
|
+
"multiformats": "^13.3.2",
|
|
42
|
+
"react": "^19.0.0",
|
|
43
|
+
"react-dom": "^19.0.0",
|
|
44
|
+
"react-router-dom": "^6.18.0",
|
|
45
|
+
"react-syntax-highlighter": "^15.6.1",
|
|
46
|
+
"reactflow": "^11.7.2",
|
|
47
|
+
"tailwind-merge": "^2.5.4",
|
|
48
|
+
"uuid": "^11.1.0",
|
|
49
|
+
"zustand": "^4.4.1"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@tailwindcss/postcss": "^4.1.14",
|
|
53
|
+
"@types/node": "^20.12.11",
|
|
54
|
+
"@types/react": "^19.0.0",
|
|
55
|
+
"@types/react-dom": "^19.0.0",
|
|
56
|
+
"@types/react-syntax-highlighter": "^15.5.13",
|
|
57
|
+
"@typescript-eslint/eslint-plugin": "^7.2.0",
|
|
58
|
+
"@typescript-eslint/parser": "^7.2.0",
|
|
59
|
+
"@vitejs/plugin-react": "^4.2.1",
|
|
60
|
+
"depcheck": "^1.4.7",
|
|
61
|
+
"eslint": "^8.57.0",
|
|
62
|
+
"eslint-config-prettier": "^9.1.0",
|
|
63
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
64
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
65
|
+
"eslint-plugin-react-refresh": "^0.4.6",
|
|
66
|
+
"postcss": "^8.4.47",
|
|
67
|
+
"prettier": "^3.3.3",
|
|
68
|
+
"tailwindcss": "^4.1.14",
|
|
69
|
+
"typescript": "^5.4.5",
|
|
70
|
+
"vite": "^5.2.0",
|
|
71
|
+
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
72
|
+
"vite-plugin-static-copy": "^3.0.0",
|
|
73
|
+
"vite-plugin-top-level-await": "^1.4.1",
|
|
74
|
+
"vite-plugin-svgr": "^4.3.0",
|
|
75
|
+
"vite-plugin-wasm": "^3.3.0",
|
|
76
|
+
"vite-plugin-dts": "^4.5.4",
|
|
77
|
+
"vite-plugin-node-polyfills": "^0.24.0"
|
|
78
|
+
},
|
|
79
|
+
"scripts": {
|
|
80
|
+
"manifest": "vite --host --config vite.app.config.ts --mode manifest",
|
|
81
|
+
"api": "vite --host --config vite.app.config.ts --mode api",
|
|
82
|
+
"dev": "vite --config vite.app.config.ts",
|
|
83
|
+
"build:app": "vite build --config vite.app.config.ts --outDir dist/app",
|
|
84
|
+
"build:lib": "vite build --config vite.lib.config.ts --outDir dist/lib",
|
|
85
|
+
"build": "yarn build:app && yarn build:lib",
|
|
86
|
+
"fmt": "prettier --write src",
|
|
87
|
+
"format:check": "prettier --check src",
|
|
88
|
+
"lint": "eslint .",
|
|
89
|
+
"lint:fix": "eslint . --fix",
|
|
90
|
+
"typecheck": "tsc --noEmit",
|
|
91
|
+
"preview": "vite preview --config vite.app.config.ts"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<svg
|
|
2
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
3
|
+
viewBox="0 0 70 40"
|
|
4
|
+
fill="none">
|
|
5
|
+
<path
|
|
6
|
+
d="M43.3438 36.6191V39.9752H26.668V36.6191H43.3438Z"
|
|
7
|
+
fill="black"
|
|
8
|
+
/>
|
|
9
|
+
<path d="M18.2149 0V3.35609H1.53906V0H18.2149Z" fill="black" />
|
|
10
|
+
<path
|
|
11
|
+
d="M3.696 21.1349C3.696 23.0041 4.33322 25.0858 5.86261 26.5302C6.88226 27.5073 8.28417 28.1445 9.98348 28.1445C11.8952 28.1445 12.8723 27.7198 13.9343 26.8701C14.699 26.2753 15.4212 25.2982 15.7186 24.2786H19.2022C18.1826 28.7393 14.4866 31.2883 9.98348 31.2883C7.22209 31.2883 4.88548 30.1412 3.18626 28.4845C0.892087 26.2329 0 23.1316 0 20.0729C0 16.7168 1.10452 13.573 3.18617 11.4489C4.84296 9.79211 7.13704 8.6875 10.0259 8.6875C12.7448 8.6875 15.1238 9.70707 16.6532 11.279C18.6923 13.3606 19.7544 16.5044 19.7544 19.8605V21.1349H3.696ZM14.1043 13.5305C13.0422 12.426 11.6827 11.7887 9.98348 11.7887C5.86261 11.7887 3.90843 15.6122 3.82348 18.1611H15.931C15.8885 16.3343 15.2089 14.6775 14.1043 13.5305V13.5305Z"
|
|
12
|
+
fill="black"
|
|
13
|
+
/>
|
|
14
|
+
<path
|
|
15
|
+
d="M35.5161 8.6875C38.0651 8.6875 40.3592 9.57959 41.8461 11.024C43.2905 12.426 44.3525 14.1678 44.5225 16.5043H40.8689C40.699 15.0174 39.9768 13.9978 39.1696 13.1906C38.32 12.3835 36.9181 11.8312 35.5161 11.8312C33.8168 11.8312 32.4574 12.5109 31.5228 13.3605C29.6961 15.0174 29.1862 17.6513 29.1862 19.9878C29.1862 22.3244 29.6961 24.9158 31.5228 26.5726C32.4574 27.4223 33.8168 28.1445 35.5161 28.1445C36.9181 28.1445 38.32 27.5923 39.1696 26.7851C39.9768 25.9779 40.7415 24.9583 40.9115 23.4714H44.5225C44.3525 25.8079 43.248 27.5923 41.8036 28.9942C40.3168 30.4386 38.0651 31.2882 35.5161 31.2882C32.7973 31.2882 30.3757 30.1837 28.8039 28.6543C26.4674 26.3603 25.4902 23.3865 25.4902 19.9878C25.4902 16.5892 26.4673 13.6154 28.8039 11.3214C30.3758 9.79202 32.7973 8.6875 35.5161 8.6875Z"
|
|
16
|
+
fill="black"
|
|
17
|
+
/>
|
|
18
|
+
<path
|
|
19
|
+
d="M50.5157 30.7345V27.6333H58.2901V12.2971H51.8001V9.23828H61.9435V27.6333H69.7603V30.7345H50.5157Z"
|
|
20
|
+
fill="black"
|
|
21
|
+
/>
|
|
22
|
+
<path d="M68.4747 0V3.35609H51.7988V0H68.4747Z" fill="black" />
|
|
23
|
+
</svg>
|