Skip to main content
All case studies

2021 - 2024 · Co-founder & Lead Developer

Foretale

No-Code Crypto Trading & Real-Time NLP Platform

Streaming architecture for market signals, sentiment, OCR, and visual automation

  • 1M+

    Daily Source Events

    Processed across 7+ sources

  • <100ms

    p99 NLP Latency

    Measured NLP inference path after isolating workloads in Ray workers

  • 25+

    Automation Nodes

    Custom Node-RED nodes for workflows

  • 24/7

    Continuous Pipeline

    Streaming ingestion ran continuously

Foretale visual workflow builder showing real-time data streaming nodes connected in an automation pipeline

The problem

Crypto trading strategies depended on social media, news, market data, whale movements, and image-based signals, but those inputs were fragmented across platforms. Most approaches required coding expertise and custom infrastructure for each strategy. Foretale set out to make those signals usable through visual workflow automation, so users did not have to build their own streaming systems.

The solution

Built a production streaming architecture with Kafka at the core, ingesting data from 7+ sources 24/7. The distributed ML backend (FastAPI/Ray/PyTorch) performed real-time sentiment analysis, emotion detection, and OCR extraction from images. A custom Node-RED fork provided visual workflow automation, so non-technical users could create complex data processing pipelines through drag-and-drop. Multi-tenant isolation used per-tenant secret handling with HashiCorp Vault.

Lesson learned: I first deployed the NLP models directly in the main API process, which caused latency spikes during high-volume periods. Moving inference into isolated Ray workers solved the contention issues and brought p99 latency from approximately 800ms to under 100ms for the measured NLP inference path.

Tech stack

Backend
Python · FastAPI · Ray · Apache Kafka · Redis · PostgreSQL · TimescaleDB
AI/ML
PyTorch · Transformers · spaCy · EasyOCR · Sentiment Analysis · NER
Frontend
Node-RED (Custom Fork) · Svelte · SvelteKit · Tailwind CSS
Infrastructure
Docker Swarm · HashiCorp Vault · Traefik · GitLab CI/CD · Sentry
Data Processing
CCXT · GDELT · Monte Carlo Simulation · TimescaleDB

My role: Co-founder & Lead Developer

  • Co-founded and architected the complete streaming platform from data ingestion to action execution
  • Built the Kafka-based sensor network that processed data streams from many sources around the clock
  • Developed the distributed ML backend (FastAPI/Ray/PyTorch) for real-time NLP inference
  • Created a custom Node-RED fork with 25+ automation nodes and Svelte-based UI components
  • Implemented the OCR pipeline that extracted text and signals from images in the stream
  • Built the multi-tenant orchestration layer with Docker Swarm and HashiCorp Vault
  • Designed the Monte Carlo simulation engine for strategy validation

Components

Streaming Pipeline

Kafka-based real-time data pipeline that ingested signals from social media, news APIs, and market data sources 24/7 with sub-second latency.

  • Real-time Twitter/X stream processing
  • Multi-source data aggregation (7+ sources)
  • Event-driven architecture with idempotent processing patterns
  • Horizontal scaling for burst traffic

Apache Kafka · FastAPI · Ray · Redis

NLP Inference Engine

Distributed ML backend that performed real-time sentiment analysis, emotion detection, and text extraction from images.

  • roBERTa-based sentiment/emotion/irony classification
  • EasyOCR for image text extraction
  • Named entity recognition (NER) for signal detection
  • Model-worker isolation reduced p99 NLP latency to under 100ms for the measured inference path

PyTorch · Transformers · Ray · spaCy

FlowStudio

Visual workflow builder that let non-technical users create complex data processing and automation pipelines through drag-and-drop.

  • 25+ custom automation nodes
  • Real-time flow execution with live data
  • Svelte-based custom UI components
  • Built-in simulation and validation

Node-RED (Custom Fork) · Svelte · WebSocket

Differentiators

  • A Kafka-based pipeline handled 1M+ source events a day from 7+ sources
  • Sentiment, emotion, irony, NER, and OCR models ran on distributed workers. After worker isolation the measured NLP inference path stayed under 100ms at p99
  • A no-code interface for building data processing pipelines
  • One pipeline ingested social media, news, and market data APIs
  • HashiCorp Vault kept each tenant's credentials separate

Regulatory requirements for retail crypto trading kept Foretale from a wider launch, so we wound it down. The service is no longer online.

Questions about this project?

I am happy to walk through the architecture and the trade-offs.

View resume

Other projects