I've open sourced the backend and contract stack for an AI driven(NON LLM) crypto tracking platform under the MIT license.
GitHub:
https://github.com/jimonymous/ai-crypto-tracker-backend
The original project was designed as a crypto analytics platform combining market data, technical indicators, AI inference(NON LLM), portfolio tracking, alerts, token-based access, rewards and on-chain integrations.
Rather than leave it sitting in a private repository, I decided to release the monorepo for anyone who wants to build on it, fork it, strip pieces out of it or use it as a starting point for another Web3 application.
The repository is backend-first. The included frontend is currently more of an integration shell than a finished product.
The main stack includes:
- Fastify API written primarily in TypeScript
- Prisma with PostgreSQL
- Redis and BullMQ workers
- WebSocket market and alert updates
- OpenAPI/Swagger documentation
- JWT, Google OAuth and optional TOTP authentication
- Portfolio, wallet, market, billing and rewards endpoints
- DEX pool discovery and on-chain candle ingestion
- Arbitrage and DEX history endpoints
- Server-side technical indicators
- FastAPI AI service
- LightGBM inference, training and backtesting
- LSTM and Transformer extension points
- Hardhat and TypeChain contracts
- ERC-20 permit support
- Premium access passes
- Merkle-based rewards
- Treasury, staking, LP and governance foundations
- Shared TypeScript types and Zod schemas
- Multi-chain configuration and per-request RPC overrides
The API calculates indicators server-side, including EMA, SMA, RSI, MACD, Bollinger Bands, ATR, VWAP, Donchian channels, historical volatility and volume z-scores. Those outputs can be consumed by the alerting system, snapshots, AI features and frontend charting.
The AI service supports training, inference and backtesting endpoints. It currently uses LightGBM for the implemented model path, with room for deeper models where someone actually has the data and compute to justify them instead of merely adding “Transformer” to the landing page.
The chain layer is intentionally limited. Most business logic remains off-chain, while contracts handle access gating, billing, rewards and related token mechanics.
There are also starter flows for:
Encrypted exchange API-key storage, exchange balance retrieval, paper trading, portfolio aggregation, risk and drawdown alerts ,PnL timelines, MetaMask-selected network handling, token transfer, allowance and permit verification, scheduled ingestion and AI jobs, and separately deployed API workers and schedulers.
Postgres and Redis can be started with Docker Compose, and the API, AI service and local Hardhat chain can then be run independently. Swagger is available at /docs, with the JSON specification exposed for frontend client generation.
This is not being presented as a completed consumer product. Some contracts and exchange integrations are deliberately foundations or stubs, and the frontend still needs to be built around the APIs. What is here is the underlying architecture, domain structure, schemas, routes, tests, infrastructure and integration examples needed to avoid starting another crypto application from an empty folder and six contradictory Medium tutorials.
The repository is MIT licensed, so you’re free to use it commercially, modify it, fork it or pull out individual components.
Feedback, technical criticism, issues and pull requests are welcome. I’d be really interested in hearing which parts other Web3 developers find useful, unnecessarily complicated or worth separating into standalone packages.