sanskar.

← selected work

All projects

Everything worth showing, grouped by theme. Most are open source; a few ship a live demo or a docs site.

Storage & databases

4

A from-scratch LSM-tree in Go: skip-list memtable, Bloom-filtered mmap SSTables, three live-switchable compaction strategies, and Raft quorum replication with multi-shard rebalancing behind one API.

Go · LSM · Bloom filters · mmap · Raft

A B+Tree engine in Go with MVCC snapshot isolation, ARIES-style WAL crash recovery, slotted 4KB pages, a Clock-eviction buffer pool, and group commit. The low-write-amplification counterpart to the LSM engine.

Go · MVCC · ARIES WAL · Clock

A complete SQL engine built end to end: lexer, recursive-descent parser, analyzer, a rule-based optimizer, cost-based join ordering by dynamic programming, and a Volcano-model executor with an interactive plan visualizer.

Go · RBO · CBO · Volcano iterator

A transaction engine running 2PL and MVCC side by side: serializable snapshot isolation, ARIES recovery, wait-for-graph deadlock detection, and Raft replication, with a browser playground for reproducing isolation anomalies.

Go · 2PL · MVCC · SSI · Raft

Distributed systems

4

A replicated key/value store on a from-scratch Raft: linearizable reads via ReadIndex (no log write), streaming snapshots, joint-consensus membership changes, and correctness checked with Porcupine linearizability testing.

Go · Raft · linearizability · gRPC

An interactive causality lab: Lamport, vector, and matrix clocks, dotted version vectors, Chandy-Lamport global snapshots, and BSS causal delivery, all rendered as live space-time diagrams with eight failure scenarios.

Go · vector clocks · Chandy-Lamport · D3

Single-leader, multi-leader, and leaderless (Dynamo-style) replication in one simulator: tunable N/W/R quorums, read repair, hinted handoff, Merkle anti-entropy, and a linearizability checker over the resulting histories.

Go · quorums · anti-entropy · React

An observability backend ingesting OTLP and native spans with seven pluggable samplers (including tail-based and adaptive) and RED metrics computed over sliding-window histograms, streamed to a React waterfall UI.

Go · OpenTelemetry · SSE · React

Infrastructure & networking

4

An HTTP reverse proxy and load balancer in pure stdlib Go: eight balancing algorithms (including peak-EWMA and bounded-load consistent hashing), circuit breaking, request hedging, SNI multi-cert TLS, and live config reload.

Go (stdlib) · L7 routing · circuit breaker

An Airflow-semantics workflow engine in pure Go, no Python or broker: YAML DAGs, 11 trigger rules, poke/reschedule sensors, cycle detection, hot reload via fsnotify, a dead-letter queue, and a React Flow UI.

Go · scheduling · React Flow · SQLite

A self-hosted feature-flag platform: microsecond local evaluation, real-time SSE flag updates, statistically-sound A/B testing (mSPRT), and Go plus TypeScript SDKs kept in lockstep by 45+ cross-SDK conformance fixtures.

Go · React · SSE · mSPRT

A resilience toolkit with six rate-limiting algorithms (token bucket, GCRA, sliding window, leaky bucket, fixed window, adaptive), plus circuit breaker, bulkhead, and retry budget. Zero-dependency core, optional Redis backend.

Go · Redis (optional) · HTTP/gRPC middleware

Concurrency & OS

3

A userspace M:N fiber scheduler with work-stealing across per-worker run queues, fiber-aware mutexes, channels, and wait groups, priority scheduling with anti-starvation aging, and a live scheduler dashboard.

Go · work-stealing · atomics · WebSocket

Lock-free data structures built directly on CAS: a Treiber stack, Michael-Scott queue, Harris-Michael sorted list, and cache-line-padded SPSC/MPMC ring buffers, with linearizability verified by model-checked tests.

Go · CAS · linearizability

