Frontend
Overview
Next.js 16 App Router app with strict TypeScript, Tailwind v4, and zero off-chain backend services.
A working manual,
edited & set
by Ezra Nahumury
Stack
| Framework | Next.js 16, React 19, App Router |
| Wallet | RainbowKit 2.2 + Wagmi 2.19 + Viem 2.48 |
| Styling | Tailwind CSS v4 + lucide-react + Framer Motion |
| State | TanStack Query 5 |
| Confidential UX | @iexec-nox/handle 0.1.0-beta.10 |
| Backend | None — view contract for indexing |
Folder Structure
▸fe-stealthgive/
rootapp/Next.js App Router pages
layout.tsxroot layout
providers.tsxWagmi · RainbowKit · QueryClient
page.tsxlanding
welcome/first-time onboarding
dashboard/claim · wrap · reveal
campaigns/browse + detail
create/new campaign + AI assist
audit/Campaign.sol audit
api/server route handlers
time/gateway clock probe
ai/5 ChainGPT endpoints
components/view layer
header.tsx
total-raised.tsxpublicDecrypt + auto-retry
campaign-card.tsx
campaign-review.tsxChainGPT risk review
impact-report.tsxChainGPT impact narrative
markdown.tsxlightweight MD renderer
lib/shared utilities
abis.tsauto-generated from forge
addresses.ts
nox.tsSDK wrapper + auth-refresh
clock.tswithCorrectedClock helper
metadata.tsdata: URI parser (UTF-8 safe)
gas.tsArbitrum Sepolia gas overrides
Routes
| / | Landing — hero, features, ChainGPT touchpoints, stats |
| /welcome | Three-path onboarding (Donate · Create · Wallet) |
| /dashboard | Claim SGD, wrap to cSGD, reveal balance |
| /campaigns | Browse all campaigns (paginated) |
| /campaigns/[address] | Detail · donate · settle · withdraw · refund |
| /create | Form + AI draft + AI hero image |
| /audit | Standalone full audit of Campaign.sol |