#notion #repository #notion-to-jarkup #jarkup

notion-to-jarkup

Convert Notion blocks into jarkup JSON

10 unstable releases (3 breaking)

Uses new Rust 2024

0.4.2 May 9, 2025
0.4.1 May 9, 2025
0.3.0 May 6, 2025
0.2.4 May 4, 2025
0.1.0 Apr 28, 2025

#733 in Parser implementations

Download history 450/week @ 2025-04-28 515/week @ 2025-05-05 153/week @ 2025-05-12

1,118 downloads per month

MIT license

49KB
1K SLoC

Rust 855 SLoC HCL 158 SLoC // 0.0% comments

notion-to-jarkup

Convert Notion blocks into jarkup JSON.

Example

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    dotenvy::dotenv().ok();
    let notion_api_key = std::env::var("NOTION_API_KEY")?;
    let block_id = std::env::var("BLOCK_ID")?;

    let notionrs_client = notionrs::client::Client::new().secret(notion_api_key);
    let reqwest_client = reqwest::Client::new();

    let client = notion_to_jarkup::client::Client {
        notionrs_client,
        reqwest_client,
    };

    let result = client.convert_block(&block_id).await?;

    println!("{}", serde_json::to_string(&result).unwrap());

    Ok(())
}

Dependencies

~8–23MB
~323K SLoC