| Crates.io | supernote_pdf |
| lib.rs | supernote_pdf |
| version | 0.1.1 |
| created_at | 2025-08-08 10:09:51.540992+00 |
| updated_at | 2025-08-13 12:40:18.647951+00 |
| description | CLI to convert .note files (and directories of them) into pdfs for archival and backup |
| homepage | |
| repository | https://github.com/RohanGautam/supernote_pdf |
| max_upload_size | |
| id | 1786542 |
| size | 114,014 |
A blazing-fast CLI tool for converting Supernote .note files to PDF, optimized for archival and backup.
supernote_pdf converting a 800Mb folder of Notes into pdfs in 14s.
This tool is designed for one thing: converting Supernote .note files to PDF at maximum speed. It leverages parallel processing and custom PDF generation logic to handle large collections of notes.
.note files, perfectly preserving the original directory structure.Hereβs how directory conversion works:
Input Directory Output Directory
----------------- ------------------
notes/ notes_pdf/
βββ Meeting.note ====> βββ Meeting.pdf
βββ project/ βββ project/
βββ Ideas.note ====> βββ Ideas.pdf
βββ Draft.note βββ Draft.pdf
Several key design decisions were made to optimize for the primary goal of fast, reliable backups:
.note file and I can work on adding support for that too!Ensure you have the Rust toolchain installed. Then, you can install supernote_pdf CLI directly from Crates.io using cargo:
cargo install supernote_pdf
and supernote_pdf will be available as a tool in your shell.
git clone https://github.com/your-username/supernote_pdf.git
cd supernote-pdf
cargo run --release -- -i <input-path> -o <output-path>
The CLI is simple, requiring an input path and an output path.
supernote_pdf -i <input-path> -o <output-path>
To convert a single .note file to a .pdf file:
supernote_pdf -i "My Notes/Meeting Agenda.note" -o "Archive/Meeting Agenda.pdf"
To convert your entire Note folder (copied from your Supernote) into a new Note_PDFs directory:
supernote_pdf -i path/to/your/Note_folder -o path/to/your/Note_PDFs
The tool will scan for all .note files in the input directory, recreate the folder structure in the output directory, and convert every file.
Note: For safety, the output directory must not already exist. This prevents you from accidentally overwriting previous backups.
supernote_pdf is significantly faster than available tools, making it ideal for large and frequent backups.
Test converting a 30-page, ~50MB .note file:
| Tool | Time | Performance |
|---|---|---|
supernote-tool |
18.6 s |
Baseline |
supernote_pdf (this tool) |
~600 ms |
~30x Faster |
Test converting a local copy of my Supernote's Note folder:
~800 MB directory of .note files~14 s~84 MB directory of .pdf filesTesting environment for the benchmarks above was on my Thinkpad X1 Extreme Gen2, Core i7 9th Gen. Your results may vary.
supernote-tool was run using uvx --from supernotelib supernote-tool convert -t pdf ... several times.
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
.note file format and served as a valuable benchmark.