Spaces:
Running
Running
metadata
title: Document Viewer
emoji: π
colorFrom: blue
colorTo: purple
sdk: docker
pinned: false
license: mit
Document Viewer - AI-Powered Documentation System
An Obsidian-style documentation system where AI agents and humans collaborate on creating and maintaining documentation.
β οΈ Demo Mode
This is a demonstration instance with ephemeral storage.
- All data is temporary and resets on server restart
- Demo content is automatically seeded on each startup
- For production use, deploy your own instance with persistent storage
π― Features
- Wikilinks - Link between notes using
[[Note Name]]syntax - Full-Text Search - BM25 ranking with recency bonus
- Backlinks - Automatically track note references
- Split-Pane Editor - Live markdown preview
- MCP Integration - AI agents can read/write via Model Context Protocol
- Multi-Tenant - Each user gets an isolated vault (HF OAuth)
π Getting Started
- Click "Sign in with Hugging Face" to authenticate
- Browse the pre-seeded demo notes
- Try searching, creating, and editing notes
- Check out the wikilinks between documents
π€ AI Agent Access (MCP)
After signing in, go to Settings to get your API token for MCP access:
{
"mcpServers": {
"obsidian-docs": {
"url": "https://YOUR_USERNAME-Document-MCP.hf.space/mcp",
"transport": "http",
"headers": {
"Authorization": "Bearer YOUR_JWT_TOKEN"
}
}
}
}
For local experiments you can still run the MCP server via STDIOβuse the "Local Development" snippet shown in Settings.
AI agents can then use these tools:
list_notes- Browse vaultread_note- Read note contentwrite_note- Create/update notessearch_notes- Full-text searchget_backlinks- Find referencesget_tags- List all tags
ποΈ Tech Stack
Backend:
- FastAPI - HTTP API server
- FastMCP - MCP server for AI integration
- SQLite FTS5 - Full-text search
- python-frontmatter - YAML metadata
Frontend:
- React + Vite - Modern web framework
- shadcn/ui - UI components
- Tailwind CSS - Styling
- react-markdown - Markdown rendering
π Documentation
Key demo notes to explore:
- Getting Started - Introduction and overview
- API Documentation - REST API reference
- MCP Integration - AI agent configuration
- Wikilink Examples - How linking works
- Architecture Overview - System design
- Search Features - Full-text search details
βοΈ Deploy Your Own
Want persistent storage and full control? Deploy your own instance:
- Clone the repository
- Set up HF OAuth app
- Configure environment variables
- Deploy to HF Spaces or any Docker host
See DEPLOYMENT.md for detailed instructions.
π Privacy & Data
- Multi-tenant: Each HF user gets an isolated vault
- Demo data: Resets on restart (ephemeral storage)
- OAuth: Secure authentication via Hugging Face
- No tracking: We don't collect analytics or personal data
π License
MIT License - See LICENSE file for details
π€ Contributing
Contributions welcome! Open an issue or submit a PR.
Built with β€οΈ for the AI-human documentation collaboration workflow