Fault line
Stop guessing. Start stress-testing.
Crypto is volatile, but your portfolio doesn't have to be blind. Meet Faultline — an institutional-grade crypto risk engine that doesn't just track your bags; it breaks them before the market does.
How it works: Simply input your holdings and run a "Stress Test." Watch as our immersive, glowing WebGL canvas visually simulates orbital collapse under real-world disasters—from the FTX fallout to a stablecoin depeg or a custom 50% BTC crash. Powered by Monte Carlo simulations and real-time API data, Faultline calculates your exact Value at Risk (VaR) and tells you exactly where your portfolio is most vulnerable.
The Potential: This isn't just for retail traders; it's a vital tool for DAO treasuries and institutional investors who need to stress-test their leverage and visualize hidden concentration risks.
The Tech Flex: Built entirely by a dual-AI workflow. Claude architected the enterprise-grade React/TypeScript math engine, while ChatGPT engineered the high-performance Canvas animations and state management. Two AIs, one seamless survival tool.
Ready to see where your portfolio breaks?
Tech stack
- Claude
- ChatGPT
Links
Prompt steps
Step 1
Act as a Senior Frontend Architect and UI/UX Expert. We are building a production-grade crypto risk engine called "Faultline". **STRICT ARCHITECTURAL RULES:** - Stack: React 18, TypeScript, Vite, Tailwind CSS. - DO NOT output a single-file HTML script. This is a professional application. - Output the code file-by-file (e.g., `src/components/Header.tsx`). - Another engineer will handle the Canvas animations, API integrations, and state management (Zustand). Your focus is purely on the UI Components, Tailwind styling, and Pure Math Utilities. ### Project Specs & Visual Design - **Theme**: Institutional Cyberpunk. Tailwind classes for glassmorphism (`backdrop-blur-md`, `bg-slate-900/70`, `border-slate-700/50`). - **Accents**: Neon green (`#4af0c8`) for safe/success, Red (`#ff5577`) for danger. - **Typography**: `Inter` for UI text, `JetBrains Mono` for numbers and prices. - **Layout**: 3-column desktop grid (`w-[360px] flex-1 w-[400px]`), collapsing to a single column on mobile. ### Your Deliverables (Generate these files): **1. `src/types/index.ts`** Define strict TypeScript interfaces for: - `Asset` (symbol, name, id, price, color, vol, icon) - `Holding` (asset symbol, amount)…Step 2
Act as a Senior React Developer. We have a React + TypeScript + Vite project called "Faultline". Another architect has already generated the UI components (`Header.tsx`, `HoldingsPanel.tsx`, `RiskPanel.tsx`) and pure math functions (`src/utils/math.ts`). Your job is to write the state management, API services, and the Canvas animation engine. ### Your Deliverables: **1. `src/store/usePortfolioStore.ts`** Use Zustand for state management. Define the store with: - State: `holdings`, `debt`, `assets` (default list of 12 coins), `activeTab`, `scenario`, `severity`, `results`, `isSimulating`. - Actions: `addHolding`, `removeHolding`, `updateAmount`, `setDebt`, `setScenario`, `setSeverity`, `runSimulation` (which calls the math utilities), `optimize`. **2. `src/services/api.ts`** - `fetchLivePrices(assetIds: string[])`: Connects to CoinGecko `/simple/price` API. Returns a record of `{ [id]: { usd: number } }`. Handle rate limits and errors gracefully. **3. `src/components/CenterStage.tsx` (The Canvas Core)** - Create a React component with a `<canvas>` element. - Write a `useEffect` that handles a `requestAnimationFrame` loop. - Draw the "Live Motion Wallpaper": - A central glo…
7 likes · 2 comments · 11 views
Comments (2)
Nice build
This is an exceptional development.
Integrating institutional-grade risk methodologies, such as Monte Carlo simulations and Value at Risk (VaR), provides a sophisticated alternative to traditional portfolio tracking.