Compare
Baklava vs Itdoc
Short answer: Pick Baklava if you want test-driven API documentation; pick Itdoc if you want test-driven API documentation. Baklava is free and open source; Itdoc is free.
Which to pick
Pick Baklava if you want…
- Test-driven API documentation
- Integrations with Pekko HTTP, http4s or ScalaTest (on Baklava's list, not Itdoc's)
Pick Itdoc if you want…
- Test-driven API documentation
- NodeJS test-driven docs
- Integrations with JavaScript or TypeScript (on Itdoc's list, not Baklava's)
Side by side
- What it is
- Baklava:Baklava generates API documentation directly from your routing tests, ensuring docs stay in sync with code.
- Itdoc:Itdoc generates RESTful API documentation for JavaScript/TypeScript projects by extracting request-response examples from passing tests.
- Best for
- Baklava:Test-driven API documentation
- Itdoc:Test-driven API documentation
- Who it’s for
- Baklava:Scala backend developers using Pekko HTTP or http4s.
- Itdoc:JavaScript and TypeScript developers who write API tests.
- Pricing
- Baklava:Open source
- Itdoc:Free
- Starting price
- Baklava:Free
- Itdoc:Free
- Free plan or trial
- Baklava:Free to use
- Itdoc:Free to use
- Open source
- Baklava:Yes, 11 GitHub stars
- Itdoc:Yes, 129 GitHub stars
- Works with
- Baklava:Pekko HTTP, http4s, ScalaTest, Specs2, MUnit, Scala 2.13
- Itdoc:JavaScript, TypeScript
Baklava features
- Docs from tests. Capture paths, methods, params, security and responses from your test suite to auto-generate docs.
- Multiple output formats. Export OpenAPI 3.0, SwaggerUI, HTML, TypeScript contracts (ts-rest, Zod), Postman, sttp and more.
- Zero-config integration. Add a dependency and Baklava discovers the format automatically, no separate spec files needed.
- Works with popular Scala stacks. Supports Pekko HTTP, http4s, ScalaTest, Specs2 and MUnit on Scala 2.13 or 3.
- SBT plugin. Run `sbt test` and documentation is generated in `target/baklava/`.
- Open source license. Released under Apache 2.0, free to use and modify.
Itdoc features
- Test-based doc generation. Creates API docs directly from passing test code.
- Request/response extraction. Pulls example requests and responses from test assertions.
- Auto-sync docs. Keeps documentation up-to-date as tests change.
- Developer notes integration. Combines extracted examples with developer-written descriptions.
- JS/TS support. Works with JavaScript and TypeScript projects.
- Node.js friendly. Designed for Node.js test environments.
Baklava vs Itdoc FAQ
What is the difference between Baklava and Itdoc?+
Itdoc creates API docs from NodeJS test code, similar concept but for a different language stack.
Should I use Baklava or Itdoc?+
Pick Baklava if you want test-driven API documentation or integrations with Pekko HTTP, http4s or ScalaTest (on Baklava's list, not Itdoc's). Pick Itdoc if you want test-driven API documentation, nodeJS test-driven docs or integrations with JavaScript or TypeScript (on Itdoc's list, not Baklava's).
Is Baklava or Itdoc free?+
Yes, both are free, and Baklava is open source.
Is Baklava or Itdoc open source?+
Yes, both are open source: Baklava (theiterators/baklava on GitHub, Apache-2.0 license) and Itdoc (do-pa/itdoc on GitHub, Apache-2.0 license).
Do Baklava and Itdoc integrate with the same tools?+
Their integration lists don't overlap: Baklava lists Pekko HTTP, http4s, ScalaTest, Specs2 and 2 more; Itdoc lists JavaScript and TypeScript.
On DevHunt
Based on each tool's website and DevHunt data. Details may change; check the official sites.

