Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Documents patterns, folder structure, and module anatomy for the Anachak multi-tenant Rust gRPC backend.
Use this skill ↓33% 83%+50 ptsof test cases passed
Passed 20 of 24 test cases with the skill, and 8 of 24 without it.
3 of 3 safety checks passed
Not used yet
Comprehensive guide for working with the Anachak Rust gRPC backend — a multi-tenant SaaS platform with 11 modules, 32 utility packages, and 90+ RPCs.
| Layer | Technology | Version |
|---|---|---|
| Language | Rust | 2021 edition |
| Transport | gRPC (Tonic) + gRPC-Web | tonic 0.12 |
| Database | PostgreSQL (SQLx) | sqlx 0.8 |
| Proto | Protocol Buffers v3 | Buf CLI v2 |
| Auth | JWT (jsonwebtoken 9) | Access + Refresh |
| Password | Argon2 (argon2 0.5) | PHC-format |
| Payments | Bakong/KHQR (EMV-compliant) | reqwest 0.12 |
| Metrics | Prometheus | prometheus 0.13 |
| WebSocket | tokio-tungstenite 0.24 | Notification broadcast |
| OTP | TOTP (totp-rs 5) | Google Authenticator |
| SMS | Plasgate | Cambodia gateway |
| Resend | HTTP API | |
| IDs | ULID (ulid 1) | Sortable, unique |
| Cache | In-memory / Redis (optional) | Feature-gated |
| Observability | tracing + optional OpenTelemetry | Feature-gated otel |
| Hot Reload | cargo watch | cw alias |
| Topic | File |
|---|---|
| Folder structure | folder-structure.md |
| Module anatomy | module-anatomy.md |
| Infrastructure utils | infrastructure.md |
| Interceptor/layer chain | interceptors.md |
| Database patterns | database-patterns.md |
| Error handling | error-handling.md |
| Adding a new module | new-module-checklist.md |
| Proto & Buf | proto-and-buf.md |
Next to this one in the catalogue, plus more from the same author.