VeloDev
/ Case Study

Full-stack stock analysis suite

Investment Analysis Tools is a stock and ETF analysis platform with interactive charts, Gemini-generated recommendations and a React Native companion app. Technical indicators are calculated in code first; the model then explains them and the day's market news in plain language.

Role
Creator · sole developer
Timeline
1 Month (2026)
Category
Full-Stack SaaS / AI
Status
Live
Technology Stack
  • Next.js
  • React Native
  • Express.js
  • Supabase
  • SQLite (better-sqlite3)
  • Gemini AI
  • Zustand
  • TanStack Query
  • Chart.js
WORKSPACE SCREENS (5)

Click on tabs to switch views. Click on the image to open full size.

/dashboard
01 / 05

Dashboard Overview

Main portfolio overview screen showing assets valuation, profit/loss history, market pulse, and automated AI highlights.

Lighthouse audit — production
96/100
Perf
100/100
A11y
98/100
Best Pr.
100/100
SEO
Source: Lighthouse, production.
/ Engineering snapshot

Challenge

Turn raw market data into recommendations a non-analyst can act on, across web and mobile — while keeping a hobby-scale budget, staying inside third-party API rate limits, and never presenting an AI guess as a fact.

What I owned
  • Product definition and scope: which questions the app answers and which it refuses to.
  • The full stack: Next.js web client, React Native app, Express API and the SQLite/Supabase data layer.
  • The AI layer — prompt design, scoring model, cost and latency control.
  • The alerting engine and everything that runs on a schedule.
Result
  • A working web + mobile product built solo in about a month.
  • Lighthouse 96 performance / 100 accessibility / 98 best practices / 100 SEO in production.
  • AI output that is always backed by deterministic calculations the user can check.
Key engineering decisions
  1. Two cache tiers, chosen by how fast the data ages

    Market quotes get a 5-minute TTL; heavy AI inferences get 60 minutes, since a portfolio thesis does not change minute to minute. That single split keeps the API bill small and rate-limit errors out of normal use.

  2. Deterministic indicators first, the model second

    RSI, allocation and concentration risk are computed in code, not asked of the model. Gemini scores and explains on top of numbers that are already correct, which keeps the output auditable.

  3. A separate loop for anything scheduled

    The 5-minute cron alert engine runs outside the request path, so a slow provider or a long AI call never blocks a user opening the dashboard.

  4. Share the logic, not the UI, between web and mobile

    Both clients talk to the same Express API and reuse the same data contracts, but each keeps its own presentation layer instead of forcing one component tree onto two platforms.

  5. Rate-limit the AI chat by design

    The financial mentor chat carries rate limiting, persisted history and explicit market context in the prompt, so answers stay grounded and a single session cannot run up the bill.

/ capabilities

Investment Analysis Tools pairs Gemini-based analysis with a custom two-tier cache, so the AI layer stays fast and affordable.

AI Portfolio Advisor

Evaluates asset allocations on 5 critical scores: fundamental health, technical indicators, overall concentration risk, macro trends, and market sentiment via the Gemini API.

Conversational AI Mentor

A responsive, markdown-compatible financial chat interface in Romanian. Incorporates rate-limiting, history persistence, and contextual market parameters for safe learning.

Intelligent Alert Engine

Runs in the background checking price targets, percent swings, technical conditions (RSI overbought/oversold), and diversification risks on a 5-minute cron scheduler.

Dual Caching Engine

SQLite cache layers with separate time-to-live values (5 min for market quotes, 60 min for heavy AI inferences) so repeat views load from cache instead of hitting provider rate limits.

/ Monorepo System Design

The platform is a monorepo with a decoupled client-server split. The Express backend integrates directly with multiple market data providers to supply clean historical and real-time feeds to the Next.js React frontend.

Frontend (Next.js)

  • App Router Routing: Static and dynamic routing paths.
  • TanStack Query (React Query): Caches server states and manages optimistic portfolio mutations.
  • Zustand v5: Light weight client store managing custom chart limits and dark mode.
  • Chart.js: Fast canvas rendering of historical price action.

Backend (Express)

  • better-sqlite3: High-performance synchronous database driver.
  • Cron Alert Engine: Evaluates active price alerts every 5 minutes in a separate loop.
  • Technical Indexer: Native calculations for RSI, MACD, and Bollinger Bands.
  • Gemini Orchestrator: Manages AI token limits and responses.

Data Brokers & AI

  • Gemini 3 Flash: Generates dynamic investment scores and provides Mentor conversations.
  • Massive API: Real-time quotes and intraday feeds for US indices.
  • Finnhub API: Multi-exchange European stock symbol quote translations.
  • GNews API: Feeds the financial news feed with clean context.
/ screens

Click on any of the screenshots below to open them in the lightbox viewer.