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

notion-page-repeater

v1.1.0

Published

Notion Automatically Repeat Pages

Downloads

3

Readme

notion-page-repeater

logo

Documents

What you can do🙆‍♂️

  • You can copy the properties of a template page.
    • You can set up participants, tags, and other settings automatically.
  • You can create pages on a daily or weekly basis.
    • You can create pages based on the frequency of your meetings.

What you can't do🙅‍♂️

  • The contents of the template page cannot be copied.
    • Only properties can be copied.
    • Select a template page from the pages created each time and pour in the template.
  • Cannot skip holidays.
    • We'll deal with it soon.
  • We look forward to your contributions😉

How to use

Notion side settings

  1. Duplicate the Settings page.
    1. https://tosite.notion.site/d9e882ac654a444ba550be32f8cdfd29
  2. Issue a Notion API token.
    1. https://www.notion.so/my-integrations
  3. Add a Datetime column to the properties of the page you want to auto-generate.
  4. Create a template page for the page you want to auto-generate.
  5. Put the ID of the template page in the column of the Settings page.
  6. Set permissions from the API for the Settings page and the parent page you want to auto-generate.

GitHub side settings

  1. Put Notion API key in NOTION_TOKEN of GitHub secret.
  2. Put the ID of the Settings page in the SETTING_DB_ID of the GitHub Actions yml.
  3. put the Slack Webhook URL in the SLACK_WEBHOOK_URL of the GitHub secret.

GitHub Actions side settings

  1. Configure GitHub Actions.
name: Notion Page Repeater Demo
on:
  push:
    branches:
      - main
  schedule:
    - cron: '00 * * * *'

jobs:
  sync:
    name: Notion Page Repeater
    runs-on: ubuntu-latest
    container: node:latest
    env:
      TZ: Asia/Tokyo
      LANG: ja_JP.UTF-8
    steps:
      - name: Sync
        uses: tosite/[email protected]
        env:
          NOTION_TOKEN: ${{ secrets.NOTION_TOKEN }}
          SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
          SETTING_DB_ID: ${{ secrets.SETTING_DB_ID }}

Pages information

Settings page

A page to manage the settings for automatic generation.

Columns

|column name|type|required|description|value| | --- | --- | --- | --- | --- | | title | Title | * | Used for the title of the page | - | | template_id | Text | * | ID of the page duplicator | - | | enable | Checkbox | * | To be processed when checking | - | | interval | Select | * | run interval | daily, weekly | | week | Select | * (interval=weekly) | Day of the week | Sun, Mon, Tue, Wed, Thu, Fri, Sat | | hour | Number | - | Opening time(hour) | - | | minute | Number | - | Opening time(minute) | - | | previous_id | Text | - | Previous page ID (used by the system) | - |

Template pages

A page that holds the properties of automatically generated pages.
The template page ID is held in the configuration page.
The page is automatically generated based on the properties of the template page.
Note that the Datetime column is required.

Columns

|column name|type|required|description|value| | --- | --- | --- | --- | --- | | Datetime | Date | * | Opening time | - |