SpecForge
February 2025
Active
RSpec
Ruby

SpecForge started with a simple observation: API documentation is either terrible or nonexistent. Everyone wants good docs, but creating them is such a hassle that they either don't exist or they're lying about what your API actually does.

Here's the thing though - to make decent API documentation, you need real data showing what your endpoints actually return. And to get that data reliably, you need tests. So I thought, okay, let's build tests that can generate the documentation as a side effect. But writing tests in Ruby for every endpoint gets tedious fast, so what if I could just describe what I want in YAML?

That chain of "what ifs" became SpecForge. Write simple, declarative YAML that describes your API behavior, and boom - you get both comprehensive tests and accurate documentation. Behind the scenes, it leverages RSpec, FactoryBot, and Faker to handle all the heavy lifting, but you never have to think about that unless you want to.

Sometimes the best tools come from following a simple problem to its logical conclusion. I wanted better API docs, which led me to better tests, which led me to YAML, which led me to accidentally building something that makes both problems disappear.

Source Code
Github
Documentation
Changelog
RubyGems