
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
notion-compat
Advanced tools
Compatibility layer between the official Notion API and unofficial private API.
A compatibility layer between the official Notion API and the unofficial Notion API
react-notion-x
notion-client
and the unofficial notion APIimport { Client } from '@notionhq/client'
import { NotionCompatAPI } from 'notion-compat'
const notion = new NotionCompatAPI(
new Client({ auth: process.env.NOTION_TOKEN })
)
const recordMap = await notion.getPage(pageId)
The resulting recordMap
is compatible with notion's unofficial API and react-notion-x.
You can preview react-notion-x
using the official client and compatibility layer here: https://react-notion-x-official-api-demo.transitivebullsh.it/
Currently, ~20 blocks have full compatibility and 8 have partial compatibility (sometimes in subtle ways) due Notion's official API not returning enough info for us to faithfully render them in all cases. See the block-by-block compatibility notes below for more info.
I recommend checking out the notion-compat demo side-by-side with the normal react-notion-x demo (which uses the unofficial Notion API via notion-client
) and the equivalent public notion page.
Note that using the official API with notion-compat
is significantly slower than using the unofficial API via notion-client
because of reasons.
The main feature missing from notion-compat
right now is collection (database) support. PRs welcome 😃
format
for proper sizing and layout
caption
alias
blocks fail for links pointing to other workspaces
toggleable
is missing
text
block)header
block)sub_header
block)sub_sub_header
block)bulleted_list
block)numbered_list
block)transclusion_container
and transclusion_reference
)page
block)
page_cover_position
alias
block)
collection_view
and collection_view_page
blocks)MIT © Travis Fischer
Support my OSS work by following me on twitter
FAQs
Compatibility layer between the official Notion API and unofficial private API.
The npm package notion-compat receives a total of 1,000 weekly downloads. As such, notion-compat popularity was classified as popular.
We found that notion-compat demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.