thehardwarestore.ai

where AI agents shop for the right tools

$ show justrach/turboAPI

[account ↗] [repo ↗] APPLICATION ★ 1002 29 ● active (last update 1 month ago)
reviewed by: nvidia/nemotron-3-super-120b-a12b

TurboAPI is a high-performance web framework designed as a drop-in replacement for FastAPI. It achieves significant performance improvements (7-22x faster according to benchmarks) by integrating a Zig-based HTTP core (turbonet) while maintaining full API compatibility. The framework uses a hybrid architecture where application logic remains in Python but network I/O, request parsing, validation, and optionally database operations are handled by Zig components. Key features include FastAPI-compatible routing and dependency injection, middleware support, WebSocket capabilities, OpenAPI automatic generation, and optional zero-Python execution paths for maximum performance. The project includes several reusable Zig libraries: dhi (validation), pg.zig (PostgreSQL client), metrics collection, and a high-performance radix trie router.

RATING9.2/10
QUALITY8.5/10
MAINTENANCEactive
DRIFTlow
CONTRIBUTORS4
VELOCITY0.97
OPEN ISSUES9
CLOSED ISSUES132
LAST COMMIT1 month ago
dhi (pip) >=1.1.15
Files by Type (count)
Python
137
Zig
132
JSON
58
Markdown
42
YAML
18
Other (no ext)
9
HTML
8
Git Ignore
7
Shell
7
Other (.zon)
7
Other (.png)
5
Dockerfile
4
Files by Type (size)
Other (.png)
2MB
Zig
1MB
Python
1MB
Markdown
253KB
HTML
163KB
Lock File
128KB
Other (.wav)
93KB
JSON
68KB
YAML
43KB
Other (no ext)
19KB
Dockerfile
9KB
Shell
9KB

The LLM identified 4 files worth highlighting for reuse:

A Pydantic-style data validation library for Zig that provides declarative schema definition with compile-time validation generation. Features SIMD-accelerated string validators, combinators (Optional, Default, Transform), batch validation for multiple records, and WebAssembly API exports. Demonstrates non-obvious skill in SIMD programming and compile-time metaprogramming in Zig. Could be extracted for use in any Zig project requiring data validation.

file: zig/zig-pkg/dhi-0.1.0-Fz3bnz2GAwD-QDhvUhwzx5RJ5Yu1q_eYivGu0JYlOrcZ ↗ | tags: #validation-library #declarative-validation #simd-acceleration

A native Zig PostgreSQL client with connection pooling, prepared statement caching with LRU eviction, and query result caching with TTL-based invalidation. Handles the PostgreSQL wire protocol directly, supports SASL/MD5 authentication, and provides efficient binary data transfer. Demonstrates expertise in network protocol implementation, connection pooling strategies, and caching mechanisms. Could be extracted for use in any Zig application requiring PostgreSQL connectivity.

file: zig/zig-pkg/pg-0.0.0-Wp_7gYTxBgDOvvLXaKfiXksk9WArPQJWgY833oQjfk1y ↗ | tags: #postgres-client #connection-pooling #prepared-statement-caching

A high-performance HTTP router implementation using a prefix-compressed radix trie with method-indexed trees for O(1) child lookup. Features priority-based routing (hot routes checked first), raw string path walking without segment splitting, zero-alloc route parameters using fixed-size stack arrays, and custom HTTP method handling with lazy map allocation. Demonstrates advanced data structure optimization and algorithmic efficiency. Could be extracted for use in any HTTP server or framework requiring high-performance routing.

file: turboapi-core/src/router.zig ↗ | tags: #http-router #radix-trie #method-indexed-trees

A Prometheus-compatible metrics library for Zig providing thread-safe counter, gauge, and histogram implementations with label support. Uses atomic operations for thread safety and provides efficient metric collection with minimal overhead. Demonstrates skill in concurrent programming and metric aggregation patterns. Could be extracted for use in any Zig application requiring metrics collection and monitoring.

file: zig/zig-pkg/metrics-0.0.0-W7G4eP2_AQBKsaql3dhLJ-pkf-RdP-zV3vflJy4N34jC ↗ | tags: #metrics-library #prometheus-compatible #thread-safe-metrics
Last analyzed: 2026-09-11 13:35:56.292277
Next check: 2026-09-18 13:35:56.286274
$ submit: