Skip to content

Repository files navigation

FAST DATA — AI-Native Data Analysis Platform

VersionReact 19TypeScriptLicense

FastData is an AI-native data analysis platform with a ChatGPT-style conversational interface. Upload a CSV or Excel file and chat with your data — get instant profiling, visualizations, ML-powered predictions, domain-specific analytics, and comprehensive export packages, all within a single conversation.


Features

CategoryHighlights
🤖 Chat InterfaceConversational UX with rich messages (text, charts, insight cards). History saved to localStorage.
📊 Data ProfilingAuto column typing, descriptive stats, quality scoring, outlier & duplicate detection.
🔗 Correlation EnginePairwise Pearson correlations, matrix views, human-readable interpretations.
💡 Insight Engine7 insight categories scored by importance — overview, quality, risk, trends, and more.
📈 Chart RecommenderAutomatic chart selection (bar, line, scatter, pie, histogram, box plot) with relevance scoring.
🧠 Client-Side MLPure TypeScript models (Ridge, kNN, Naive Bayes, Decision Stump) for regression & classification. Train, predict, and export Python loaders — no server required.
🏢 Domain AnalyticsAuto-detect domain, then unlock specialized analysis for Finance, Crypto, Ecommerce, Medical, and Marketing.
🤝 AI CopilotAsk natural-language questions. Uses OpenRouter (free models) via the backend, with a full rule-based fallback when offline.
🌙 Executive NarrativesGenerate summaries in McKinsey, Bloomberg, or Consulting style through the AI Copilot.
📦 Export SuiteZIP with reports, slides, charts (PNG), CSVs, JSON, Python ML loader, and PPTX presentations (night/day themes).
📋 Reports & SlidesStructured multi-section reports (Markdown + HTML) and auto-generated slide decks.
🔌 Offline ModeAll core analysis runs client-side. The backend is optional and used only for AI features.

Quick Start

# Install frontend dependencies
npm install
# (Optional) Install server dependenciescd server && npm install &&cd ..
# Start development (frontend + server)
npm run dev
# Frontend only
npm run dev:client
# Server only
npm run dev:server

Environment Variables (Server)

Copy server/.env and set:

VariableDescriptionDefault
PORTServer port3001
OPENROUTER_API_KEYAPI key for AI Copilot
CORS_ORIGINAllowed originhttp://localhost:5173
MAX_FILE_SIZEUpload limit52428800 (50 MB)

No API key? No problem. The client-side analysis engine works fully offline. The AI Copilot fallback uses rule-based answers when no key is configured.


Usage

  1. Start a new analysis — Click "New Analysis" in the sidebar.
  2. Upload your data — Drop a .csv or .xlsx file, or use the built-in sample dataset.
  3. Chat with your data — Ask questions like:
    • "Summarize this dataset"
    • "What's the data quality?"
    • "Show me correlations"
    • "Detect anomalies"
    • "What are the key insights?"
    • "Predict the target variable"
    • "Export everything"
  4. Explore results — Charts, insights, and tables appear directly in the conversation.
  5. Export — Download a comprehensive ZIP package with everything.

Domain-Specific Analytics

When you upload a file, FastData automatically detects the domain and unlocks specialized analytics:

DomainCapabilities
💰 FinancialRSI, MACD, Bollinger Bands, drawdowns, Sharpe/Sortino/Calmar ratios, trend pattern detection
CryptoWallet profiling, gas optimization, token metrics, staking rewards, portfolio P&L, rug-pull risk scoring
🛒 EcommerceRFM segmentation (7 customer segments), cohort retention, market basket analysis (association rules), CLV prediction
🏥 MedicalKaplan-Meier survival curves, clinical distribution analysis, trial efficacy/safety metrics, diagnostic accuracy (sensitivity, specificity, PPV, NPV), patient clustering, biomarker analysis
📢 MarketingFunnel analysis, attribution models, customer journey mapping, channel performance (ROAS, CPA, CTR), marketing mix modeling, CLV calculations

Client-Side Machine Learning

