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

next-notion-blog-builder

v1.0.9

Published

CLI tool for building a NextJS 13 blog with Notion as a CMS

Downloads

27

Readme

NPM version NPM monthly downloads NPM total downloads

Want to start posting blog content and stand out from Medium and DEV? Use this CLI to quickly generate yourself a NextJS blog which uses Notion as a CMS to easily store and edit all your articles!

Example Website: check out my site to see what you can do!

Example Notion CMS

View on NPMJS

🌱 Getting started

⚙️ Generate the project with the CLI

  1. Run: npx next-notion-blog-builder and follow the CLI.
  2. cd into your <project-name> directory
  3. Run: yarn dev to start the development server on http://localhost:3000
  4. Update the page.tsx files in the /app directory to fill in the blanks!

💿 Create Notion databases for the CMS

See the Notion template page for the database you will need:

  1. Copy this page into your personal Notion space.
  2. Follow the steps in the NotionAPI Docs to create an integration:
    • give the integration read-only permissions;
    • share each database you need with that integration (Add connections);
    • add the Notion integration secret to your .env.local file.
  3. Copy the database ids and add them into your .env.local file.
  4. Open notion in the web and open the network tab when signed in. Check request cookie:
    • copy token_v2 into your .env.local file;
    • copy notion_user_id into your .env.local file.

🚀 Deploy to Production

I used Vercel to deploy my blog automatically every time I push to the main GitHub branch. See the setup docs.

✨ Features

  • NextJS 13 Server Components and Tailwind
  • Mobile responsiveness
  • 404/500 error pages
  • Loading skeletons
  • Dark mode!

🏡 Home page

❓ About me page (optional)

📝 Blog (optional)

A blog which pulls articles from your Notion database and renders the article content. Includes:

  • Search bar for articles by title/ tags
  • Renders embedded images & video
  • Renders code blocks & inline code
  • Renders Notion components (e.g. callouts)
  • Shows the date and article tags

📔 Dev journal (optional)

A development journal to keep track of daily learnings. Includes:

  • Search bar for journal entries by title/ tags
  • Renders embedded images & video
  • Renders code blocks & inline code
  • Renders Notion components (e.g. callouts)
  • Shows the date and article tags

🎓 Resources (optional)

A searchable, filterable list for recommended resources to track external resources you would recommend to others. Filter by resource type (Book, Article, Channel, Video, Newsletter, Website).

🤖 Technologies (optional)

Show off what technologies/ tools you use.

Acknowledgements

The general UX of this site is inspired by Lee Rob. I liked it because it's a very clear, minimal design which also has some mobile responsiveness (which is a must-have).