Skip to main content
  1. Posts/

They rewrote JSONata with AI and saved half a million per year

··164 words·1 min·

⚡ They rewrote JSONata with AI and cut infrastructure costs hard
#

Reco used the same approach Cloudflare used in other rewrites: start from the test suite, let AI implement, and keep going until everything passes. The result was gnata, a Go implementation of JSONata 2.x.

What stands out
#

  • 🚀 1,000x faster on simple expressions
  • 💸 $400 in tokens for a high-impact change
  • 🧪 1,778 official tests passing
  • 🧠 Removed an expensive, slow RPC layer

The point is not “use AI and you’re done”, but to use it with tests, verification, and tightly scoped refactors.

🪄 Quick explanation
#

Think of replacing a slow tool with a custom-built version.

AI helps you build fast, but the real value appears when the code passes tests and cuts real costs.

👉 AI + tests + a good strategy = real impact.

More information at the link 👇

Also published on LinkedIn.
Juan Pedro Bretti Mandarano
Author
Juan Pedro Bretti Mandarano