An inode-based filesystem (ext2-like) with ext3-style ordered journaling and crash recovery, a write-back buffer cache with CRC32 commit records, and a real-time SVG block-map visualizer plus a 20-command shell.

Go · journaling · crash recovery · React

AI & agents

4

A multi-provider agent orchestrator with autonomous loops, cron, parallel swarms, hard token budgets, and a crash-safe SQLite state store. Recently ported from a Python control plane to a native Go runtime. On PyPI + npm.

Go · agents · SQLite · multi-provider
PromptLine
Python

An LLM-evaluation and prompt-optimization pipeline: a calibrated LLM-as-judge, a statistical deploy gate (paired-bootstrap CI with Holm correction), and five optimizers including a from-scratch GEPA. On PyPI as promptline-opt.

Python · FastAPI · LLM-as-judge · GEPA
Latexy
Full-stack

A full-stack resume optimizer that rewrites LaTeX against a target job description, streams the compile, and scores ATS keyword coverage with pgvector semantic matching, showing exactly what a parser reads back.

Next.js · FastAPI · Celery · pgvector

A retrieval-augmented knowledge base: a FastAPI backend ingests PDFs, DOCX, and images into Pinecone, and GPT-4 answers questions with citations back to the source chunks. React search and chat UI on top.

FastAPI · Pinecone · GPT-4 · React

Applications

6
PayGate
Go

A multi-tenant payment platform in Go using double-entry ledgering, a transactional outbox, and saga orchestration with explicit per-entity state machines, three-way reconciliation, and dead-letter handling.

Go · PostgreSQL · Saga · Outbox
DB-Backup
Systems

A cross-platform enterprise backup product: Go backend, Next.js web, Rust/Tauri desktop, React Native mobile, and browser extensions, with Ansible and Helm deployment and OPA policy-as-code.

Go · Rust/Tauri · Next.js · Helm

A high-performance P2P file-sharing CLI in C++17: an epoll event loop handling 200+ concurrent peers, a custom binary protocol with CRC32 validation, resumable transfers, and a worker thread pool.

C++17 · epoll · pthreads
GeoVision
Full-stack

A geospatial analysis chatbot on Next.js wiring Google Earth Engine, Vertex AI, and Supabase: RAG over map data, live MapLibre rendering, vector uploads, land-cover mapping, and change detection.

Next.js · Earth Engine · Vertex AI · Supabase
ViralGen
Full-stack

A full-stack AI ad generator: scrape a product URL, generate a GPT-driven script, and render a 9:16 vertical video with FFmpeg. FastAPI backend with a React and Vite front end.

FastAPI · React · FFmpeg · GPT

A real-time malware scanner pairing a Chrome extension with a Flask backend and the VirusTotal API, with an encrypted quarantine store, a management dashboard, and email alerts.

Python · Flask · Chrome extension · VirusTotal

Machine learning & numerics

5
LinearAlgebra
Python

A pure-Python linear algebra library with no NumPy underneath: vectors, matrices, and the decompositions that matter for ML (QR, SVD, Cholesky, eigendecomposition, PCA) plus Gram-Schmidt projection. Phase 0 of a from-scratch ML stack.

Python · SVD · QR · PCA
Calculus
Python

Automatic differentiation, symbolic differentiation, numerical integration, and Taylor expansion in pure Python. A small autograd built to understand exactly what a real one is doing.

Python · autograd · symbolic diff

Probability and statistics from scratch in pure Python: distributions, MCMC samplers, Bayesian estimation, and information theory, with no SciPy underneath. Part of the same from-scratch ML foundation.

Python · MCMC · Bayesian
Optimization
Python

Gradient-based optimizers, learning-rate schedules, line search, and second-order and constrained methods, implemented in pure Python to watch how each one actually converges.

Python · optimizers · line search

A five-milestone deep-learning project for music genre classification and mashup detection: audio feature pipelines, CNN and RNN models, evaluation, and a Flask deployment.

Python · CNN/RNN · audio · Flask

More on github.com/sanskarpan