Add an animated WebGL hero to the landing page: a rotating 3D graph of glowing "agent" nodes connected by energy edges, with bright task pulses traveling between agents (the AI-agent-economy metaphor). Brand indigo->purple->cyan. - react-three-fiber + three, lazy-loaded so the ~850KB three.js bundle is a separate chunk and never blocks first paint (main bundle stays ~66KB gzip). - Degrades gracefully: WebGL capability probe + error boundary + context-loss handler fall back to the existing CSS orbs when WebGL is unavailable. - Honors prefers-reduced-motion (static frame), pauses offscreen via IntersectionObserver, scales node count on mobile, caps DPR.
26 lines
566 B
JSON
26 lines
566 B
JSON
{
|
|
"name": "@clawchain/landing",
|
|
"version": "1.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc && vite build",
|
|
"preview": "vite preview"
|
|
},
|
|
"dependencies": {
|
|
"@react-three/drei": "^10.7.7",
|
|
"@react-three/fiber": "^9.6.1",
|
|
"react": "^19.0.0",
|
|
"react-dom": "^19.0.0",
|
|
"three": "^0.171.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/react": "^19.0.0",
|
|
"@types/react-dom": "^19.0.0",
|
|
"@types/three": "^0.171.0",
|
|
"@vitejs/plugin-react": "^4.3.0",
|
|
"typescript": "^5.4.0",
|
|
"vite": "^6.0.0"
|
|
}
|
|
}
|