Available for select remote contracts

Backend systems, crypto and AI agents, shipped to production.

Viktors Afanasjevs - Backend & AI Engineer

Backend and AI engineer with 5+ years building production systems across fintech, blockchain and B2B SaaS. I co-founded Borebase and built it end to end - from architecture and domain logic to billing, deployment and onboarding. A backend engineer who ships the frontend too: async Python and PostgreSQL at the core, React/Next when the product needs it, plus multi-chain integrations and multi-agent RAG. I've shipped systems for products reaching 100K+ users.

Focus
Backend · AI · Crypto
Stack
Python · TypeScript
Mode
Remote / Contract
Location
Riga, Latvia · worldwide
5+
Years shipping software
100K+
Users reached
500+
Students taught
8
B2B clients supported
About
Viktors Afanasjevs

Hey, I'm Viktors.

I build production backendsAI-powered systemsfintech platformsblockchain infrastructure

Originally from Latvia, Riga, with 5 years of study and work in Netherlands, Eindhoven. I've been paid to build software since 2021, and I've been teaching it to kids on weekends for almost as long. 500 of them by now, ages 7 to 18.

Teaching was never just a side gig. It's where I learned that if I can't explain it to a 9-year-old, I don't understand it yet. That habit is most of my engineering.

I'm the one who reads the standard before writing the module, digs until the whole system makes sense and not just the part I need, and stays with the problem after the interesting part is over. Payments, agent systems, on-chain rails, geotechnics. The domains keep changing. The method doesn't.

If there's a problem nobody wants to own, I'm usually the right call.

Worked with
ASML · Witteveen+Bos · UNHOSTED · PinToPay
GitHub Activity
1,360 contributions in the last year
@afanasjewww
3 August 2025 - 8 August 2026 Less More
Experience
Mar 2025 - PresentFounding team of 3 · alongside full-time

Co-Founder & CTO

Borebase · borebase.io
  • A live B2B SaaS geotechnical firms pay for: EU-hosted, GDPR-compliant, aligned with ISO 14688-1 and ISO 22476-1/-2. Built it end to end and still own the architecture.
  • Designed as a modular monolith with per-module hexagonal (ports & adapters) boundaries, then layered on multi-tenant isolation, RBAC, JWT/argon2id auth and Stripe seat-based billing.
  • Wrote the geotechnical compute engine from scratch: CPT/CPTu/SCPT, SPT and dynamic-penetration analysis (Robertson Ic, N60, shear strength), LAS geophysics import and 2D cross-sections.
  • Built a configurable report engine outputting multi-column PDF and CAD-editable DXF, offloading heavy exports and LAS parsing to async Redis/arq workers.
Python · FastAPI · PostgreSQL · Redis · SQLAlchemy · React · TypeScript · Stripe · Docker
Borebase preview
Feb 2026 - PresentFreelance · alongside full-time

Full-Stack Developer

DK Techno · brp-russia.ru
  • Sole developer of one Next.js 16 codebase serving four surfaces from a single Docker image: a bilingual (ru/en) storefront, an admin CRM, an internal ERP and a warehouse Telegram Mini App, with the public/internal split enforced in middleware.
  • Built the admin core: JWT access/refresh with lockout and tokenVersion invalidation, Zod validation, CSRF/Origin checks, an audit log of every mutation, and a two-phase media pipeline (Sharp/WebP) with path-traversal guards and atomic writes.
  • Built the ERP over 28 Prisma models: an invoice and bill-of-lading parser, shipments with generated PDF specifications and packing lists, inventory and a stock ledger, payments and EU customs MRN status tracking.
  • Built the parts catalog with cross-brand duplicate detection, and a one-command importer that loads the full 250k-row supplier xlsx into Postgres.
  • Built the notification layer: a Telegram bot routing per-entity alerts into forum topics, and an SMTP queue driving transactional mail and subscriber campaigns.
  • Built in-house analytics tracker: unique visitors, views per day, top pages and most-clicked vehicles.
  • Own deployment end to end: multi-stage Docker, hardened VPS, GitHub Actions with migrations on container start, and ~130 Vitest suites.
Next.js 16 · React 19 · TypeScript · Prisma 7 · PostgreSQL · Tailwind v4 · Docker · Vitest
DK Techno preview
Sep 2025 - Apr 2026Full-time

Full-Stack Developer / B2B Lead

PinToPay · pintopay.me
  • Built end-to-end API encryption with replay-attack protection, fronted by a dual-layer encrypted API gateway.
  • Built an admin dashboard with 3-layer client-side cryptography, RBAC across 5+ roles, and an API portal with dynamic OpenAPI rendering.
  • Integrated multiple blockchains with real-time indexing, hot-wallet deposit aggregation and automatic TRX energy rental.
  • Stood up a real-time ClickHouse analytics platform (DAU/WAU/MAU, funnels, retention) with batch buffering, 10K req/min rate limiting and multi-tenant isolation.
  • Shipped a Telegram newsletter system reaching 100K+ users with error classification; promoted to B2B Lead managing 8 enterprise clients end to end.
Python · Sanic · MongoDB · PostgreSQL · Redis · ClickHouse · Nuxt · Docker
PinToPay preview
Jun 2025 - Sep 2025Part-time

