Skip to content
    ██████╗ ███████╗██╗   ██╗███████╗ ██████╗ ██╗     ██╗ ██████╗
    ██╔══██╗██╔════╝██║   ██║██╔════╝██╔═══██╗██║     ██║██╔═══██╗
    ██║  ██║█████╗  ██║   ██║█████╗  ██║   ██║██║     ██║██║   ██║
    ██║  ██║██╔══╝  ╚██╗ ██╔╝██╔══╝  ██║   ██║██║     ██║██║   ██║
    ██████╔╝███████╗ ╚████╔╝ ██║     ╚██████╔╝███████╗██║╚██████╔╝
    ╚═════╝ ╚══════╝  ╚═══╝  ╚═╝      ╚═════╝ ╚══════╝╚═╝ ╚═════╝ 

A Bloomberg Terminal for your command line.

AI-powered financial analysis for developers who invest.

$npx devfolio

Why I Built This

I've worked in finance tech for most of my career. When tools like Claude Code and Gemini CLI started gaining traction, I got curious. Why does AI feel better in the terminal?

The only way I know how to understand something is to build it. So I picked a domain I know—financial data—and explored what an AI-native terminal experience could look like.

This is what I learned.

Features

.

AI Market Brief

Daily AI-synthesized market intelligence with narratives, themes, and sector analysis.

brief
~

Real-time Pulse

Live market snapshot with indices, sectors, movers, and personalized alerts.

pulse
$

Stock Profiles

Deep dive with charts, financials, valuations, and AI quick takes.

s AAPL
%

ETF Analysis

Holdings, allocations, expense ratios, and performance metrics.

etf VTI
#

News Reader

Curated news with sentiment analysis and full article extraction.

news
*

Stock Screener

Pre-built screens for gainers, losers, tech, healthcare, and more.

screen gainers
+

Watchlist & Portfolio

Track your stocks with upcoming earnings and dividend alerts.

watchlist
?

AI Research

Generate comprehensive research reports with AI analysis.

r NVDA
=

Stock Comparison

Compare multiple stocks side-by-side with best-in-category highlights.

cs AAPL MSFT

Try It Yourself

This is a simulation of DevFolio running in your browser. Click any command below to see it in action.

devfolio — interactive demo
ready
╭────────────────────────────────────────────────────────────────╮
│                                                                │
│    ██████╗ ███████╗██╗   ██╗███████╗ ██████╗ ██╗     ██╗ ██████╗│
│    ██╔══██╗██╔════╝██║   ██║██╔════╝██╔═══██╗██║     ██║██╔═══██║
│    ██║  ██║█████╗  ██║   ██║█████╗  ██║   ██║██║     ██║██║   ██║
│    ██║  ██║██╔══╝  ╚██╗ ██╔╝██╔══╝  ██║   ██║██║     ██║██║   ██║
│    ██████╔╝███████╗ ╚████╔╝ ██║     ╚██████╔╝███████╗██║╚██████╔║
│    ╚═════╝ ╚══════╝  ╚═══╝  ╚═╝      ╚═════╝ ╚══════╝╚═╝ ╚═════╝│
│                                                                │
│    AI-Powered Financial Terminal                               │
│    Type "help" for commands or try the suggestions below       │
│                                                                │
╰────────────────────────────────────────────────────────────────╯
>
demo mode • llama-3.3-70b↑↓ history • tab complete • enter send
Market
Stocks
Compare
Screener
Portfolio
AI Chat

What I Learned Building This

Terminal UI Architecture

Building responsive, stateful UIs with React + Ink pushed me to think differently about component design.

Multi-Provider AI Abstraction

Designing a provider-agnostic AI layer with automatic fallback, streaming, and tool calling.

Real-World API Integration

Parsing messy financial data from Yahoo Finance, SEC EDGAR, and CoinGecko.

RAG Implementation

Building retrieval-augmented generation for SEC filing search using SQLite FTS5.

Caching Strategies

Multi-layer caching with different TTLs for quotes vs fundamentals vs AI responses.

Domain Modeling

Understanding financial concepts like options Greeks, SEC filings, and market indicators.

Architecture

system-design.txt
┌─────────────────────────────────────────────────────────────────────┐
    │                         Terminal UI (Ink + React)                   │
    │   ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐  │
    │   │  Views   │ │ Widgets  │ │  Input   │ │  Output  │ │  Layout  │  │
    │   └──────────┘ └──────────┘ └──────────┘ └──────────┘ └──────────┘  │
    └─────────────────────────────┬───────────────────────────────────────┘
                                  │
                ┌─────────────────┴─────────────────┐
                ▼                                   ▼
    ┌───────────────────────────┐     ┌───────────────────────────────────┐
    │    AI Infrastructure      │     │         Data Services             │
    │  ┌─────────────────────┐  │     │  ┌─────────────────────────────┐  │
    │  │  Provider Adapters  │  │     │  │   Market Data (Yahoo/CG)    │  │
    │  │ Groq│OpenAI│Claude  │  │     │  └─────────────────────────────┘  │
    │  └─────────────────────┘  │     │  ┌─────────────────────────────┐  │
    │  ┌─────────────────────┐  │     │  │   SEC EDGAR (Filings/RAG)   │  │
    │  │    Chat Agent       │  │     │  └─────────────────────────────┘  │
    │  │ Tools│Memory│Stream │  │     │  ┌─────────────────────────────┐  │
    │  └─────────────────────┘  │     │  │   Options (Greeks/Chains)   │  │
    └───────────────────────────┘     └───────────────────────────────────┘
                │                                   │
                └─────────────────┬─────────────────┘
                                  ▼
    ┌─────────────────────────────────────────────────────────────────────┐
    │                    Persistence Layer (SQLite + FTS5)                │
    │   ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐  │
    │   │Watchlist │ │Portfolio │ │  Memory  │ │   Prefs  │ │ RAG/FTS5 │  │
    │   └──────────┘ └──────────┘ └──────────┘ └──────────┘ └──────────┘  │
    └─────────────────────────────────────────────────────────────────────┘

Built With

Language: TypeScript 5.7
UI: React 18 + Ink 5
Runtime: Node.js 20+
Market Data: yahoo-finance2
Crypto: CoinGecko
Filings: SEC EDGAR
AI: Groq / OpenAI / Anthropic
Database: SQLite + FTS5
Validation: Zod
Build: tsup
Testing: Vitest

Design Philosophy

Terminal-Native

Built with Ink (React for CLIs) for a modern, responsive terminal experience.

Information Dense

Maximum data visibility with clean typography and thoughtful spacing.

AI-Enhanced

Llama 3.3 provides intelligent summaries, analysis, and natural language queries.

Quick Start

# Run directly with npx

$ npx devfolio

# Or install globally

$ npm install -g devfolio

$ devfolio

# Enable AI features (optional)

$ export GROQ_API_KEY=your_key_here

# Get started

$ devfolio

> brief # AI market summary

> s AAPL # Stock profile

> help # All commands

Ready to bring finance to your terminal?

Get Started->