Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
notion-compat-dohun
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-dohun receives a total of 2 weekly downloads. As such, notion-compat-dohun popularity was classified as not popular.
We found that notion-compat-dohun demonstrated a not healthy version release cadence and project activity because the last version was released 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.