npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@varubogu/astro-notion-component-preview

v0.1.5

Published

Astro and Notion work seamlessly together to create a website.

Downloads

45

Readme

English | 日本語

astro-notion-blog

⚠️ Note: This project is just starting and the documentation is not complete.

GitHub stars GitHub license GitHub sponsors

To make the astro-notion-blog more user-friendly, we are developing it with the following benefits in mind.

Advantages Compared to the Original

  • Not limited to just blogs
  • Designed to be customizable
  • Create a single Astro page directly from a Notion page
  • You can mix Notion pages and pages created with Astro
  • Embed Notion pages or blocks into a section of a page for more flexible design
  • Notion has headings 1 to 3 but lacks headings 4 and beyond, so by creating subpages, you can simulate headings 4 and beyond
  • Override the default features of astro-notion-blog
  • You can use features not available in the original version (comment function will be added)
  • Since the task of incorporating pull requests from the original repository is done within this repository, there is no worry about conflicts
  • Easy to use by just installing via npm, allowing it to be integrated into existing Astro projects

Of course, it also retains the original benefits:

  • :rocket: Blazing fast page rendering
  • :pencil: Write your blog using Notion
  • :hammer_and_wrench: Freely customize the appearance of your blog
  • :white_check_mark: Uses the official Notion API, ensuring reliability

For beginners in programming or those who have not worked with Astro or Notion, we recommend first exploring the original astro-notion-blog. Once you feel like customizing it, you can then start using this project.

:camera_flash: Screenshots

PC

Smartphone

:globe_with_meridians: Demo

https://astro-notion-blog.pages.dev

:motor_scooter: Quick Start

Requirements

Steps

  1. If you enjoy using this repo, don't forget to give it a star! :wink:

    • This is very motivating!
  2. Simply duplicate the blog template into your Notion workspace.

  3. Once you've duplicated the page (database), customize it to your liking by changing the icon, title, and description.

  4. For future reference, identify the DATABASE_ID by noting the portion of the duplicated page (database) URL that appears as https://notion.so/your-account/?v=xxxx.

  5. Create an integration and note "Internal Integration Token" as NOTION_API_SECRET

  6. To integrate your application with Notion, share a database with your integration.

  7. To make a copy of this repository in your own account, fork it by clicking on the 'Fork' button in the top-right corner of the repository page.

  8. Go to Cloudflare Pages and sign in

  9. Create new project with "Connect to Git" with your forked repository <your-account>/astro-notion-blog, then click "Begin setup"

  10. In "Build settings" section,

    1. Select "Astro" as "Framework preset"
    2. Open "Environment Variables (advanced)" and set NODE_VERSION, NOTION_API_SECRET and DATABASE_ID
  11. After clicking the 'Save and Deploy' button, your Notion Blog will be published once the deployment process is complete.

Please note that the astro-notion-blog requires manual deployment every time you publish a new post or make updates. You can deploy manually from the Cloudflare Pages dashboard or set up a scheduled deploy using CI tools such as GitHub Actions.

:hammer_and_pick: How to customize

Additional requirements

  • Node.js v18.14.1 or higher

Steps

  1. To set your secrets as environment variables, run the following commands in your terminal:

    export NOTION_API_SECRET=<YOUR_NOTION_API_SECRET>
    export DATABASE_ID=<YOUR_DATABASE_ID>
  2. Install dependencies and start local server

    npm install
    npm run dev
  3. Open http://localhost:4321 in your browser

  4. Press Ctrl+C in the terminal to stop

For more information

See wiki.

:lady_beetle: Bug reports & feature requests

To report an issue, please create a new Issue. You can use either English or Japanese to describe the issue. :wink:

About the original astro-notion-blog

:two_hearts: Sponsorship

If you like astro-notion-blog, please consider sponsoring it so we can continue developing the software.

GitHub sponsors