frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Tinykv – Minimal file-backed key-value store for Rust

https://crates.io/crates/tinykv
24•hasanyildiz•7mo ago
I built tinykv because I kept reaching for simple persistent storage in Rust projects but found existing solutions either too complex (sled) or unmaintained (pickledb).

tinykv focuses on simplicity: JSON-based, serde-powered, with optional TTL. Perfect for CLI tools, game saves, config storage.

Would appreciate any feedback from the HN community!

Comments

WaxProlix•7mo ago
Maybe a replacement for sqlite in some contexts if it's even lighter? What does tinykv do better than the current standard for file backed lightweight DB?
hasanyildiz•7mo ago
Great question! tinykv isn't trying to replace SQLite – they serve different needs. SQLite strengths: relational queries, ACID transactions, SQL. Complex data relationships and multi-user concurrent access. tinykv strengths: zero setup (no schema, no SQL), human-readable files (JSON – you can git diff them!), simple key-value API, built-in TTL support, Serde integration (any Rust type → storage).

Use cases where tinykv fits better: CLI tool config storage, game save files, application preferences, prototyping/MVP development, when you want to inspect/edit the data file manually.

I built it because I kept reaching for simple persistence, but SQLite felt like overkill for storing a HashMap<String, Value>.

porridgeraisin•7mo ago
I love `dbm` in python for this usecase. It supports a handful of backends, including sqlite.
hasanyildiz•7mo ago
Exactly! Python's dbm is a great comparison. tinykv aims for similar simplicity but with some Rust-specific advantages. The key difference is dbm gives you flexibility in storage format, tinykv gives you zero-ceremony type safety + readability. If you want the Python dbm experience in Rust with modern ergonomics, that's basically tinykv's sweet spot.

Both solve the "I just need simple persistence" problem, tinykv just does it the "Rust way" with strong typing and serde.

xylophile•7mo ago
I know everyone wants "just one more feature", but I've been looking for a tiny kv for a side project that allows you to query by key prefix. I haven't had time to build one yet, and have honestly been hoping to stumble across one. Only the huge kv's seem to offer this, despite the existence of off-the-shelf hashing algorithms that will preserve lexicographic ordering.
hasanyildiz•7mo ago
That's a really good point and honestly a very reasonable feature for a minimal store. TinyKV stores keys in a HashMap internally, so it doesn't currently support lexicographic ordering or prefix scanning efficiently. But you're absolutely right if we switched to a BTreeMap (or exposed one as an option), prefix queries could be both fast and natural. I'll add this to the roadmap. Would you mind opening a GitHub issue with your specific use case?
hasanyildiz•7mo ago
v0.3.0 is now live! Added comprehensive no_std support - tinykv now works in:

Desktop applications (std + serde) Embedded systems (no_std + nanoserde) WASM projects (minimal footprint) IoT devices (ultra-minimal)

Show HN: It took 4 years to sell my startup. I wrote a book about it

https://derekyan.com/ma-book/
47•zhyan7109•3d ago•9 comments

Show HN: LocalGPT – A local-first AI assistant in Rust with persistent memory

https://github.com/localgpt-app/localgpt
279•yi_wang•14h ago•134 comments

Show HN: Fine-tuned Qwen2.5-7B on 100 films for probabilistic story graphs

https://cinegraphs.ai/
61•graphpilled•3h ago•18 comments

Show HN: Readability API – Unrender

https://unrender.page/
2•zintus•54m ago•1 comments

Show HN: Claude Code skill that uses Codex as MCP server for code review

https://github.com/pauhu/claude-codex-review
2•pauhu•1h ago•0 comments

Show HN: I saw this cool navigation reveal, so I made a simple HTML+CSS version

https://github.com/Momciloo/fun-with-clip-path
126•momciloo•21h ago•35 comments

Show HN: A sandboxed execution environment for AI agents via WASM

https://github.com/Parassharmaa/agent-sandbox
2•paraaz•3h ago•0 comments

Show HN: Real-time path tracing of medical CT volumes in the browser via WebGPU

https://grenzwert.net/
2•MickGorobets•3h ago•1 comments

Show HN: Portview, A diagnostic-first port viewer for Linux (~930 KB, zero deps)

https://github.com/Mapika/portview
5•Mapika•3h ago•0 comments

Show HN: Google Maps but for your repo (Open Source)

https://github.com/zacharykapank/repomap
2•zacharykapank•4h ago•0 comments

Show HN: A luma dependent chroma compression algorithm (image compression)

https://www.bitsnbites.eu/a-spatial-domain-variable-block-size-luma-dependent-chroma-compression-...
54•mbitsnbites•4d ago•8 comments

Show HN: Elysia JIT "Compiler", why it's one of the fastest JavaScript framework

https://elysiajs.com/internal/jit-compiler
2•saltyaom•5h ago•0 comments

Show HN: HalalCodeCheck – Verify food ingredients offline

https://halalcodecheck.com/
3•pythonbase•5h ago•0 comments

Show HN: Kappal – CLI to Run Docker Compose YML on Kubernetes for Local Dev

https://github.com/sandys/kappal
47•sandGorgon•3d ago•28 comments

Show HN: Smooth CLI – Token-efficient browser for AI agents

https://docs.smooth.sh/cli/overview
102•antves•2d ago•71 comments

Show HN: FlashMesh – An encrypted file mesh across Google Drive and Dropbox

https://flashmesh.netlify.app
2•Elevanix•6h ago•0 comments

Show HN: WeaveMind – AI Workflows with human-in-the-loop

https://weavemind.ai
11•quentin101010•6h ago•3 comments

Show HN: Analyzing 9 years of HN side projects that reached $500/month

7•haileyzhou•7h ago•5 comments

Show HN: Look Ma, No Linux: Shell, App Installer, Vi, Cc on ESP32-S3 / BreezyBox

https://github.com/valdanylchuk/breezydemo
317•isitcontent•1d ago•40 comments

Show HN: R3forth, a ColorForth-inspired language with a tiny VM

https://github.com/phreda4/r3
89•phreda4•1d ago•17 comments

Show HN: If you lose your memory, how to regain access to your computer?

https://eljojo.github.io/rememory/
387•eljojo•1d ago•219 comments

Show HN: Kybera – Agentic Smart Wallet with AI Osint and Reputation Tracking

https://kybera.xyz
4•xipz•7h ago•0 comments

Show HN: Free Bank Statement Analyzer to Find Spending Leaks and Save Money

https://www.whereismymoneygo.com/
2•raleobob•7h ago•1 comments

Show HN: A2A Protocol – Infrastructure for an Agent-to-Agent Economy

2•swimmingkiim•7h ago•1 comments

Show HN: I spent 4 years building a UI design tool with only the features I use

https://vecti.com
379•vecti•1d ago•174 comments

Show HN: Solnix – an early-stage experimental programming language

https://www.solnix-lang.org/
4•maheshbhatiya•7h ago•0 comments

Show HN: MuxPod – A mobile tmux client for monitoring AI agents on the go

https://github.com/moezakura/mux-pod
2•moezakura•8h ago•0 comments

Show HN: OpenCode for Meetings

https://getscripta.app
3•whitemyrat•8h ago•1 comments

Show HN: Artifact Keeper – Open-Source Artifactory/Nexus Alternative in Rust

https://github.com/artifact-keeper
161•bsgeraci•2d ago•66 comments

Show HN: Open-source AI powered Kubernetes IDE

https://github.com/agentkube/agentkube
2•saiyampathak•9h ago•0 comments