
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
This is react components that uses the notion API to display the notion's database and page.
English | 日本語
Rotion is a set of components and tools that utilize the Notion API and React to generate a static website from your Notion databases and pages.
It is designed primarily for use with Next.js (or other React frameworks) and stores images and other files locally, so that you can build a fully static site.
Official site: https://rotion.linyo.ws
npm install rotion
or
yarn add rotion
Create a Notion integration and obtain your API key and database ID.
Use the APIs under src/exporter
to fetch data from Notion and save it as static files.
Example:
import { FetchDatabase, FetchBlocks } from 'rotion'
const db = await FetchDatabase({ database_id: 'YOUR_DATABASE_ID' })
const page = await FetchBlocks({ block_id: 'YOUR_PAGE_ID' })
Use the components under src/ui
to display the fetched data.
Example:
import { Gallery } from 'rotion/ui'
<Gallery db={db} keys={['Name', 'Description']} />
FetchDatabase
– Fetches and caches the database.FetchBlocks
– Fetches and caches page blocks.FetchPage
– Fetches page information.FetchBreadcrumbs
– Fetches breadcrumb information.Gallery
, Table
, List
– Various displays for Notion databases.Page
– Renders a Notion page.Icon
, RichText
, Checkbox
, etc.npm run build
– Build.npm run test
– Run tests.npm run story
– Launch Storybook.MIT
FAQs
This is react components that uses the notion API to display the notion's database and page.
The npm package rotion receives a total of 11 weekly downloads. As such, rotion popularity was classified as not popular.
We found that rotion demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.