hex-performance-tuning

Solid

Optimize Hex API performance with caching, batching, and connection pooling. Use when experiencing slow API responses, implementing caching strategies, or optimizing request throughput for Hex integrations. Trigger with phrases like "hex performance", "optimize hex", "hex latency", "hex caching", "hex slow", "hex batch".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 97/100

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

Skill Content

# Hex Performance Tuning ## Latency Benchmarks | Operation | Typical Duration | |-----------|-----------------| | ListProjects | 200-500ms | | RunProject (trigger) | 500ms-2s | | Project execution | 10s-30min (depends on queries) | | GetRunStatus (poll) | 100-300ms | ## Instructions ### Cache Project Lists ```typescript import { LRUCache } from 'lru-cache'; const projectCache = new LRUCache<string, any>({ max: 50, ttl: 300000 }); // 5 min async function getCachedProjects(client: HexClient) { const cached = projectCache.get('projects'); if (cached) return cached; const projects = await client.listProjects(); projectCache.set('projects', projects); return projects; } ``` ### Parallel Independent Runs ```typescript // Run independent projects in parallel (respecting rate limits) async function parallelRuns(client: HexClient, configs: Array<{ id: string; params: any }>) { return Promise.allSettled( configs.map(c => runWithRetry(client, c.id, c.params)) ); } ``` ### Optimize Poll Interval ```typescript // Adaptive polling: start fast, slow down async function adaptivePoll(client: HexClient, projectId: string, runId: string) { let interval = 2000; // Start at 2s while (true) { const status = await client.getRunStatus(projectId, runId); if (['COMPLETED', 'ERRORED', 'KILLED'].includes(status.status)) return status; await new Promise(r => setTimeout(r, interval)); interval = Math.min(interval * 1.5, 30000); // Max 30s } } ``` ## Resou...

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

hex-cost-tuning

Optimize Hex costs through tier selection, sampling, and usage monitoring. Use when analyzing Hex billing, reducing API costs, or implementing usage monitoring and budget alerts. Trigger with phrases like "hex cost", "hex billing", "reduce hex costs", "hex pricing", "hex expensive", "hex budget".

2,266 Updated today
jeremylongshore
AI & Automation Featured

hex-hello-world

Create a minimal working Hex example. Use when starting a new Hex integration, testing your setup, or learning basic Hex API patterns. Trigger with phrases like "hex hello world", "hex example", "hex quick start", "simple hex code".

2,266 Updated today
jeremylongshore
AI & Automation Featured

hex-rate-limits

Implement Hex rate limiting, backoff, and idempotency patterns. Use when handling rate limit errors, implementing retry logic, or optimizing API request throughput for Hex. Trigger with phrases like "hex rate limit", "hex throttling", "hex 429", "hex retry", "hex backoff".

2,266 Updated today
jeremylongshore
AI & Automation Solid

hex-sdk-patterns

Apply production-ready Hex SDK patterns for TypeScript and Python. Use when implementing Hex integrations, refactoring SDK usage, or establishing team coding standards for Hex. Trigger with phrases like "hex SDK patterns", "hex best practices", "hex code patterns", "idiomatic hex".

2,266 Updated today
jeremylongshore
AI & Automation Solid

hex-reference-architecture

Implement Hex reference architecture with best-practice project layout. Use when designing new Hex integrations, reviewing project structure, or establishing architecture standards for Hex applications. Trigger with phrases like "hex architecture", "hex best practices", "hex project structure", "how to organize hex", "hex layout".

2,266 Updated today
jeremylongshore