How netrumlabs/testnet-web works
This is a Next.js testnet dapp dashboard. Users enter the app to manage wallet-linked profiles and use dashboard features for points and tasks, contract submissions, AI chat, and weekly mint verification; settings and social connections support those activities. The tree shows these distinct product areas, while sampled API handlers establish the request-to-server pattern. Source excerpts and index references confirm only some links, so unsampled feature wiring is intentionally not inferred; the README provides no additional capability documentation.
Main entry points: page.tsx Dapp dashboard · api API handlers · client.ts Server API client · ui UI components
Components 23
Dashboard experience
- Dapp dashboard
src/app/(app)/Dapp/page.tsx - AI chat
src/app/(app)/Dapp/chat - Contract interaction
src/app/(app)/Dapp/interaction - Profile settings
src/app/(app)/Dapp/settings - Theme customization
src/components/theme-customizer.tsx - UI components
src/components/ui - Mobile detection
src/hooks/use-mobile.ts
Points and engagement
- Points system
src/app/(app)/Dapp/points-system - Weekly mint
src/app/(app)/Dapp/weekly - Discord tasks
src/app/(app)/Dapp/discord-task
Wallet and integrations
- Social connections
src/app/api/social-connect - Wallet connection
src/lib/wagmi.ts
API and server
- API handlers
src/app/api - Server API client
src/lib/server/client.ts - Profile service
src/lib/server/profile.ts - Global deployments
src/lib/server/global.ts - Discord points service
src/lib/server/points-system/discord.ts - Mint verification
src/lib/server/weeks/mint1.ts - Dashboard state
src/store/data.ts - Mail preferences
src/store/mail/data.ts - Theme configuration
src/lib/theme-config.ts
Other components
- User
- Antra server
Connections 24
- User → Dapp dashboard: uses
- Dapp dashboard → AI chat: opens
- Dapp dashboard → Contract interaction: opens
- Dapp dashboard → Points system: opens
- Dapp dashboard → Weekly mint: opens
- Dapp dashboard → Discord tasks: opens
- Dapp dashboard → Profile settings: opens
- Dapp dashboard → Social connections: opens
- Dapp dashboard → Wallet connection: connects
- Theme customization → Theme configuration: reads settings
src/components/theme-customizer.tsx - UI components → Mobile detection: detects viewport
src/components/ui/sidebar.tsx - UI components → UI components: composes controls
- API handlers → Profile service: creates profile
src/app/api/profile/route.ts - API handlers → Profile service: reads profile
src/app/api/profile/avatar/route.ts - API handlers → Global deployments: gets deployments
src/app/api/global/route.ts - API handlers → Discord points service: connects Discord
src/app/api/points-system/discord-Connect/route.ts - API handlers → Mint verification: verifies mint
src/app/api/weeks/mint1/route.ts - Profile service → Server API client: calls API
src/lib/server/profile.ts - Global deployments → Server API client: calls API
src/lib/server/global.ts - Discord points service → Server API client: calls API
src/lib/server/points-system/discord.ts - Mint verification → Server API client: calls API
- Server API client → Antra server: sends requests
src/lib/server/client.ts - Dashboard state → AI chat: supports sessions
- Mail preferences → Profile settings: stores preferences