ai-agent

Moneta

A unified interface to key/value stores
1,115 stars87 forksRubyUpdated 8/2/2024100% free · open source
What it does

Moneta gives Ruby apps a single, simple API to read/write data in any supported key/value store (Redis, Memcached, file, SQLite, etc.).

When to use it
  • You need a fast cache that can be swapped between in‑memory (Redis) and persistent (SQLite) without changing your code.
  • Your service must share data across multiple processes or servers using the same backend.
  • You want a thin wrapper to experiment with different stores before committing to one.
Ready-to-paste prompt
ruby -r moneta -e "store = Moneta.build { use :Redis, host: 'localhost', port: 6379; use :Expiration, default: 300 } ; store['session:abc'] = {uid: 1, token: 'xyz'}; puts store['session:abc']"
Heads up: Each backend has its own native library requirement – e.g., using :Redis needs the `redis` gem **and** a running Redis server; forgetting to start the server will raise a connection error.
Saves to your device
Use with Claude
New

Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.

✅ Light setup

Installs with a command or two; your AI agent can do it for you.

Try it instantly — no install
Claude Code
mkdir -p ~/.claude/skills/moneta && curl -fsSL https://workflowstacks.com/api/skills/moneta/claude-skill -o ~/.claude/skills/moneta/SKILL.md
Open in another AI app

Opens the app with this repo with the prompt ready to go — no copy-paste needed.

Connect the whole catalog (MCP)
claude mcp add --transport http workflowstacks https://workflowstacks.com/api/mcp

Adds a WorkflowStacks connector to Claude Code: search and load any skill here by chatting.

How Moneta works
Codeflow
Free to inspect

Moneta is a medium Ruby project (~7.3k lines across 121 code files, plus 214 test files). Setup is light: installs like a normal app. Reading the code is optional. Last commit 26 months ago, MIT license, has a test suite.

Size
Medium codebase
~7.3k lines · 121 code files · ~1 h to skim
Setup
One-command install
Installs like a normal app. Reading the code is optional.
Runs on
Ruby
No API keys detected
Ruby 100%
Where to start reading
  1. 1
    README.md
    Start here — what it does and how to install it
  2. 2
    lib/moneta.rb
    Inside lib/ — the main logic begins here
What's in each folder
lib/Core code — the actual logic121 files
script/Helper scripts11 files
gemfiles/Folder1 files
spec/Tests — proof it works212 files
test/Tests — proof it works2 files
.github/CI / automation (GitHub Actions)1 files
READMEHas testsThin docsCI checksMIT licenseLast update 26 mo ago
Quick Actions
Details
Creator
moneta-rb
Language
Ruby
Category
ai-agent
Published
11/18/2012

Are you the creator of this tool? Claim your listing → and earn 85% of every sale.