Introducing Forge: the open source pipeline for generating…

blog.cloudflare.com2 saved

Written by AI

TLDR
Cloudflare Forge is an open-source, pluggable pipeline that generates SDKs, CLIs, docs and libraries, with preview builds for every API change.
Best for
API teams that need to generate and preview SDKs, CLIs and documentation across many services.
The tip
Run generation in CI on every API repository and create installable previews before changes merge.
What you need
  • an API repository
  • CI
  • generation targets such as SDKs, CLIs or docs
Start here
  1. Choose one API and one generated surface.
  2. Run Forge in CI for every change.
  3. Install and test the generated preview before merging.
Filed note
Cloudflare’s open-source Forge pipeline runs in CI to generate and preview SDKs, CLIs, docs, and other agent-facing surfaces from API definitions.

articleThe source

Highlights
  • Forge is an open source, pluggable generation pipeline that anyone can deploy and run for free.

  • We built Forge because we needed it ourselves in order to treat agents as our customers.

    Agent-ready product surfaces are now part of the API contract.

  • It lints every change, and then generates preview builds of the CLI, docs, and SDKs with just your changes highlighted that you can install to test.

    Preview generation moves compatibility checks into each pull request.

Excerpt

Today we’re introducing Forge, a fresh approach to generating SDKs, CLIs, docs, and libraries. Forge is an open source, pluggable generation pipeline that anyone can deploy and run for free. Forge is early in its life, but already generates the output required for the cf CLI, and over the next few months will power Cloudflare’s API documentation, SDKs, and much more.

From blog.cloudflare.com

Read the full article