{"_id":"@akiboi/notion-sync-astro","_rev":"7-71917f646f5c183084ecc8d2360095cf","name":"@akiboi/notion-sync-astro","dist-tags":{"latest":"0.0.8"},"versions":{"0.0.2":{"name":"@akiboi/notion-sync-astro","version":"0.0.2","description":"This package integrates Notion with Astro. It automatically syncs articles from Notion to Astro-compatible folders, converting them to MDX format and downloading any referenced images to a local directory.","main":"index.js","types":"lib/index.d.ts","scripts":{"build":"tsc","prepare":"npm run build","test":"echo \"Error: no test specified\" && exit 1"},"keywords":[],"author":{"name":"akibo.I"},"license":"MIT","devDependencies":{"@types/node":"^20.11.30","ts-node":"^10.9.2","typescript":"^5.4.2"},"dependencies":{"@notionhq/client":"^2.2.14","axios":"^1.6.8"},"_id":"@akiboi/notion-sync-astro@0.0.2","gitHead":"5cccc43b14830be4921d69fe5d5f245aa820f57d","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-ANiE+3IHL9l2CXup8rVqckLtnSXSgOpg51erEvCHCIQBXxTd48AkiFE8CMvhD+JyKMHhW1tvjAIsXt2vVJTqKw==","shasum":"7dbb0f9f45480d8c0b5e00913e85b6dfd867a558","tarball":"https://registry.npmjs.org/@akiboi/notion-sync-astro/-/notion-sync-astro-0.0.2.tgz","fileCount":6,"unpackedSize":23540,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGEr53m3jYBegjXMq/torrUzH7eN/1wfJL5bC9qVmBx7AiBElzV/W5r62ZevDm3GF89DwhphQfzmcStfEASSrddbsg=="}]},"_npmUser":{"name":"akiboi","email":"iris@akiboi.net"},"directories":{},"maintainers":[{"name":"akiboi","email":"iris@akiboi.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/notion-sync-astro_0.0.2_1710928947443_0.5460006538103297"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.0.3":{"name":"@akiboi/notion-sync-astro","version":"0.0.3","description":"This package integrates Notion with Astro. It automatically syncs articles from Notion to Astro-compatible folders, converting them to MDX format and downloading any referenced images to a local directory.","main":"index.js","types":"lib/index.d.ts","scripts":{"build":"tsc","prepare":"npm run build","test":"echo \"Error: no test specified\" && exit 1"},"keywords":[],"author":{"name":"akibo.I"},"license":"MIT","devDependencies":{"@types/node":"^20.11.30","ts-node":"^10.9.2","typescript":"^5.4.2"},"dependencies":{"@notionhq/client":"^2.2.14","axios":"^1.6.8"},"_id":"@akiboi/notion-sync-astro@0.0.3","gitHead":"5cccc43b14830be4921d69fe5d5f245aa820f57d","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-J4FPLOORlsBJotOwBilfkr/bJgasQ63qzWD2/Af0NgBHib7kc5mm1u/pb4COAzWOiPzoxj3Rau3UMSxNwHaFVg==","shasum":"b69cc364cdab7580cc91d8c478cc7bfa9b8c4658","tarball":"https://registry.npmjs.org/@akiboi/notion-sync-astro/-/notion-sync-astro-0.0.3.tgz","fileCount":8,"unpackedSize":25086,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBrt1yoGVbpNBeFDLSYFd0NNnxHUrpMgTssSKiGm1ImtAiEAuY0NeD++W9TVdUMHwCTDIU4eYx7Ckd7ZGKS/rhys3WM="}]},"_npmUser":{"name":"akiboi","email":"iris@akiboi.net"},"directories":{},"maintainers":[{"name":"akiboi","email":"iris@akiboi.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/notion-sync-astro_0.0.3_1710934635421_0.6670331197954515"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.0.4":{"name":"@akiboi/notion-sync-astro","version":"0.0.4","description":"This package integrates Notion with Astro. It automatically syncs articles from Notion to Astro-compatible folders, converting them to MDX format and downloading any referenced images to a local directory.","main":"index.js","types":"lib/index.d.ts","scripts":{"build":"tsc","prepare":"npm run build","test":"echo \"Error: no test specified\" && exit 1"},"keywords":[],"author":{"name":"akibo.I"},"license":"MIT","devDependencies":{"@types/node":"^20.11.30","ts-node":"^10.9.2","typescript":"^5.4.2"},"dependencies":{"@notionhq/client":"^2.2.14","axios":"^1.6.8"},"_id":"@akiboi/notion-sync-astro@0.0.4","gitHead":"5cccc43b14830be4921d69fe5d5f245aa820f57d","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-DdnEbqiP2hsw6VhNvhnO/M7IZGvvhz//QbJvLtKh5FSMbsup20/nGhuvXa1GFQYo2jR6B7nXJ3DdYf5ySpKEBA==","shasum":"335501a7ad319c912eb3ab69e3711db075029c52","tarball":"https://registry.npmjs.org/@akiboi/notion-sync-astro/-/notion-sync-astro-0.0.4.tgz","fileCount":18,"unpackedSize":45421,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDJrOVJb0aJPiY1lnJmsf4skzoJQI22e6hTf7RYdS5/xwIgLl91BIS+g12J8jUKRM2bOXpt4H+1CdndvMtD4D/kZQ4="}]},"_npmUser":{"name":"akiboi","email":"iris@akiboi.net"},"directories":{},"maintainers":[{"name":"akiboi","email":"iris@akiboi.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/notion-sync-astro_0.0.4_1710935538408_0.5784913957680278"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.0.5":{"name":"@akiboi/notion-sync-astro","version":"0.0.5","description":"This package integrates Notion with Astro. It automatically syncs articles from Notion to Astro-compatible folders, converting them to MDX format and downloading any referenced images to a local directory.","main":"index.js","types":"lib/index.d.ts","scripts":{"build":"tsc","prepare":"npm run build","test":"echo \"Error: no test specified\" && exit 1"},"keywords":[],"author":{"name":"akibo.I"},"license":"MIT","devDependencies":{"@types/node":"^20.11.30","ts-node":"^10.9.2","typescript":"^5.4.2"},"dependencies":{"@notionhq/client":"^2.2.14","axios":"^1.6.8"},"_id":"@akiboi/notion-sync-astro@0.0.5","gitHead":"5cccc43b14830be4921d69fe5d5f245aa820f57d","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-TvwLGjKW7fJl836YO5/OnCDhbiDCWFIxMn0PW1/mKrubIcZJC05HdBBBVO+PInkNB/NGp89imNfzzcUni7Wm0A==","shasum":"662e5ebf303b2301146e15ba616045f0e36f90b5","tarball":"https://registry.npmjs.org/@akiboi/notion-sync-astro/-/notion-sync-astro-0.0.5.tgz","fileCount":18,"unpackedSize":46209,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD0pT6KFaBkp0PrvSGcq0V2HGtYqR0g2h+6YFUGvFxrJAIhAOJIr8Q5VaTFxxcj/CvAV1JrgexUkIIS8Lq/Sou4HuVs"}]},"_npmUser":{"name":"akiboi","email":"iris@akiboi.net"},"directories":{},"maintainers":[{"name":"akiboi","email":"iris@akiboi.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/notion-sync-astro_0.0.5_1710936338030_0.5281980508677278"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.0.6":{"name":"@akiboi/notion-sync-astro","version":"0.0.6","description":"This package integrates Notion with Astro. It automatically syncs articles from Notion to Astro-compatible folders, converting them to MDX format and downloading any referenced images to a local directory.","main":"lib/index.js","types":"lib/index.d.ts","scripts":{"build":"tsc","prepare":"npm run build","test":"echo \"Error: no test specified\" && exit 1"},"keywords":[],"author":{"name":"akibo.I"},"license":"MIT","devDependencies":{"@types/node":"^20.11.30","ts-node":"^10.9.2","typescript":"^5.4.2"},"dependencies":{"@notionhq/client":"^2.2.14","axios":"^1.6.8"},"_id":"@akiboi/notion-sync-astro@0.0.6","gitHead":"5cccc43b14830be4921d69fe5d5f245aa820f57d","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-yQYUGsk6aBxK78wUPHdB3kNKtsTUvZgFMT6YtTctllBJWbP/mtu2OtTPgVED5JsB7NsE4J8NoIFllXYmFdZhpA==","shasum":"168f2dc2fe4e4342cea60da00281066377c02235","tarball":"https://registry.npmjs.org/@akiboi/notion-sync-astro/-/notion-sync-astro-0.0.6.tgz","fileCount":18,"unpackedSize":46213,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH+J4g79tD3QMvFOEWmC7jKJ8UznzMexQwP2MQae+M++AiAt/Uxp3E7gJBm+ccxCjxOGQzzwULFiQAVXgR7r3F4VxQ=="}]},"_npmUser":{"name":"akiboi","email":"iris@akiboi.net"},"directories":{},"maintainers":[{"name":"akiboi","email":"iris@akiboi.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/notion-sync-astro_0.0.6_1710938711388_0.585773681557068"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.0.7":{"name":"@akiboi/notion-sync-astro","version":"0.0.7","description":"This package integrates Notion with Astro. It automatically syncs articles from Notion to Astro-compatible folders, converting them to MDX format and downloading any referenced images to a local directory.","main":"lib/index.js","types":"lib/index.d.ts","scripts":{"build":"tsc","prepare":"npm run build","test":"echo \"Error: no test specified\" && exit 1"},"keywords":[],"author":{"name":"akibo.I"},"license":"MIT","devDependencies":{"@types/node":"^20.11.30","ts-node":"^10.9.2","typescript":"^5.4.2"},"dependencies":{"@notionhq/client":"^2.2.14","axios":"^1.6.8"},"_id":"@akiboi/notion-sync-astro@0.0.7","gitHead":"c87e144d660cc155e2e0039896475219b848b6b3","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-umEutq38lxCJ+oNAn6NvzRjY5khHk50SWKmDmuS6PVKI8sAQ0iUbVFDq8iyb7hTsUp8h1rIWI9vvV0XMcLX9uw==","shasum":"6498a8dd78a9b810bae7fc03305db3dab17292ed","tarball":"https://registry.npmjs.org/@akiboi/notion-sync-astro/-/notion-sync-astro-0.0.7.tgz","fileCount":18,"unpackedSize":48515,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAbQIkHCR1Hq/yX2I90/Wn9yAnEC9PkxjMWgPS1Pq4NZAiEAi08hpxtBay7ZeiF+Gj+AMS/qfILLedktGQQoiQ2ZR/Y="}]},"_npmUser":{"name":"akiboi","email":"iris@akiboi.net"},"directories":{},"maintainers":[{"name":"akiboi","email":"iris@akiboi.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/notion-sync-astro_0.0.7_1710945755631_0.6263472982175893"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.0.8":{"name":"@akiboi/notion-sync-astro","version":"0.0.8","description":"This package integrates Notion with Astro. It automatically syncs articles from Notion to Astro-compatible folders, converting them to MDX format and downloading any referenced images to a local directory.","main":"lib/index.js","types":"lib/index.d.ts","type":"module","scripts":{"build":"tsc","prepare":"npm run build","test":"echo \"Error: no test specified\" && exit 1"},"keywords":[],"author":{"name":"akibo.I"},"license":"MIT","devDependencies":{"@types/node":"^20.11.30","ts-node":"^10.9.2","typescript":"^5.4.2"},"dependencies":{"@notionhq/client":"^2.2.14","axios":"^1.6.8","pino":"^8.19.0","pino-pretty":"^11.0.0"},"_id":"@akiboi/notion-sync-astro@0.0.8","gitHead":"c87e144d660cc155e2e0039896475219b848b6b3","_nodeVersion":"21.7.1","_npmVersion":"10.5.0","dist":{"integrity":"sha512-1z0z0Xgf1ZmZ7qLL4JYPFs5vMxI23ZR7NE9tHIlfzwtWu4qPy/wKkWghr86w2ywNTAoJ0Kvkc/LuassVh3HwAA==","shasum":"692eb4a76d6245f84f5264c641a0718f25ecd6cf","tarball":"https://registry.npmjs.org/@akiboi/notion-sync-astro/-/notion-sync-astro-0.0.8.tgz","fileCount":21,"unpackedSize":32730,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBHgiXWzwkC1XErTeKb7bXkDdry+fKAzZQ11Lz/9UuvzAiB9FP2z4WIvE7XHH9ijwzKFQ4J65vCLMiG3Kwgt/7AdCQ=="}]},"_npmUser":{"name":"akiboi","email":"iris@akiboi.net"},"directories":{},"maintainers":[{"name":"akiboi","email":"iris@akiboi.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/notion-sync-astro_0.0.8_1711291369201_0.7592762894350407"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."}},"time":{"created":"2024-03-20T10:02:27.302Z","0.0.2":"2024-03-20T10:02:27.620Z","modified":"2024-03-25T13:38:38.360Z","0.0.3":"2024-03-20T11:37:15.609Z","0.0.4":"2024-03-20T11:52:18.568Z","0.0.5":"2024-03-20T12:05:38.179Z","0.0.6":"2024-03-20T12:45:11.559Z","0.0.7":"2024-03-20T14:42:35.786Z","0.0.8":"2024-03-24T14:42:49.359Z"},"maintainers":[{"name":"akiboi","email":"iris@akiboi.net"}],"description":"This package integrates Notion with Astro. It automatically syncs articles from Notion to Astro-compatible folders, converting them to MDX format and downloading any referenced images to a local directory.","keywords":[],"author":{"name":"akibo.I"},"license":"MIT","readme":"<h1 align=\"center\">Welcome to @akiboi/notion-sync-astro 👋</h1>\n<p>\n  <img alt=\"Version\" src=\"https://img.shields.io/badge/version-0.0.7-blue.svg?cacheSeconds=2592000\" />\n  <a href=\"#\" target=\"_blank\">\n    <img alt=\"License: MIT\" src=\"https://img.shields.io/badge/License-MIT-yellow.svg\" />\n  </a>\n</p>\n\n## Notion to Astro Sync: Automate Your Blog Workflow\n\n**Overview**\n\nThis package seamlessly synchronizes articles from Notion to your Astro blog. It converts articles to MDX format and downloads referenced images locally.\n\n**Key Features:**\n\n- Automatic synchronization from Notion database\n- Article conversion to MDX format\n- Local image download for articles\n- Draft and publish workflow support\n- Extensive configuration options\n\n**Getting Started:**\n\n1. **Prepare Notion Database:**\n\nCreate a database with the following columns:\n\n- ID: Unique key (auto-generated)\n- Title: Article title\n- Hero Image: Main image for the article\n- Menu: Article category\n- Slug: Article URL\n- Description: Article summary\n- Tags: Article tags\n- Author: Article author\n- Status: Draft, Scheduled, Published\n- Published Date: Article publish date (auto-set)\n- Updated Date: Article update date (auto-set)\n- Created By: Article creator (auto-set)\n- Created Date: Article creation date (auto-set)\n\n2. **Package Installation:**\n\n```bash\nnpm install @akiboi/notion-sync-astro\n```\n\n3. **Configuration:**\n\nConfigure the following in `index.ts`:\n\n- Notion API key\n- Database ID\n- Article output directory\n- Image output directory\n- Other options\n\n4. **Run:**\n\n```bash\n   export NOTION_API_KEY=\"Notion API Key\"\n   export NOTION_DB_ID=\"Notion Database ID\"\n```\n\nexample.ts\n\n```javascript\nimport { NotionSyncAstro } from '@akiboi/notion-sync-astro';\n\nconst nsa = new NotionSyncAstro();\nnsa.start();\n```\n\n5. **Using in Astro:**\n\nArticles are saved in MDX format. Set the title, publish date, update date, hero image, description, tags, and other attributes in the frontmatter.\n\n```markdown\n---\ntitle: 'Astro Blog Creation: From Setup to Article Display'\npublishedDate: 2024-03-17\nupdatedDate: 2024-03-20\nheroImage: astroBlog01.jpg\ndescription: 'This article provides a detailed explanation of the entire process of creating a blog with Astro, from setup to article display. If you have experience with Nuxt or Gatsby, the transition should be relatively smooth.'\nname: akibo.I\ntags: [software, astro]\n---\n```\n\n**Limitations:**\n\n- As a beta release, unexpected termination or errors in the generated articles may occur.\n- Only some list formatting is supported for Notion rich_text.\n- Large data processing may not be supported.\n- Error handling for Notion API is omitted.\n\n**Future Plans:**\n\n- Automatic article update triggered by Notion status change\n- Draft article preview functionality\n- Automatic deployment to production environment\n\n**Developer:**\n\nakibo.I\n\n🏠 [Homepage](https://www.akiboi.net)\n\n**Additional Notes:**\n\nThis package is a useful tool for users who want to streamline their blog management workflow by connecting Notion and Astro. We encourage you to give it a try!\n\n**Change Log:**\n\n- 2023-11-14: Initial release\n- 2023-03-24: bug fix\n","readmeFilename":"README.md"}