You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add @trustin/txgraph-core multi-source data layer and embed demo in docs
- Create packages/core with DataSource adapter interface, GraphBuilder (BFS),
and adapters for TrustIn, Etherscan, and Tronscan
- Add rate limiter, BigInt amount formatter, and transaction aggregator
- Update demo to support data source selection (TrustIn vs On-Chain)
- Embed built demo as iframe in docs site with /demo nav entry
- Update docs to link to live demo instead of v2.trustin.info
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@@ -32,6 +30,10 @@ Each node (address) is colored by risk:
32
30
| 🟢 Green | Low | Verified exchange, known entity |
33
31
| ⚫ Gray | Unknown | No data available |
34
32
33
+
::: tip
34
+
Risk scoring and entity tags are only available when using the **TrustIn** data source. On-Chain mode shows all nodes as "unknown" risk.
35
+
:::
36
+
35
37
### Expanding the Graph
36
38
37
39
- Click any node to see its details
@@ -44,11 +46,11 @@ Switch between two renderers:
44
46
-**ReactFlow** — best for interactive exploration, drag nodes, zoom
45
47
-**Sigma.js** — best for large graphs (1000+ nodes), WebGL-accelerated
46
48
47
-
## When to use TrustIn Explorer
49
+
## When to use the Demo
48
50
49
-
✅ Quick investigation — need an answer now
50
-
✅ No technical setup required
51
-
✅ Full feature set including AI risk scoring
51
+
✅ Quick investigation — need an answer now
52
+
✅ No technical setup required
53
+
✅ Compare TrustIn vs on-chain data
52
54
✅ Regular compliance checks
53
55
54
56
→ For programmatic access, see [Layer 2: AI Agent API](/guide/layer2-agent). To run locally, see [Layer 3: Local Demo](/guide/layer3-demo). To embed in your own app, see [Layer 4: Build Your Own](/guide/layer4-component).
Copy file name to clipboardExpand all lines: docs/guide/layer3-demo.md
+19-10Lines changed: 19 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,10 @@
1
1
# 💻 Run Demo Locally
2
2
3
-
Run TxGraph as a local Vite app connected to the TrustIn API. Ideal for evaluation, internal tooling, or as a starting point for your own integration.
3
+
Run TxGraph as a local Vite app with multi-source support (TrustIn API or on-chain via Etherscan/Tronscan). Ideal for evaluation, internal tooling, or as a starting point for your own integration.
4
+
5
+
::: tip Try without setup
6
+
You can also try the [Live Demo](/demo) directly in this documentation site — no installation needed.
7
+
:::
4
8
5
9
## Prerequisites
6
10
@@ -25,26 +29,31 @@ Open [http://localhost:5173](http://localhost:5173)
25
29
26
30
## Configuration (Optional)
27
31
28
-
The demo works out of the box without any API key. For higher rate limits, create `examples/local-demo/.env`:
32
+
The demo works out of the box without any API key. For higher rate limits or on-chain API keys, create `examples/local-demo/.env`:
29
33
30
34
```env
31
35
VITE_TRUSTIN_API_URL=https://api.trustin.info
32
36
VITE_TRUSTIN_API_KEY=your_api_key_here
37
+
VITE_ETHERSCAN_API_KEY=your_etherscan_key
38
+
VITE_TRONSCAN_API_KEY=your_tronscan_key
33
39
```
34
40
35
41
| Variable | Default | Description |
36
42
|----------|---------|-------------|
37
-
|`VITE_TRUSTIN_API_URL`|`https://api.trustin.info`| API base URL |
38
-
|`VITE_TRUSTIN_API_KEY`| — | Optional API key for higher rate limits |
43
+
|`VITE_TRUSTIN_API_URL`|`https://api.trustin.info`| TrustIn API base URL |
44
+
|`VITE_TRUSTIN_API_KEY`| — | Optional TrustIn API key for higher rate limits |
Copy file name to clipboardExpand all lines: docs/index.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,18 +17,18 @@ hero:
17
17
18
18
features:
19
19
- icon: 🌐
20
-
title: Use TrustIn Explorer
21
-
details: Instantly trace transactions at v2.trustin.info — no setup required. Full-featured AML investigation tool.
22
-
link: /guide/layer1-product
23
-
linkText: Open Explorer
20
+
title: Try Live Demo
21
+
details: Instantly trace transactions in the browser — no setup required. Supports TrustIn API and on-chain data sources (Etherscan, Tronscan).
22
+
link: /demo
23
+
linkText: Open Demo
24
24
- icon: 🤖
25
25
title: AI Agent API
26
26
details: Self-register your AI agent in one request and start tracing addresses immediately. No account needed — 200 requests/day free quota. MCP-compatible.
27
27
link: /guide/layer2-agent
28
28
linkText: Agent Setup
29
29
- icon: 💻
30
-
title: Run Demo Locally
31
-
details: Clone the example project and connect to TrustIn API with your API key. Full control over data and UI.
30
+
title: Run Locally
31
+
details: Clone the repo and run TxGraph locally for full control. Connect to TrustIn API or use on-chain data via Etherscan/Tronscan.
0 commit comments