hex-hello-world

Featured

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

AI & Automation 2,926 stars 433 forks Updated yesterday 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

# Hex Hello World ## Overview List projects, trigger a project run, and poll for results using the Hex API. The core workflow is: trigger a run of a published project, poll for completion, then access the results. ## Prerequisites - Completed `hex-install-auth` setup - At least one published Hex project ## Instructions ### Step 1: List Projects ```typescript // hello-hex.ts import 'dotenv/config'; const TOKEN = process.env.HEX_API_TOKEN!; const BASE = 'https://app.hex.tech/api/v1'; async function listProjects() { const response = await fetch(`${BASE}/projects`, { headers: { 'Authorization': `Bearer ${TOKEN}` }, }); const projects = await response.json(); for (const p of projects) { console.log(`${p.name} (${p.projectId}) — ${p.status}`); } return projects; } ``` ### Step 2: Trigger a Project Run ```typescript async function runProject(projectId: string, inputParams?: Record<string, any>) { const response = await fetch(`${BASE}/project/${projectId}/run`, { method: 'POST', headers: { 'Authorization': `Bearer ${TOKEN}`, 'Content-Type': 'application/json' }, body: JSON.stringify({ inputParams: inputParams || {}, updateCacheResult: true, }), }); const { runId, projectId: pid, runStatusUrl } = await response.json(); console.log(`Run started: ${runId}`); console.log(`Status URL: ${runStatusUrl}`); return { runId, projectId: pid, runStatusUrl }; } ``` ### Step 3: Poll for Run Completion ```typescript async funct...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category