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

@notionpresso/react

v0.0.6

Published

This is wellmade React components for Notion Opensource

Downloads

382

Readme

React-Notion-Custom: Create Your Custom Blog with Notion

한국어 버전(Korean Version)

🚀 Build Your Own Website with Notion + React!

With NotionPresso, you can combine Notion's powerful content management capabilities with React's flexible UI to create a fully customizable website or blog. Stop wasting time on complex CMS or database setups. Manage your content in Notion and create a stunning website with NotionPresso!

This project consists of two core tools:

  1. @notionpresso/cli: Extracts content from Notion pages and converts it into JSON files.
  2. @notionpresso/react: Renders the extracted Notion content as React components.

🌟 Key Features

  • Uses Notion's Official API: Always supports stable and latest features.
  • Perfect Customization: Modify and style all components as you wish.
  • High-Quality Notion Components: Provides components that look exactly like real Notion.
  • Optimized Performance: Quickly loads and renders even large Notion pages.
  • Easy Content Management: Manage content directly in Notion and reflect it on your website in real-time.

🚀 Getting Started: Create Your Own Notion Blog

1. Prepare Your Notion Page

  1. Create a new page in Notion and write your content.
  2. Set the page to public and copy the share link.

2. Get Your Notion Page ID

  1. Go to your content page in Notion.
  2. Click the 'Share' button in the top right corner and enable the 'Share to web' option to make the page public.
  3. Copy the link. The URL will be in this format:
    https://www.notion.so/your-page-title-1234567890abcdef12345678
  4. The last part of the URL (e.g., 1234567890abcdef12345678) is your page ID.

3. Get Your Notion Integration Token

  1. Go to the Notion developer portal.
  2. Click 'New integration' to create a new integration.
  3. Set the integration name and permissions, then click 'Submit'.
  4. Copy and save the Internal Integration Token that's generated.

4. Extract Content with @notionpresso/cli

npx npresso --page-id YOUR_PAGE_ID --token YOUR_INTEGRATION_TOKEN

5. Set Up React Project

npm create vite@latest my-notion-blog -- --template react-ts
cd my-notion-blog
npm install @notionpresso/react

6. Render Page with @notionpresso/react

import { Notion } from "@notionpresso/react";
import notionData from "./notion-data.json";

function HomePage() {
  return (
    <Notion>
      <Notion.Cover src={notionData.cover} />
      <Notion.Body>
        <Notion.Title title={notionData.title} />
        <Notion.Blocks blocks={notionData.blocks} />
      </Notion.Body>
    </Notion>
  );
}

export default HomePage;

7. Deploy

Deploy your Next.js app to Vercel or Netlify and share your Notion blog with the world!

📚 Detailed Usage

For more detailed usage instructions and advanced customization options, please refer to [Incomplete].

🛠 Installation

npm install @notionpresso/react @notionpresso/cli

🗺 Roadmap

  1. Expand support for various Notion block types
  2. Performance optimization including code splitting and data caching
  3. Integrate SEO optimization tools
  4. Enhance multilingual support

For detailed development plans, please refer to CONTRIBUTING.md.

🤝 Contributing

React-Notion-Custom welcomes your contributions! Whether it's bug reports, feature suggestions, or code contributions, please feel free to participate in any form. For more details, please check CONTRIBUTING.md.

📄 License

This project is distributed under the MIT License. For more details, please refer to the LICENSE file.

📮 Contact

If you have any questions or feedback, please create a GitHub issue or contact us via email.


Create a fantastic website with your Notion content using React-Notion-Custom! 🎉