notion-reference-architecture

Featured

Design and implement a production-ready Notion integration architecture with proper layering, caching, error handling, and testing strategies. Use when designing new Notion integrations, reviewing existing project structure, establishing architecture standards for Notion applications, or migrating from ad-hoc API calls to a layered architecture. Trigger: "notion architecture", "notion project structure", "notion reference architecture", "notion integration design", "notion layered architecture", "notion service pattern".

AI & Automation 2,274 stars 319 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Notion Reference Architecture ## Overview Production-grade architecture for Notion integrations using `@notionhq/client`. This skill defines a four-layer architecture — client singleton, repository pattern, service layer, and caching — that scales from simple scripts to enterprise applications. It covers multi-integration setups (reader + writer tokens), event-driven processing, headless CMS patterns, and comprehensive testing strategies. **Notion API version:** `2022-06-28` | **Rate limit:** 3 requests/second per integration | **Max page size:** 100 ## Prerequisites - Node.js 18+ with TypeScript strict mode enabled - `@notionhq/client` v2.x installed (`npm install @notionhq/client`) - A Notion internal integration created at https://www.notion.so/my-integrations - `NOTION_TOKEN` environment variable set with the integration token - Target databases/pages shared with the integration via "Add connections" ## Instructions ### Step 1: Establish the Client Singleton with Retry and Rate Limiting The client layer wraps `@notionhq/client` in a singleton pattern with built-in retry logic. Notion's SDK handles basic retries, but you need explicit rate limiting and configurable timeouts for production use. ``` my-notion-app/ ├── src/ │ ├── notion/ │ │ ├── client.ts # Singleton + retry + rate limiter │ │ ├── types.ts # Domain types mapped from Notion properties │ │ ├── extractors.ts # Type-safe property extraction helpers │ │ └── e...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

notion-architecture-variants

Different Notion integration architectures: CMS (headless blog), task tracker (project management), knowledge base (wiki), form submission handler, and data pipeline source. Trigger with phrases like "notion cms", "notion headless blog", "notion task tracker", "notion wiki", "notion form handler", "notion data pipeline".

2,274 Updated today
jeremylongshore
AI & Automation Featured

notion-deploy-integration

Deploy Node.js applications that use the Notion API to production on Vercel, Railway, or Fly.io. Use when deploying Notion-powered backends, setting up NOTION_TOKEN in production secrets, configuring serverless singleton patterns, or adding health checks that verify Notion connectivity. Trigger: "deploy notion app", "notion production", "notion vercel deploy", "notion railway", "notion fly.io".

2,274 Updated today
jeremylongshore
AI & Automation Featured

notion-reliability-patterns

Graceful degradation when Notion is down: offline cache, retry with exponential backoff, circuit breaker, health checks, and fallback content. Use when building fault-tolerant Notion integrations for production. Trigger with phrases like "notion reliability", "notion circuit breaker", "notion offline fallback", "notion health check", "notion graceful degradation".

2,274 Updated today
jeremylongshore
AI & Automation Featured

evernote-reference-architecture

Reference architecture for Evernote integrations. Use when designing system architecture, planning integrations, or building scalable Evernote applications. Trigger with phrases like "evernote architecture", "design evernote system", "evernote integration pattern", "evernote scale".

2,274 Updated today
jeremylongshore
AI & Automation Featured

notion-install-auth

Install and configure the Notion API SDK with authentication. Use when setting up a new Notion integration, configuring API tokens, or initializing @notionhq/client in your project. Trigger with phrases like "install notion", "setup notion", "notion auth", "configure notion API", "notion integration setup".

2,274 Updated today
jeremylongshore