๐ง Joey Developer Dashboard (Vercel + API Integration)
Defines a developer dashboard for testing stock data, GPT prompts, and API endpoints before shipping to a Flutter app.
What this file does
Defines a developer dashboard for testing stock data, GPT prompts, and API endpoints before shipping to a Flutter app.
When to use it
- Building an admin panel for an AI stock assistant
- Need a visual debugger for Yahoo Finance and SEC data
- Want to test GPT prompts before sending to users
- Centralizing API routes and frontend in one Vercel project
Assumes this stack
๐ง Joey Developer Dashboard (Vercel + API Integration)
๐ Purpose
This dashboard is a web-based interface built using Next.js (or Astro) and hosted on Vercel. It acts as the control center for Joeyโs stock intelligence, allowing you to:
- View, verify, and debug live stock data from Yahoo Finance and SEC EDGAR
- Manage API endpoints your Flutter app will connect to
- Experiment with Joeyโs GPT stock summaries before theyโre sent to users
- Train and test Joeyโs tone and logic using real OpenAI GPT API
- See what Joey sees โ in a clean, visual way
- Monitor online users and their portfolio trends (aggregated, anonymized)
- Track system usage, token consumption, and user interactions with GPT
โ Why This Is a Great Idea
| Benefit | Explanation |
|---|---|
| ๐งช Test before going live | View raw data and debug in-browser before sending to app |
| ๐ฏ Centralize logic | API routes + frontend live in one Vercel project |
| ๐ Easier dev workflow | Visual dashboard is faster than app-only testing |
| ๐ง Joey's brain HQ | GPT summaries, insights, and picks โ all editable here |
| ๐ฃ๏ธ Train Joeyโs AI voice | Craft, preview, and fine-tune how Joey responds to users |
| ๐ See user trends | Gain insight into what stocks users are buying and watching |
| ๐ Analyze usage | Track Joey's prompt-response logs and OpenAI token usage |
๐ Product Requirements Document (PRD)
โ Objective
To build a developer/admin dashboard that enables real-time viewing, testing, monitoring, and configuration of the Joey AI stock assistant ecosystem.
๐งฉ Features to Build
| Feature | Type | Description |
|---|---|---|
| Quote Viewer | Page | Query live stock data by ticker using yfinance |
| Pro Picks Viewer | Page | Load and visualize SEC 13F filings by CIK number |
| Discover Preview | Page | Show AI-generated weekly stock recommendations |
| Joey Agent Playground | Page | Test and fine-tune GPT prompts for Joey |
| Prompt Template Manager | Page | Create/edit/save GPT system prompt templates |
| Prompt Logs Viewer | Page | Log history of GPT prompts/responses with rating buttons |
| Market Scanner | Page | Live feed of top movers, high-volume stocks, and trends |
| User Monitor | Page | Show anonymous user activity and trending holdings |
| Analytics Dashboard | Page | Show API call count, token usage, top stocks/questions |
| Admin Tools | Page | Manual cache clear, data push, and error viewer |
| Admin Users | Page | View and manage user accounts, assign Pro roles |
| API Endpoints | Backend | RESTful routes for data and AI integration |
| Supabase Integration | DB Layer | Store and retrieve all user, log, and trend data |
๐ Tech Stack
| Layer | Tech |
|---|---|
| Frontend | Next.js (preferred), TailwindCSS, TypeScript |
| Backend APIs | Node.js API routes in Next.js (or separate Python if needed) |
| Hosting | Vercel (frontend + API routes) |
| GPT Service | OpenAI API (GPT-3.5 or GPT-4) |
| Database | Supabase (PostgreSQL) + Edge Functions if needed |
๐งโ๐ป Dev Notes
- Secure pages with basic admin auth or Supabase auth
- Store OpenAI keys securely in
.env.localand Vercel - Use serverless functions for all API routes to simplify maintenance
- Token tracking and logs should include timestamps, user context, and feedback
- Flutter app must be able to consume all API endpoints via HTTPS
๐งฑ Recommended Structure
joey-dashboard/
โโโ pages/
โ โโโ index.tsx โ Dashboard UI homepage
โ โโโ discover.tsx โ Preview Joey's AI picks
โ โโโ pro-picks.tsx โ View SEC 13F holdings
โ โโโ joey-agent.tsx โ ๐ง Test and train Joeyโs AI responses
โ โโโ users.tsx โ ๐ View online users & portfolio insights
โ โโโ scanner.tsx โ ๐ Real-time stock feed & trending stocks
โ โโโ prompt-logs.tsx โ ๐ View prompt-response history with feedback
โ โโโ templates.tsx โ ๐งฉ Prompt template manager
โ โโโ analytics.tsx โ ๐ Dashboard usage and token tracking
โ โโโ admin/users.tsx โ ๐ Manage user accounts and Pro access
โ โโโ api/
โ โ โโโ quote.ts โ Pull data from yfinance
โ โ โโโ batch-quote.ts โ Multiple stock fetch
โ โ โโโ pro-picks.ts โ SEC filings parser
โ โ โโโ summary.ts โ GPT stock explainer
โ โ โโโ users.ts โ Return active users + stocks (from Supabase)
โ โ โโโ logs.ts โ Joey prompt history storage
โ โ โโโ templates.ts โ Load/save Joey prompts
โ โ โโโ stats.ts โ Token + app usage stats
โโโ components/ โ Cards, charts, tables, AI prompt input
โโโ styles/ โ Dashboard styling
โโโ lib/ โ Supabase and fetch helpers
โโโ .env.local โ API keys, tokens
โโโ vercel.json โ Vercel config
Let me know if you want the dev to also get a UI/UX checklist, milestone tracker, or starter template.
What's inside
13 feature descriptions, 4 tech stack layers, 1 recommended folder structure with 20+ files
Change this for your project
- Replace
joey-dashboardwith your own project name - Replace
Penny2Stock/joey-dashboardwith your own repository URL - Replace
Joeywith your own AI assistant name - Replace
yfinancewith your own data source if not using Yahoo Finance
Where it goes
Keep it in your repository where the agent or team that needs it will read it.
Worth borrowing
- Separating admin pages (users, analytics) from public-facing ones
- Using serverless API routes alongside frontend pages in the same repo
- Including a playground page for testing AI prompts before production
Related Documents
SourceAtlas PRD v2.9.6
Defines the product requirements, architecture, and command interface for an AI-powered codebase understanding assistant integrated into Claude Code.
AGENTS.md โ ShakkaShell v2.0
Guides AI coding agents through building a CLI that translates natural language into offensive security commands, with a defined tech stack, structure, and implementation order.
Fleet Management System - Product Requirements Document (PRD)
Defines functional, non-functional, and technical requirements for a fleet management system with compressed GPS tracking and predictive maintenance.
TracePerf - Advanced Console Logging & Performance Tracking
Defines a Node.js logging library with execution flow tracing, performance bottleneck detection, and conditional log modes for dev/staging/prod.