Description
π WeeDB: Persistent Data Storage for n8n

Finally, a reliable way to store persistent data in n8n custom nodes!
π― The Problem
One of the most challenging aspects of n8n custom node development has been persistent data storage. Common issues include:
- Data loss during node updates
- No built-in persistent storage solution
- State management complexity
π‘ The Solution
WeeDB solves these challenges by providing:
-
True Persistence
- Data stored in user's home directory (
~/.weedb/) - Survives node updates and reinstalls
- Cross-platform compatibility
- Data stored in user's home directory (
-
Simple API
// Store data that persists! await weeDB.create({ key: "settings", value: "important-data" }); -
Reliable Architecture
~/.weedb/ βββ database1.json βββ database2.json βββ settings/ βββ config.json
β‘ Features
1. Persistent Storage
- β Survives node updates
- β Survives n8n restarts
- β Cross-platform support
2. Rich Operations
- π Pattern-based search
- ποΈ Bulk operations
- π Atomic updates
3. Safety Features
- π§ͺ Dry run mode
- β οΈ Operation confirmation
- π Data integrity checks
π οΈ Installation
npm install n8n-nodes-weedb
π Documentation
Basic Usage
// Store persistent data
WeeDB Create: {
key: "config",
value: { setting: "value" }
}
// Retrieve anytime, anywhere
WeeDB Get: {
mode: "single",
key: "config"
}
Advanced Features
// Pattern-based removal
WeeDB Remove: {
mode: "pattern",
pattern: "temp_*",
options: { dryRun: true }
}
β Support the Project
If you find WeeDB helpful, please consider giving it a star on GitHub! It helps make the project more visible to other n8n developers.
Why Star?
- Help other developers find this solution
- Show your appreciation for the project
- Stay updated on new features and releases
- Join our growing community of n8n developers
π― Real-World Use Cases
-
Configuration Storage
- Store API credentials
- Save user preferences
- Maintain state between workflows
-
Cache Management
- Store API response cache
- Maintain rate limit counters
- Save temporary processing results
-
Workflow State
- Track long-running operations
- Store checkpoint data
- Maintain audit logs
π€ Contributing
Found a bug? Have a feature request? We'd love to hear from you! Check out our contribution guidelines.
π License
MIT Β© Hossein Khoshraftar
/\ \ /\ \ /\ _ \ _ \
\ \ /\ \ \ \ __ \ \ \L\ \ \ \
\ \ \ \ \ \ \L\ \ \ \ __ \ \ \
\ \ _/ \ _/ \ \ \L\ \ _\
\ \___/\/___/ \ \_____\/\_\/ // /___///
WeeDB – Tiny but Mighty