Initial SvelteKit block explorer for Triangles blockchain

Full-featured explorer consuming the daemon REST API:
- Home dashboard with chain stats, latest blocks, staking info
- Block list with pagination and block detail pages
- Transaction detail with inputs/outputs tables
- Address lookup with balance, UTXOs, and tx history
- Staking dashboard with difficulty chart (Chart.js)
- Network info with peer table
- Mempool viewer
- API documentation page for all 30+ REST endpoints
- Search by block hash, height, txid, or address
- Dark theme with Tailwind CSS v4
- SSR via adapter-node for SEO

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-15 21:04:36 -07:00
commit b6a4bd0418
43 changed files with 3995 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
{
"name": "triangles-explorer",
"version": "1.0.0",
"private": true,
"type": "module",
"scripts": {
"dev": "vite dev",
"build": "vite build",
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json"
},
"devDependencies": {
"@sveltejs/adapter-node": "^5.5.4",
"@sveltejs/kit": "^2.21.0",
"@sveltejs/vite-plugin-svelte": "^5.0.0",
"@tailwindcss/vite": "^4.0.0",
"svelte": "^5.20.0",
"svelte-check": "^4.1.0",
"tailwindcss": "^4.0.0",
"tslib": "^2.8.1",
"typescript": "^5.7.0",
"vite": "^6.2.0"
},
"dependencies": {
"chart.js": "^4.4.0"
}
}