NotionX / NotionX/react-notion-x
Alternative to notion-client format?
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 5.4k
- Forks
- 645
- PR merge metrics
- No merged PRs in 30d
Description
Great library. Loving it so far.
My use case: Wanting to render page server side inside of Cloudflare Workers. Rendering is working (thanks to use of flareact.com)
Only piece not working is the notion-client. I can't use that library within Cloudflare Workers due to dependance of 'got' library which doesnt run in Cloudflare.
I noticed you had the fetch() implemented originally but is commented out. I'm wondering if I fork notion-client and use fetch (which does work in CF) instead of got if that would work for me?
Or, I can use the Notion API Worker from SplitBee, but it doesn't look like their format is supported by react-notion-x. Is that correct? Is there a way to convert their recordMap format to what is needed for rendering with x?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names notion-client, got, fetch(), Cloudflare Workers, and SplitBee's recordMap, but no repository file or test. Begin by tracing notion-client's dependency on got and comparing the commented fetch approach with the recordMap format expected by react-notion-x; done would mean a confirmed compatible approach or a clearly documented limitation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nextjs, react, typescript
- Domain
- api, backend, cloud
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100