| Crates.io | clip-to-notion |
| lib.rs | clip-to-notion |
| version | 0.1.2 |
| created_at | 2024-08-14 18:52:32.703335+00 |
| updated_at | 2024-12-20 12:57:53.314786+00 |
| description | Efficiently fetch the title and metadata from a URL and tidily organize them into a Notion database. |
| homepage | |
| repository | https://github.com/tetzng/clip-to-notion |
| max_upload_size | |
| id | 1337864 |
| size | 88,910 |
ctn is a command-line tool designed to efficiently fetch the title and metadata from any URL and tidily organize them into your Notion workspace. By extracting key information such as titles and Open Graph tags, ctn streamlines the process of saving and managing online content directly within your Notion database.
titleurltextmulti-select (only needed if using the --tags option)To install ctn, ensure you have Rust and Cargo installed, then run:
cargo install clip-to-notion
This will compile the project and install the ctn binary to your Cargo bin path.
Before using ctn, make sure to initialize your configuration file:
ctn init
Follow the prompts to enter your Notion API key and database ID.
To clip a URL to your Notion database, use:
ctn run <url> --tags <tag1,tag2,...>
ctn run https://example.com --tags article,tech
The configuration file is stored at ~/.config/clip-to-notion/config.toml. It contains your Notion API key and database ID.