All-in-one toolkit for Supernote devices: parse notebooks, self-host services, access services
Project description
Supernote Knowledge Hub
The AI-powered intelligence layer for your Ratta Supernote.
This toolkit is a self-hosted implementation of the Supernote Private Cloud protocol. While Ratta's official private cloud provides a solid and reliable sync foundation, this project extends that experience with an AI-driven synthesis engine—transforming your handwritten notes into structured, searchable knowledge using Google Gemini.
Why Supernote Knowledge Hub?
This project is designed to be fully compatible with the official Supernote Private Cloud protocol, while adding specialized features for knowledge workers and researchers:
- 📜 AI Synthesis: Automatically transcribes handwriting and generates high-level summaries (Daily, Weekly, Monthly).
- 🔍 Semantic Search: Find concepts across all your notebooks—not just filenames—using vectorized content.
- 🛡️ Private & Secure: You own your database. Run it on your NAS, local PC, or a low-power server, just like Supernote Private Cloud.
- 🖥️ Modern Web UI: A sleek, reactive frontend to browse, review, and search your notes from any browser.
- 🤖 MCP Ready: Connect your notes to AI agents (like Claude or ChatGPT) via the built-in Model Context Protocol server.
Synthesis & AI in Action
Beyond simple storage, Supernote provides an active processing pipeline to increase the utility of your notes:
- Sync: Your device uploads
.notefiles using the official Private Cloud protocol. - Transcribe: The server extract pages and use Gemini Vision to OCR your handwriting.
- Synthesize: AI Analyzers review your journals to find tasks, themes, and summaries.
- Index: Every word is vectorized, enabling semantic search across your entire library.
Web Interface
The integrated frontend allows you to review your notes and AI insights side-by-side.
Quick Start
1. Launch the Cloud
The easiest way to start is with the all bundle and a Gemini API key:
export SUPERNOTE_GEMINI_API_KEY="your-api-key"
pip install "supernote[all]"
supernote serve
2. Bootstrap Your User
# Create the initial admin account
supernote admin user add you@example.com --url http://localhost:8080
# Authenticate your CLI
supernote cloud login you@example.com --url http://localhost:8080
3. Connect Your Device
- On your Supernote, go to Settings > Sync > Private Cloud.
- Enter your server URL (e.g.,
http://192.168.1.5:8080). - Log in with the email and password you created in Step 2.
- Tap Sync to begin processing your notes.
4. Explore Your Insights
Once your notes sync and process, you can view the AI synthesis from the terminal or browser:
# Get a high-level summary and transcription
supernote cloud insights /Notes/NOTE/Journal.note
# Semantic search across all notebooks
supernote cloud search "What were my project goals for February?"
[!TIP] Semantic Search: Supernote doesn't just look for words—it understands concepts. Searching for "budget" will find notes about "expenses" or "money," even if the specific word isn't there.
Features Deep Dive
- Official Protocol Compatibility: Implements the official Supernote Private Cloud protocol for seamless device synchronization. While Ratta's official service provides a robust and managed sync experience, this project allows for local data ownership and custom background processing.
- Notebook Parsing: Native, high-fidelity conversion of
.notefiles to PDF, PNG, SVG, or plain text. - Developer API: Modern
asyncioclient to build your own automation around Supernote data. - Observability: Built-in request tracing and background task monitoring.
Installation
# Install specific components
pip install supernote # Notebook parsing only
pip install supernote[server] # + Private server & AI features
pip install supernote[client] # + API Client
# Full installation (recommended for server users)
pip install supernote[all]
Local Development Setup
To set up the project for development, please refer to the Contributing Guide.
Parse a Notebook (Local)
from supernote.notebook import parse_notebook
notebook = parse_notebook("mynote.note")
notebook.to_pdf("output.pdf")
The notebook parser is a fork and slightly lighter dependency version of supernote-tool. All credit goes to the original authors for providing an amazing low-level utility.
Run with Docker
# Build & Run server
docker build -t supernote .
docker run -d -p 8080:8080 -v $(pwd)/storage:/storage supernote serve
See Server Documentation for details.
Developer API
Integrate Supernote into your own Python applications:
from supernote.client import Supernote
# See library docstrings for usage examples
CLI Usage
# Server & Admin
supernote serve # Start the cloud
supernote admin user list # Manage your users
# AI Synthesis & Insights
supernote cloud insights /Note.note # View synthesis from CLI
# File Operations
supernote cloud ls / # List remote files
supernote cloud download /Note.note # Download to local machine
Notebook Operations (Local)
You can use the built-in parser outside of the cloud server:
from supernote.notebook import parse_notebook
note = parse_notebook("journal.note")
note.to_pdf("journal.pdf") # Multi-layer PDF conversion
The notebook parser is a fork of the excellent supernote-tool with updated dependencies and modern type hints.
Contributing
We welcome contributions! Please see our Contributing Guide for details on:
- Local development setup
- Project architecture
- Using Ephemeral Mode for fast testing
- AI Skills for agentic interaction
Acknowledgments
This project is in support of the amazing Ratta Supernote product and community. It aims to be a complementary, unofficial offering that is fully compatible with the official Private Cloud protocol.
Choosing Your Private Cloud Experience
The official Supernote Private Cloud by Ratta is a rock-solid, production-grade implementation of the protocol. This toolkit serves as a community-driven extension for users who need deep data analysis and advanced integrations.
| Capability | Official Private Cloud (Ratta) | Supernote Hub (This Project) |
|---|---|---|
| Core Sync | ✅ Robust & Validated | ✅ Protocol Compatible |
| AI Analysis | Basic OCR (Device-side) | Adv. OCR & Multi-stage Synthesis |
| Search | Path/Filename | Semantic Concept Search |
| Stack | Java / Spring Boot | Python / Asyncio |
| Focus | Stability & Stability | Innovation & Extensibility |
This toolkit is a great fit if:
- You want AI-generated summaries and insights from your notebooks.
- You want to perform semantic searches across your entire handwriting library.
- You want to integrate your notes into local scripts via a Python API or CLI.
- You want to use the Model Context Protocol (MCP) to expose your knowledge to AI agents.
Community Projects
- jya-dev/supernote-tool - Original parser foundation.
- awesome-supernote - Curated resource list.
- sn2md - Supernote to text/image converter.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file supernote-0.14.8.tar.gz.
File metadata
- Download URL: supernote-0.14.8.tar.gz
- Upload date:
- Size: 185.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aea4af59529217f7d0f6bdd9ccade997c1fb87134938c18979ffa25adf808afd
|
|
| MD5 |
a3b41d25eaa582e407f8b3b8cc8cf6fd
|
|
| BLAKE2b-256 |
2fb4f54a8bcdbe0603e09991097795286108764f9a334d5ceca116c312ef03c8
|
Provenance
The following attestation bundles were made for supernote-0.14.8.tar.gz:
Publisher:
publish.yaml on allenporter/supernote
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
supernote-0.14.8.tar.gz -
Subject digest:
aea4af59529217f7d0f6bdd9ccade997c1fb87134938c18979ffa25adf808afd - Sigstore transparency entry: 928741384
- Sigstore integration time:
-
Permalink:
allenporter/supernote@3ade6cd6da72a3e6c2c0b4bf91f764a52ee47481 -
Branch / Tag:
refs/tags/0.14.8 - Owner: https://github.com/allenporter
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@3ade6cd6da72a3e6c2c0b4bf91f764a52ee47481 -
Trigger Event:
release
-
Statement type:
File details
Details for the file supernote-0.14.8-py3-none-any.whl.
File metadata
- Download URL: supernote-0.14.8-py3-none-any.whl
- Upload date:
- Size: 235.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ade149a3bb5f9fab86e676d643a1da03f4c3e2528ad4fa13335537605c4dfb00
|
|
| MD5 |
b323ce6574253f48d493a8651d3e1ca1
|
|
| BLAKE2b-256 |
716b8c9ba792852c0520d8b9baaa1fe582aefcbaad6d56530b3421fd0e897bcf
|
Provenance
The following attestation bundles were made for supernote-0.14.8-py3-none-any.whl:
Publisher:
publish.yaml on allenporter/supernote
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
supernote-0.14.8-py3-none-any.whl -
Subject digest:
ade149a3bb5f9fab86e676d643a1da03f4c3e2528ad4fa13335537605c4dfb00 - Sigstore transparency entry: 928741386
- Sigstore integration time:
-
Permalink:
allenporter/supernote@3ade6cd6da72a3e6c2c0b4bf91f764a52ee47481 -
Branch / Tag:
refs/tags/0.14.8 - Owner: https://github.com/allenporter
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@3ade6cd6da72a3e6c2c0b4bf91f764a52ee47481 -
Trigger Event:
release
-
Statement type: