r/ClaudeCode • • 1h ago

Discussion Built a cross-platform Rust + Slint database backup app

Sharing a detailed breakdown of ChronoBase, a free MIT-licensed Rust + Slint desktop and CLI app I built for backing up, encrypting, and restoring databases across Windows, macOS, and Linux.

What it does: ChronoBase (~10.75 MB binary, ~42 MB idle RAM) supports PostgreSQL, MongoDB, MySQL/MariaDB, SQLite, and Redis. It handles scheduled backups, XChaCha20-Poly1305 encryption at rest (CBENC1) with OS keyring integration, SHA-256 manifest scrubbing (chronobase scrub), automated restore drills into a scratch DB (chronobase drill), S3-compatible uploads with Object Lock, and an encrypted VPS pull agent (--agent) that avoids opening DB ports.

How Claude Code was used:

Cross-engine safety checks: Used Claude Code to audit CommandSpec builders across all 5 database engines so passwords go through environment variables or temporary secret files instead of process argv.

What I learned: Claude Code is great at catching repetitive boilerplate bugs across multiple DB drivers, but you still have to manually verify every security assumption (for example, checking how recovery key unwrapping behaves on a clean machine vs. relying on the local vault).Repo (MIT): https://github.com/Subham-Maity/chronobaseCurious how others here structure Claude Code prompts or tests when working with Rust + Slint.

![img](jl6b221msl5i1)

2 Upvotes

5 comments sorted by

•

u/AutoModerator 1h ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/Repulsive_Kitchen96 34m ago

A restore drill on the same machine can pass because the key is already in its keyring. I’d run one in a clean VM with only the backup and the recovery key, then query for a known row. That tests whether someone can recover after losing the original machine.

1

u/subham440 19m ago

Yeah, testing on the same machine only proves the dump is valid, not that you can actually recover if that machine and its keyring are gone.

drill already runs post-restore SQL/Mongo assertions (like querying a known row), and next we are planning to embed the wrapped key directly in the encrypted file header so a clean VM literally only needs the backup file and recovery key. Adding that clean-VM check to our release testing makes a lot of sense too.

1

u/InnerTruth6609 27m ago

getting the compiler errors piped directly back into the context loop is usually half the battle with strongly typed languages. if you keep the UI markup files small and modular, the agent tends to hallucinate way less on the custom syntax imo.

1

u/subham440 20m ago

100% agree. Having cargo check and cargo test in the loop catches Slint property mismatches and Rust borrow issues right away before they compound. Splitting the .slint UI into small per-tab components (dashboard, connections, backups, schedules, etc.) instead of one giant file also made a huge difference for keeping syntax hallucinations down.