๐ง Joey Developer Dashboard (Vercel + API Integration)
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:
๐ง 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.
Related Documents
Fleet Management System - Product Requirements Document (PRD)
Fleet operators managing commercial vehicles face significant operational inefficiencies due to:
AGENTS.md โ ShakkaShell v2.0
> Instructions for AI coding agents working on this project.
CLAHub v2 โ Product Requirements Document
CLAHub is a GitHub-integrated platform for managing Contributor License Agreements (CLAs). Project owners create CLAs for their repositories (or entire organizations), contributors sign them via GitHub authentication, and pull request status checks are automatically updated.