Coding Vault
unlistedby 5ntgxp2yt4-tech
Store, search, and retrieve code snippets in your Obsidian vault with optional LM Studio AI metadata generation.
Updated 21d agoMIT
Coding Vault
An Obsidian plugin that turns your vault into a searchable code snippet database, with optional AI-powered metadata generation via LM Studio.
Features
- Store Selection as Snippet — select any code in the editor, run the command, and it's saved as a structured note with YAML frontmatter (title, language, tags, purpose, functions).
- Store Current File as Snippet — store the entire open file in one command.
- Query Snippets — fuzzy-search your entire snippet database by title, language, or purpose.
- Fast mode (default) — derives title and tags from code structure instantly, no LLM required.
- LLM mode — calls your local LM Studio manager model to generate rich metadata automatically.
- Compatible with obsidian-coding-pipeline — shares the same frontmatter schema.
Installation
From Community Plugins (once approved)
- Open Obsidian → Settings → Community Plugins → Browse
- Search for Coding Vault
- Install and enable
Manual
- Download
main.js,manifest.json, andstyles.cssfrom the latest release. - Copy them into
<your-vault>/.obsidian/plugins/coding-vault/ - Reload Obsidian and enable the plugin.
BRAT (Beta Reviewers Auto-update Tester)
Add 5ntgxp2yt4-tech/obsidian-coding-vault in the BRAT plugin settings.
Configuration
Open Settings → Coding Vault:
| Setting | Default | Description |
|---|---|---|
| LM Studio URL | http://127.0.0.1:1234/v1/chat/completions | Chat completions endpoint |
| Manager model | obsidian-manager | Model loaded in LM Studio for metadata generation |
| Database directory | Copilot/Coding Database | Vault folder where snippets are stored |
| Fast mode | On | Skip LLM calls; derive metadata from code structure |
Usage
Storing a snippet
- Select code in any editor pane (or use Store current file).
- Open the Command Palette (
Ctrl/Cmd+P) → Coding Vault: Store selection as snippet. - Enter a brief description (used as the title in fast mode).
- Click Store — the snippet is saved and opened.
Querying snippets
- Command Palette → Coding Vault: Query snippets.
- Type to filter by title, language, or purpose.
- Select a result to open the note.
Snippet format
Each snippet is saved as a Markdown note with YAML frontmatter:
---
title: "Reverse Linked List in Python"
language: python
purpose: "Iterative linked list reversal"
summary: "Reverses a singly linked list in O(n) time and O(1) space."
tags:
- python
- algorithm
functions:
- reverse_linked_list
platforms: []
frameworks:
- python
source_model: "manual"
created: "2026-05-02T06:00:00.000Z"
---
## Reverse Linked List in Python
\`\`\`python
def reverse_linked_list(head):
...
\`\`\`
Building from source
git clone https://github.com/5ntgxp2yt4-tech/obsidian-coding-vault
cd obsidian-coding-vault
npm install
npm run build
The output main.js is placed in the project root.
License
MIT
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.