Playbot
Multi-architecture betting automator with an ML loop
- 1// Playbot
- 2export const project = {
- 3 status: "in-progress",
- 4 timeline: "2025 – present",
- 5 role: "Solo: architecture & implementation",
- 6 language: "C#",
- 7 stack: [
- 8 ".NET 8",
- 9 "Playwright",
- 10 "Kafka",
- 11 "PostgreSQL",
- 12 "Python",
- 13 "PyTorch",
- 14 "FastAPI",
- 15 "Docker",
- 16 ],
- 17};
An event-driven automation + ML loop spanning six services, currently in development (private while secrets are hardened and prod-tested).
- Closed automate → collect → train → decide loop
- Kelly-Criterion sizing with risk thresholds
- Event-driven microservices with shared contracts
Overview
Playbot is a multi-architecture automation platform: it places a bet, collects the bet's data and circumstances into a store, trains Playbot-ML on that data to suggest future bets, and a decision engine (automatic or human-gated) schedules the next action, closing the loop.
It is designed in layers: a .NET 8 automation core (Playwright + Multilogin profile management) for navigation and placement; a normalization layer producing structured events; a Kafka/Redis stream; PostgreSQL plus a feature store; a Python/PyTorch training-and-inference service behind FastAPI; and a decision engine implementing bankroll management and Kelly-Criterion bet sizing with risk thresholds and a manual-approval gate. Shared Protobuf/JSON contracts tie the services together, with Docker and Terraform for infra.
Key features
- .NET automation core (Playwright + Multilogin)
- Kafka/Redis event streaming
- PyTorch training + FastAPI inference
- Docker + Terraform infrastructure
Notes
An ambitious distributed system that ties automation, streaming data, ML and risk-managed decisioning into one coherent architecture.
Six coordinated services across .NET, Kafka, PostgreSQL, a feature store and PyTorch/FastAPI, with Protobuf/JSON event contracts and IaC.
Each layer is a bounded context with an explicit contract; events are the single source of truth between automation, ML and decisioning.