Hacker News new | ask | show | jobs
by wtomas 3 days ago
I'm building Sufleur: a package manager for LLM prompts. You publish Mustache templates as immutable semver versions, and a CLI generates typed TypeScript/Python from them — typed on both the input and output side. The part that's been the most fun to build is inferring input types from the template itself:

  Hi {{user.name}}{{@type string}}
becomes

  { user: { name: string } }
as an input type in the generated code, so prompt changes fail your build instead of your production.

I started it ~a year ago and it died like side projects do. Months later, building something completely different, I caught myself wishing for exactly the tool I'd abandoned, and since then it's completely vacuumed up all my free time.

Repo: https://github.com/sufleur/cli