Frontend Engineer

UNHOSTED · PerpRoyale
  • Built an offline-ready React PWA for a 1v1 / battle-royale trading game on Hyperliquid, with a reusable UI kit and iOS standalone optimizations.
  • Built live trading views over WebSocket price feeds and a thin API client with request tracing and idempotent retries.
  • Configured and hardened production VPS: Nginx reverse proxy, SSL/TLS and server hardening.
React (Vite/TS) · PWA · WebSockets · FastAPI · MongoDB · Docker
UNHOSTED preview
Feb 2024 - Jun 2025Full-time

Software / AI Engineer

UNHOSTED · unhosted.ai
  • Built a multi-agent system with orchestration, multi-step reasoning and tool use that executes tasks autonomously.
  • Gave the agents memory: a dual-layer Redis session cache plus pgvector RAG retrieval, wired to multiple LLMs through OpenRouter.
  • Designed a standardized tool-integration layer over trusted data sources (Moralis, TAAPI) and authored an ERC-4337 trading-agent blueprint separating "AI decides" from "wallet executes".
Python · FastAPI · pgvector · Redis · OpenRouter · Moralis · TAAPI · Docker
UNHOSTED preview
Sep 2023 - Feb 2024Part-time

Software Engineer

ASML · asml.com
  • Replaced a fragile CLI recipe workflow with a reliable PyQt5 GUI (FC-060), cutting delivery time per cycle by 65% with duplicate checks and changeset preview.
  • Turned requirements into MoSCoW user stories and contributed to testing and configuration across 2-week sprints, cutting manual errors in recipe delivery.
Python · PyQt5 · ClearCase · Robot Framework
ASML preview
Sep 2022 - Jun 2023Full-time

Software Engineer (C# / Digital Twins)

Witteveen+Bos · witteveenbos.com
  • Led a SysML-to-Unity translator for Digital Twins, turning formal architecture models into interactive 3D simulations.
  • Built a scalable C# importer for SysML structure and behavior with project-ready presets, supporting real-time updates and stakeholder demos for large-scale infrastructure.
C# · .NET · Unity · SysML / UML
Witteveen+Bos preview
Jan 2021 - Dec 2025Weekends

Programming Teacher

Hello IT · helloit.lv
  • Taught 500+ students (ages 7-18) C#, Java and web fundamentals; designed the course programs myself and ran workshops and coding camps.
Hello IT preview
Sep 2019 - Jul 2024Alongside studies

Software Engineer (Industry Projects)

Fontys
  • Delivered 10+ multidisciplinary projects with industry partners (AIRIOS, Winclove, Sioux, Intelly, Games For Health, Enversed) using full-cycle Agile.
C# · .NET 7/8 · WinForms · Unity
Independent Projects
01

5v5 Matchmaking Bot

Discord · Call of Duty · Elo ladder

Any player opens a lobby and the bot holds the queue until 10 join, then splits the sides with a custom Elo model, deliberately varying the pairings so the same ten never get identical teams, and moves everyone into team voice channels. With no game API to read results from, players call the winner themselves: the team with more reactions takes the match, and every rating is recomputed and persisted in MongoDB.

C#.NETDSharpPlusMongoDB
02

payp

co-author · open source

An AI CLI for data engineers & database architects. Turns natural-language requests into SQL, so you can query and explore databases without hand-writing queries.

PythonLLMCLI
Code
03

Spread Finder

CEX / DEX arbitrage engine

Monitors 12+ exchanges (REST + live WebSocket order books) and DEX aggregators across chains, detects cross-venue spreads and validates each for real executability - depth, network routes, bridge feasibility (deBridge), token safety (GoPlus) - before tiered Telegram alerts.

PythonRedisccxtasync
Code
04

netwatch

layered outage attribution

Probes router / ISP / DNS / VPN in parallel and uses consensus and hysteresis to infer the most likely failing layer, packaged as a single static binary with a live terminal dashboard.

GonetworkingTUI
05

Telegram Commerce Bots

USDT (TRON TRC-20) storefront

A dual-bot system (admin + storefront) with full catalog/order CRUD, statistics, broadcasts, discounts and multi-wallet management. Detects bot bans and fails over to a backup token instantly, with on-chain USDT payment verification.

PythonAiogram 3TRONPostgreSQL
Stack
CoreDailyFamiliar Languages Python Go TypeScript C# C / C++ Java SQL Backend FastAPI Sanic .NET 7/8 Microservices PostgreSQL / pgvector MongoDB Redis ClickHouse SQLAlchemy WebSockets OAuth2 / JWT Stripe Blockchain TRON TON Solana EVM TronPy Moralis ERC-4337 TRC-20 / USDT AI & Agents Multi-agent (AGNO) RAG Dual-layer memory Semantic search OpenRouter Tool-use Frontend React Next.js Vue / Nuxt Astro Tailwind / MUI Mapbox GL WinForms DevOps & Security Docker CI/CD Nginx MinIO (S3) Cloud Run SSL/TLS API encryption Hardening
Education & Languages

Education

BSc, ICT - Fontys Hogeschool
Eindhoven, Netherlands · 2019 - 2024

Languages

RussianNative
EnglishFluent
LatvianFluent
Contact

Bring me the part nobody wants to touch. Let's talk.