Skip to main content

2 posts tagged with "javascript"

View All Tags

Auto-Generate OpenAPI Docs From Your Code

· 9 min read
Jones
Co-Founder and Architect @ Codehooks

Your API is only as useful as its documentation. Without clear docs, developers waste hours reverse-engineering endpoints, partners struggle to integrate, and AI agents can't understand your API at all.

But writing OpenAPI specs by hand? That's tedious, error-prone, and constantly out of sync with your actual code.

What if your documentation wrote itself?

With the latest codehooks-js update, it does. Define your schemas once, and Codehooks generates complete OpenAPI 3.0 documentation—served as an interactive Swagger UI at /docs.

Building Webhook-Enabled LLM Workflows in JavaScript with Codehooks.io

· 21 min read
Martin
Co-Founder and Maker @ Codehooks

Most AI projects don't need a fleet of orchestration tools to run a few prompt chains. The real work is state management, retries, scheduling, and simple persistence—the operational glue between LLM API calls.

This post shows you how to build a production-ready text summarization workflow using Codehooks.io, the Workflow API, and OpenAI. You'll learn:

  • OpenAI API integration patterns: Error handling, retries, rate limiting, and cost optimization
  • Workflow state management: Building reliable multi-step processes with caching and persistence
  • Webhook triggers: Event-driven workflows that respond to GitHub issues (and other external services)
  • Programmatic access: How to trigger and manage workflows via REST API, CLI, and webhooks

By the end, you'll have a working summarizer that caches results, stores them in a NoSQL database, and can be triggered via REST API or GitHub webhooks—all deployed with a single command.

Here's the workflow we'll build: