# QuantBrainAI Product Roadmap

**Date:** July 31, 2026
**Status:** Living document — generated from arena match `qb-roadmap-2026-07-31` (winner: DeepSeek V4 Flash, judged 9.2/10)

**Vision:** To become the leading web portal for quantitative traders, data scientists, and AI-investing enthusiasts by seamlessly integrating deep analytical content with powerful, interactive financial tools — all built on a transparent, open-methodology, static-first architecture that respects user privacy and avoids the black-box opacity of traditional finance platforms.

---

## The Arc: From Content Portal to Quant Finance Web App

QBAI's evolution follows a deliberate arc: first, we solidify our identity as the definitive **news and analysis portal** for quant/AI investing. Second, we introduce **interactive tools** that turn static knowledge into actionable personal finance utilities. Third, we layer on **data and analytics**, transforming simple tools into live, personalized dashboards with market data and performance metrics. Finally, we converge into a **full quant finance web app** — a destination where users can screen, backtest, and manage strategies using our proprietary methodologies, all within the same trusted environment as our editorial content. This arc is designed for a solo builder, leveraging the Astro static-first architecture and Cloudflare's free tier to maximize impact while minimizing operational overhead.

---

## Phase 1 - FOUNDATION: News + Analysis Portal

**Goal:** Harden the existing content platform, improve discoverability, and introduce the first app-like surfaces to engage users beyond reading.

### (a) Feature Table

| Feature | Priority | Effort | Status |
| :--- | :--- | :--- | :--- |
| Content Library (51 posts, static pages) | High | Done | **Live** |
| Model-Battle Arena (JSON-backed) | Medium | Done | **Live** |
| Tools Hub Page (`/tools`) | High | S | Planned |
| Ticker Pages (Static, Price-Snapshot) | High | M | Planned |
| Market Snapshot Dashboard | Medium | M | Planned |
| Watchlist (Client-Side, LocalStorage) | Low | S | Planned |
| Newsletter Signup & Engagement | High | S | Planned |
| SEO & Sitemap Optimization | High | S | Planned |
| Data-Freshness Pipeline (get-prices.py) | Medium | M | Planned |

### (b) Concrete Feature List
- **Tools Hub Page:** A central `/tools` index page categorizing all current and future interactive utilities, making them discoverable.
- **Ticker Pages (v0):** Auto-generate a static page per covered stock (NVDA, PLTR, META, etc.) using Astro's `getStaticPaths`. Include a summary of our latest analysis, key fundamentals from our MDX frontmatter, and a link to the full post.
- **Market Snapshot Dashboard:** A single-page dashboard aggregating index levels (S&P 500, NASDAQ, etc.), major commodity prices, and crypto prices using a lightweight client-side fetch to a free API (e.g., yfinance via a Cloudflare Function proxy to avoid CORS).
- **Watchlist (v0):** A client-side only feature using LocalStorage, allowing users to "star" tickers and see their latest prices on the dashboard.
- **Newsletter/Engagement:** Integrate a simple, privacy-friendly newsletter form (e.g., Mailchimp, Buttondown) to capture emails and build an audience.
- **SEO & Data Freshness:** Improve meta descriptions, add JSON-LD structured data, and run the `get-prices.py` script on a schedule (GitHub Actions or Cloudflare Cron Trigger) to refresh price data in the content collection.

### (c) Tech Approach
- **Astro Islands:** Start with vanilla TypeScript components for client-side interactivity to keep the bundle small.
- **Data APIs:** Use `yfinance` via a Python script (on a schedule) to generate static JSON files for the snapshot dashboard. For live intraday data, proxy requests through a **Cloudflare Pages Function** to avoid CORS and hide API keys.
- **Free-Tier Constraints:** Cloudflare Functions free tier (100k requests/day) is more than sufficient. Static JSON generation via a scheduled job is free. No KV/D1 needed yet.

### (d) Success Criteria
- **Page Views:** Increase organic search traffic by 30% quarter-over-quarter.
- **Engagement:** Achieve a newsletter signup rate of >1% of unique visitors.
- **Tool Usage:** Achieve >100 sessions on the Market Snapshot Dashboard and >50 watchlist creations within the first month of launch.

### (e) Timeline (Solo Builder)
- **Weeks 1-2:** SEO, sitemap, data-freshness pipeline.
- **Weeks 3-4:** Tools Hub page, Ticker Pages.
- **Weeks 5-6:** Market Snapshot Dashboard, Watchlist v0, Newsletter integration.
- **Total: 6 Weeks**

---

## Phase 2 - INTERACTIVE TOOLS v1 (Basic Finance Web Apps)

**Goal:** Launch a suite of self-contained, client-side financial calculators and checkers that provide immediate value and establish QBAI as a "tools" destination.

### (a) Feature Table

| Feature | Priority | Effort | Status |
| :--- | :--- | :--- | :--- |
| Position Size Calculator | High | S | Planned |
| Compound Growth Calculator | High | S | Planned |
| Valuation Tool: DCF | High | M | Planned |
| Valuation Tool: Multiples | Medium | S | Planned |
| Options Payoff Calculator | Medium | M | Planned |
| Portfolio Allocation Checker | Medium | M | Planned |
| Simple Fundamental Screener (v0) | Low | L | Planned |

### (b) Concrete Feature List
- **Position Size Calculator:** Input account size, risk %, entry/stop price to calculate position size and share count.
- **Compound Growth Calculator:** Visualize portfolio growth with contributions, inflation, and tax adjustments.
- **DCF Valuation Tool:** User inputs free cash flow, growth rate, discount rate, and terminal value to get an intrinsic value estimate.
- **Multiples Valuation Tool:** Compare P/E, EV/EBITDA, P/S ratios against a user-defined peer group.
- **Options Payoff Calculator:** A visualizer for basic call/put strategies (long, short, spreads) at expiration, plotting P&L against underlying price.
- **Portfolio Allocation Checker:** Users input their current holdings; the tool checks diversification against target weights (e.g., sector, asset class) and highlights over/underweight positions.
- **Simple Fundamental Screener (v0):** Client-side filtering of a static JSON dataset (e.g., S&P 500 constituents) on metrics like market cap, P/E, dividend yield.

### (c) Tech Approach
- **Astro Islands with React:** Use React components for complex state management in the calculators.
- **Charting:** Use a lightweight charting library (e.g., Chart.js or TradingView lightweight-charts, both open-source) for the options payoff and compound growth visualizations.
- **Data:** The screener uses a static JSON file generated by a script (Phase 1's `get-prices.py` extended). No live API calls are needed for these tools.
- **Free-Tier Constraints:** All computation is client-side (TypeScript/React). No backend required, keeping the build purely static.

### (d) Success Criteria
- **Tool Sessions:** Achieve >500 total tool sessions per month.
- **Dwell Time:** Average session duration on tool pages >3 minutes.
- **Bounce Rate:** Maintain a bounce rate <40% on tool pages.

### (e) Timeline (Solo Builder)
- **Weeks 7-8:** Position Size, Compound Growth, Multiples Valuation.
- **Weeks 9-10:** DCF Valuation, Options Payoff Calculator.
- **Weeks 11-12:** Portfolio Allocation Checker, Fundamental Screener v0.
- **Total: 6 Weeks**

---

## Phase 3 - DATA AND ANALYTICS

**Goal:** Transform static tools into live, personalized analytics dashboards with real market data and performance tracking.

### (a) Feature Table

| Feature | Priority | Effort | Status |
| :--- | :--- | :--- | :--- |
| Interactive Charts (TradingView Lightweight) | High | M | Planned |
| Ticker Detail Pages (Live Fundamentals) | High | L | Planned |
| Portfolio Tracker (Performance & Risk) | High | L | Planned |
| Market Data Integration (Finnhub, Twelve Data) | High | M | Planned |
| Cloudflare Workers/KV Caching | Medium | M | Planned |
| Scheduled Price Refreshes (Cron) | Medium | S | Planned |

### (b) Concrete Feature List
- **Interactive Charts:** Embed TradingView's `lightweight-charts` (Apache-2.0, ~35KB) on all ticker pages for candlestick/line charts with volume.
- **Ticker Detail Pages (v1):** Enhance Phase 1 pages with live price, key statistics (P/E, EPS, market cap), 52-week high/low, and recent news headlines via API.
- **Portfolio Tracker:** Users can create a portfolio (stored in LocalStorage or a KV-backed user profile). The system fetches current prices and calculates performance (total return, CAGR), risk metrics (Sharpe, Sortino, max drawdown, alpha/beta), and win rate for a user-defined period.
- **Market Data Integration:** Centralize API calls through a Cloudflare Pages Function. Use **Finnhub** (free ~60 calls/min) for real-time quotes and news; **Twelve Data** (free tier with daily credits) for historical data and technical indicators; **Alpha Vantage** (25 req/day) sparingly for EOD fundamentals.
- **Caching & Refreshes:** Use Cloudflare KV to cache API responses (e.g., cache a quote for 60 seconds) to stay within free-tier limits. Use a Cloudflare Cron Trigger to refresh a watchlist of key tickers on a schedule.

### (c) Tech Approach
- **Astro Islands:** Use React components with a shared state management library (Zustand) for the portfolio tracker.
- **Backend Functions:** Cloudflare Pages Functions (`/api/*`) handle all external API calls, rate limiting, and KV caching. This keeps API keys secure and prevents CORS issues.
- **Data Storage:** Use **Cloudflare KV** for caching and storing user portfolios (small JSON blobs). D1 is not yet needed.
- **Free-Tier Constraints:** KV has ~100k reads/day, which is ample for a solo project. Cloudflare Cron Triggers on the free Workers plan allow ~10k invocations/day (min 1-minute interval) — plenty for a small watchlist refreshed every 5 minutes.

### (d) Success Criteria
- **Portfolio Tracker Adoption:** >200 unique portfolios created.
- **Chart Usage:** >1,000 chart views per month on ticker pages.
- **API Efficiency:** Maintain a cache hit rate >90% to avoid hitting API limits.

### (e) Timeline (Solo Builder)
- **Weeks 13-15:** Interactive charts, Ticker Detail Pages v1.
- **Weeks 16-18:** Market data integration, KV caching, Cron refreshes.
- **Weeks 19-21:** Portfolio Tracker with performance and risk metrics.
- **Total: 9 Weeks**

---

## Phase 4 - QUANT FINANCE WEB APP

**Goal:** Deliver the full QBAI vision: a powerful, integrated platform for screening, backtesting, and strategy development, powered by our unique quantitative methodologies.

### (a) Feature Table

| Feature | Priority | Effort | Status |
| :--- | :--- | :--- | :--- |
| Advanced Stock Screener (Fund. + Tech.) | High | L | Planned |
| Backtesting Engine (Client-Side TS) | High | XL | Planned |
| Strategy Lab (Pairs Trading, HMM) | High | XL | Planned |
| Risk Analytics Dashboards | Medium | L | Planned |
| Watchlist Price Alerts | Medium | M | Planned |
| User Accounts & Saved Strategies (D1) | High | L | Planned |
| Monetization (Premium Tier) | Medium | M | Planned |

### (b) Concrete Feature List
- **Advanced Stock Screener:** Combines fundamental filters (market cap, P/E, PEG, margins) with technical filters (RSI, MACD, moving average crossovers, 52-week highs). Results are displayed in a sortable, filterable table with sparklines.
- **Backtesting Engine:** A client-side TypeScript engine that allows users to define a simple strategy (e.g., "buy when RSI < 30 and price > SMA(200)") and run it against historical data (fetched from Twelve Data) to generate equity curves, drawdown charts, and performance statistics (Sharpe, Sortino, max drawdown, win rate).
- **Strategy Lab:** An interactive environment where users can explore QBAI's documented methodologies:
    - **Pairs Trading:** Select two tickers, set a lookback window, and see the spread, z-score, and historical entry/exit signals.
    - **HMM Regime Detection:** Run our Hidden Markov Model on a selected index and visualize the identified bull/bear regimes over time.
- **Risk Analytics Dashboards:** Extend the portfolio tracker with more advanced analytics: Value at Risk (VaR), Conditional VaR, correlation matrix, and rolling volatility.
- **Watchlist Alerts:** Users can set price alerts (e.g., "Notify me when NVDA crosses $500"). Alerts are triggered by the Cron job and delivered via email (using a service like Resend or Mailgun free tier) or a browser notification.
- **User Accounts & Persistence:** Implement user authentication with a lightweight service (Clerk or Supabase Auth) and store saved strategies, watchlists, and portfolio history in **Cloudflare D1** (SQLite).
- **Monetization:** Introduce a premium tier that unlocks advanced features: unlimited backtests, access to more sophisticated Strategy Lab parameters, real-time alerts, and priority data refresh. The core screener and basic tools remain free.

### (c) Tech Approach
- **Complex Client-Side Logic:** The backtesting engine and Strategy Lab are heavy TypeScript modules, running entirely in the browser for performance and to avoid server costs.
- **Data Storage:** **Cloudflare D1** for user accounts, saved strategies, and alert definitions. D1 is SQLite-based and has a generous free tier (5M rows read/day).
- **Authentication:** Use a third-party auth provider (e.g., Clerk, Supabase Auth) to handle user management securely, reducing solo-builder overhead.
- **Serverless Functions:** Pages Functions orchestrate authentication, D1 queries, and alert triggering. Cron Triggers become more frequent for premium users.
- **Free-Tier Constraints:** D1 has limits on rows and queries per day, which will require efficient schema design. The backtesting engine is client-side to avoid heavy serverless CPU usage.

### (d) Success Criteria
- **User Acquisition:** >500 registered users within 6 months of launch.
- **Premium Conversion:** Achieve a 5% conversion rate from free to premium.
- **Backtest Sessions:** >1,000 backtests run per month.
- **Retention:** >50% of registered users return within 30 days.

### (e) Timeline (Solo Builder)
- **Weeks 22-25:** Advanced Stock Screener, Watchlist Alerts.
- **Weeks 26-30:** Backtesting Engine (core).
- **Weeks 31-35:** Strategy Lab (Pairs Trading, HMM), Risk Analytics.
- **Weeks 36-38:** User Accounts (D1), Saved Strategies.
- **Weeks 39-40:** Monetization (Premium Tier), Polish, and Launch.
- **Total: 19 Weeks**

---

## Competitive Context & Differentiation

QBAI enters a crowded field, but our positioning is unique:

- **vs. Koyfin:** Koyfin is excellent for fundamental analysis and financial statements. QBAI's edge is our **quant/AI focus** — we provide the *methodology* and the *tools* to act on it, not just the data.
- **vs. TradingView:** TradingView is the gold standard for charting and Pine Script. QBAI is not trying to replace it. Instead, we offer **integrated content and tools** — you read our analysis on HMM regime detection, then immediately test it in our Strategy Lab without leaving the site.
- **vs. Finviz:** Finviz's visual screener is powerful. QBAI's screener will be more **quant-centric**, with filters and metrics relevant to algorithmic strategies (e.g., cointegration, volatility regimes).
- **vs. Seeking Alpha:** Seeking Alpha provides news and ratings. QBAI provides **open, reproducible analysis** — our "ratings" are based on transparent, code-backed methodologies, not crowdsourced opinions.
- **vs. Bloomberg Terminal (Lite):** We aim for the "Bloomberg-lite" experience of consolidating news, data, and analytics in one place, but tailored for the **quant hobbyist and data scientist**, not the institutional desk.

**Our Core Differentiation:** We are the only platform that **integrates deep, open-source quant/AI content with the interactive tools to apply those concepts**, all on a fast, modern, static-first stack that is accessible and affordable.

---

## Realistic Constraints (Free-Tier Only)

- **Cloudflare Pages Functions:** ~100k requests/day. Must aggressively cache client-side and use serverless functions only for data fetching and user-specific operations.
- **Cloudflare KV:** ~100k reads/day. Sufficient for caching and small user profiles.
- **Cloudflare D1:** 5M rows read / 100k rows written per day on the free tier. Requires efficient schema design and query optimization.
- **API Rate Limits:** Alpha Vantage (25 req/day — use sparingly, for EOD data), Finnhub (~60 calls/min — primary for real-time quotes), Twelve Data (daily credit caps — use for historical data and technical indicators).
- **No Heavy Backend:** All computationally intensive tasks (backtesting, screening) run client-side in TypeScript.
- **Static-First Architecture:** The core site remains statically generated for speed and SEO. All dynamic features are Astro islands or client-side apps.

---

## 12-Month Timeline Summary

| Month | Phase | Key Deliverables |
| :--- | :--- | :--- |
| 1-2 | **Phase 1: Foundation** | SEO, Tools Hub, Ticker Pages, Snapshot Dashboard, Newsletter. |
| 3-4 | **Phase 2: Interactive Tools v1** | 7 core calculators & v0 screener. |
| 5-7 | **Phase 3: Data & Analytics** | Live charts, Portfolio Tracker, API integration, Caching. |
| 8-12 | **Phase 4: Quant Finance App** | Advanced screener, Backtesting, Strategy Lab, User Accounts, Premium Tier. |

---

## Closing Arc

QBAI's journey is a deliberate progression from a trusted voice in quant/AI investing to an indispensable, interactive platform. By Phase 4, the site will have transformed from a basic finance web app — where users consume our analysis — into a full quant finance web app where they can *apply* that analysis, test their own hypotheses, and build a data-driven investment workflow. Each phase builds on the last, adding a new layer of interactivity and user value, while staying true to our core principles of open methodology, technical depth, and a sleek, high-performance user experience. We are not just building a website; we are building the definitive operating system for the modern quantitative investor.