FastData includes a full ML pipeline implemented in pure TypeScript — no external ML libraries or server required.

  • Regression models: MeanBaseline, Ridge Linear (gradient descent), kNN Regressor, Decision Stump
  • Classification models: Majority Baseline, kNN Classifier, Gaussian Naive Bayes, Decision Stump
  • Auto feature engineering: Z-score normalization, one-hot encoding, date features
  • Auto feature selection: Drops text, high-null, and high-cardinality columns
  • Train/test split with deterministic sampling
  • Ensemble comparison — best model is selected automatically
  • Prediction interface — input values and get predictions
  • Export: Python .pkl-compatible model artifact, standalone Python loader script, performance reports

Architecture

FastData/
├── src/ # Frontend (React + TypeScript)
│ ├── components/ # 38 UI components (Chat, Charts, Dashboard, etc.)
│ ├── engine/ # Core analysis engine
│ │ ├── parser.ts # CSV / XLSX parsing
│ │ ├── profiler.ts # Column profiling & data quality
│ │ ├── correlations.ts # Pearson correlation engine
│ │ ├── insightGenerator.ts # Automatic insight generation
│ │ ├── chartRecommender.ts # Chart type & config recommender
│ │ ├── mlEngine.ts # Client-side ML (no deps)
│ │ ├── copilot.ts # Rule-based AI fallback
│ │ ├── aiEngine.ts # OpenRouter API integration
│ │ ├── reportGenerator.ts # Markdown & HTML reports
│ │ ├── slideGenerator.ts # Slide deck generation
│ │ ├── exportEngine.ts # ZIP export with all artifacts
│ │ ├── chartCapture.ts # ECharts PNG capture (DOM + offscreen)
│ │ ├── clientPptx.ts # Client-side PPTX generation
│ │ ├── premiumExport.ts # Premium HTML/JSON reports
│ │ ├── domainDetector.ts # Automatic domain detection
│ │ └── domains/ # Domain-specific analytics
│ │ ├── financial.ts
│ │ ├── crypto.ts
│ │ ├── ecommerce.ts
│ │ ├── medical.ts
│ │ └── marketing.ts
│ ├── services/ # API client & server adapter
│ ├── stores/ # Zustand state (app, conversations, interactions, theme)
│ ├── types/ # TypeScript type definitions
│ └── utils/ # Utility functions
├── server/ # Backend (Express + TypeScript)
│ ├── src/
│ │ ├── routes/ # upload, copilot, reports, ai
│ │ ├── services/ # analyzer, insight engine, AI orchestrator, etc.
│ │ └── config/ # Server configuration
│ └── package.json
└── scripts/ # Dev server launcher

Tech Stack

LayerTechnology
FrameworkReact 19 + TypeScript 6
BuildVite 8
StylingTailwind CSS v4
ChartsApache ECharts 6
AnimationFramer Motion 12
StateZustand 5
IconsLucide React
Data ParsingPapaParse, SheetJS (xlsx)
ExportJSZip, FileSaver, PptxGenJS
ServerExpress 4, Multer, Bull (Redis)
AIOpenRouter (multi-model)

API Endpoints

Base URL: http://localhost:3001/api

Upload

MethodPathDescription
POST/uploadUpload CSV/XLSX
POST/upload/:id/analyzeRun full analysis
GET/upload/:id/insightsGet insights
GET/upload/:id/anomaliesGet anomalies
GET/upload/:id/correlationsGet correlations
GET/upload/:id/chartsGet chart configs
GET/upload/:id/reportGenerate report
POST/upload/:id/exportExport package
DELETE/upload/:idDelete dataset

AI Copilot

MethodPathDescription
POST/copilot/queryAsk a question
POST/copilot/explain/:insightIdExplain an insight
GET/copilot/intentsList available intents

Reports

MethodPathDescription
GET/reports/stylesList report styles
POST/reports/generateGenerate report
POST/reports/generate-pptxGenerate PowerPoint

Health

MethodPathDescription
GET/healthServer status & AI config

License

MIT License. Built for the future of data analytics.

About

AI-native data analysis platform with AI-style conversational interface. Upload CSV/Excel files for instant profiling, visualizations, client-side ML, domain-specific analytics, and comprehensive export packages.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages