navan-performance-tuning

Featured

Use when optimizing Navan API call patterns for high-volume integrations — caching, batching, connection pooling, and pagination strategies. Trigger with "navan performance tuning" or "navan api optimization" or "navan caching".

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

# Navan Performance Tuning ## Overview Navan's REST API has no bulk endpoints or GraphQL — every data fetch is a separate HTTP request. High-volume integrations syncing thousands of bookings, expenses, or user records quickly become bottlenecked by sequential API calls, redundant fetches, and naive pagination. This skill provides concrete optimization patterns: response caching with data-type-specific TTLs, parallel request execution with concurrency controls, cursor-based pagination handling, and HTTP connection reuse. Each pattern targets the real constraint: minimizing total API calls while staying under rate limits. ## Prerequisites - **Active Navan integration** with OAuth 2.0 credentials (client_credentials grant) - **Node.js 18+** (for native fetch and AbortController) - **Understanding of your data volume** — bookings/day, users, expense reports/month - API base URL: `https://api.navan.com/v1` ## Instructions ### Step 1 — Implement Response Caching with Data-Appropriate TTLs Different Navan data types change at different rates. Cache accordingly: ```typescript interface CacheEntry<T> { data: T; expires_at: number; etag?: string; } // TTLs based on data volatility const CACHE_TTL: Record<string, number> = { 'users': 3600_000, // 1 hour — user profiles rarely change 'policies': 86400_000, // 24 hours — travel policies change infrequently 'bookings': 300_000, // 5 minutes — bookings update frequently 'expenses': 600_000, // 10 minutes —...

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

navan-cost-tuning

Use when optimizing travel spend with Navan's policy engine, analyzing booking patterns for savings, and configuring the Navan Rewards program. Trigger with "navan cost tuning" or "navan travel savings" or "navan spend optimization".

2,266 Updated today
jeremylongshore
Data & Documents Featured

navan-data-handling

Extract and transform Navan booking and transaction data using pagination, filtering, and data pipeline connectors. Use when building data warehouses, analytics dashboards, or debugging data quality issues with Navan data. Trigger with "navan data handling", "navan data extraction", "navan pagination".

2,266 Updated today
jeremylongshore
AI & Automation Featured

navan-rate-limits

Implement adaptive rate-limiting for the Navan REST API with exponential backoff and request queuing. Use when building bulk data operations or encountering 429 errors from Navan. Trigger with "navan rate limits", "navan throttling", "navan 429".

2,266 Updated today
jeremylongshore
AI & Automation Featured

navan-data-sync

Implement incremental sync strategies for Navan BOOKING and TRANSACTION data with ETL pipeline patterns. Use when setting up production data pipelines, debugging sync drift, or adding real-time event processing. Trigger with "navan data sync", "navan incremental sync", "navan ETL pipeline".

2,266 Updated today
jeremylongshore
AI & Automation Featured

navan-upgrade-migration

Use when handling Navan API changes in production — defensive coding patterns, schema validation, deprecation monitoring, and gradual rollout strategies for unversioned APIs. Trigger with "navan upgrade migration" or "navan api change handling".

2,266 Updated today
jeremylongshore