https://github.com/narumincho/notion
Utilizes type expressions better than the official Notion SDK (only some features are implemented)
https://github.com/narumincho/notion
Last synced: over 1 year ago
JSON representation
Utilizes type expressions better than the official Notion SDK (only some features are implemented)
- Host: GitHub
- URL: https://github.com/narumincho/notion
- Owner: narumincho
- Created: 2024-04-27T12:16:38.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-09T01:03:45.000Z (almost 2 years ago)
- Last Synced: 2025-01-23T10:30:45.371Z (over 1 year ago)
- Language: TypeScript
- Homepage: https://jsr.io/@narumincho/notion
- Size: 258 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @narumincho/notion
https://github.com/makenotion/notion-sdk-js より自分に必要な機能に絞った Notion API を呼ぶためのライブラリ
JSR: https://jsr.io/@narumincho/notion
Deno を使ってます
## 目指していきたい目標
- 公式SDK では なぜか Parial が返ってくる仕様になっており, いちいち分岐する必要があるし, その仕様が分かりずらい
- 公式SDK では ページ作成のオブジェクトが深くなり, 型エラーが発生したときにどこを直せばよくなるか分かり辛い
- 少ない依存ライブラリ (現状 0)
- Tree Shaking ができるように
- ページング対応がすぐできるように AsyncIterator とか対応済みのものが欲しい
- ページのタイトル文字列を簡単に取り出せるように
- 公式SDKはコード生成しているのか, ドキュメンテーションコメントがないのが不満