notion-reliability-patterns

Featured

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".

AI & Automation 2,266 stars 315 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 Reliability Patterns ## Overview Production-grade reliability patterns for Notion integrations. Covers graceful degradation with offline cache when Notion is unavailable, retry with exponential backoff for transient failures, circuit breaker to prevent cascade failures, health check endpoints for monitoring, and fallback content serving when the API is unreachable. All patterns use `Client` from `@notionhq/client` and handle Notion-specific error codes. ## Prerequisites - `@notionhq/client` v2.x installed (`npm install @notionhq/client`) - `lru-cache` for in-memory caching (`npm install lru-cache`) - Python: `notion-client` installed (`pip install notion-client`) - `NOTION_TOKEN` environment variable set - Understanding of circuit breaker and retry patterns ## Instructions ### Step 1: Retry with Exponential Backoff The Notion SDK has built-in retries, but you can customize the behavior for better control over transient errors (429, 500, 502, 503). ```typescript import { Client, isNotionClientError, APIErrorCode } from '@notionhq/client'; // Classify errors as transient (retryable) vs permanent function isTransientError(error: unknown): boolean { if (isNotionClientError(error)) { return ( error.code === APIErrorCode.RateLimited || error.code === APIErrorCode.InternalServerError || error.code === APIErrorCode.ServiceUnavailable || error.code === 'notionhq_client_request_timeout' ); } // Network errors are transient if (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-rate-limits

Manage Notion API rate limits with exponential backoff, queue-based throttling, and batch optimization. Use when hitting 429 errors, implementing retry logic, or optimizing API request throughput for Notion integrations. Trigger with "notion rate limit", "notion 429", "notion retry", "notion backoff", "notion throttling", "notion too many requests", "notion queue".

2,266 Updated today
jeremylongshore
AI & Automation Featured

notion-reference-architecture

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".

2,266 Updated today
jeremylongshore
AI & Automation Featured

notion-sdk-patterns

Apply production-ready @notionhq/client SDK patterns for TypeScript and Python. Use when implementing Notion integrations, building database queries with filters and sorts, handling pagination, constructing rich text blocks, or establishing team coding standards for Notion API usage. Trigger with "notion SDK patterns", "notion best practices", "notion code patterns", "idiomatic notion", "notion typescript", "notion python SDK".

2,266 Updated today
jeremylongshore
AI & Automation Featured

notion-performance-tuning

Optimize Notion API performance with caching, batching, parallel requests, and incremental sync. Use when experiencing slow API responses, implementing caching strategies, reducing API call volume, or tuning request patterns for Notion integrations. Trigger with phrases like "notion performance", "optimize notion api", "notion latency", "notion caching", "notion slow", "notion batch requests", "notion incremental sync", "notion reduce api calls".

2,266 Updated today
jeremylongshore
AI & Automation Featured

onenote-sdk-patterns

Production SDK patterns for OneNote Graph API: retry logic, batch requests, and safe file uploads. Use when building production OneNote integrations that need rate limit handling and reliable uploads. Trigger with "onenote sdk patterns", "onenote retry logic", "onenote batch requests".

2,266 Updated today
jeremylongshore