Local-first multimedia research library for hardware projects. Capture code, CAD, PDFs, images. Search with material-type weighting. Project isolation with cross-references. Async extraction. Backup + restore.
A local-first multimedia research library for capturing, organizing, and searching hardware project knowledge.
clawhub install research-library
# OR
pip install /path/to/research-library
# Initialize database
reslib status
# Add a project
reslib add ~/projects/arduino/servo.py --project arduino --material-type reference
# Search
reslib search "servo tuning"
# Link knowledge
reslib link 5 12 --type applies_to
reslib add — Import documents (auto-detect + extract)reslib search — Full-text search with filtersreslib get — View document detailsreslib archive / reslib unarchive — Manage documentsreslib export — Export as JSON/Markdownreslib link — Create document relationshipsreslib projects — Manage projectsreslib tags — Manage tagsreslib status — System overviewreslib backup / reslib restore — Snapshotsreslib smoke_test.sh — Quick validationCopy reslib/config.json and customize:
{
"db_path": "~/.openclaw/research/library.db",
"num_workers": 2,
"worker_timeout_sec": 300,
"max_retries": 3,
"backup_retention_days": 30,
"backup_dir": "~/.openclaw/research/backups",
"file_size_limit_mb": 200,
"project_size_limit_gb": 2
}
Use RL1 protocol in war room DNA:
from reslib import ResearchDatabase, ResearchSearch
db = ResearchDatabase()
search = ResearchSearch(db)
# Before researching, check existing knowledge
prior = search.search("servo tuning", project="rc-quadcopter")
if prior:
print(f"Found {len(prior)} prior items")