{"by":"trentearl","descendants":16,"id":37197575,"kids":[37199590,37206430,37199347,37199589,37202212,37204690,37203819],"score":42,"text":"Hi HN,<p><a href=\"https:&#x2F;&#x2F;superfunctions.com\" rel=\"nofollow noreferrer\">https:&#x2F;&#x2F;superfunctions.com</a><p>I&#x27;m working on a web app that allows Ai prompts to function as an API. I want to make it easier for developers to use Ai. I&#x27;ve found it painful to monitor, cache, and iterate on prompts. superfunctions.com is designed to be the simplest building block to create Ai powered apps and scripts.<p>Simplest example I can think of:\nYou want  an api to convert human-named colors to hex\nYou can write a prompt like: &quot;convert {{query.color}} to color, only output hex for css&quot; and then you can call your prompt with <a href=\"https:&#x2F;&#x2F;superfn.com&#x2F;fn&#x2F;color-to-hex?color=blue\" rel=\"nofollow noreferrer\">https:&#x2F;&#x2F;superfn.com&#x2F;fn&#x2F;color-to-hex?color=blue</a>\nand the response will contain: #0000FF<p>Watch a short video intro:\n<a href=\"https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=KdO1TBUbRuA\">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=KdO1TBUbRuA</a><p>Login without needing an account:\n<a href=\"https:&#x2F;&#x2F;superfunctions.com&#x2F;login&#x2F;anon\" rel=\"nofollow noreferrer\">https:&#x2F;&#x2F;superfunctions.com&#x2F;login&#x2F;anon</a><p>I&#x27;m still sorting out a few bugs, but it&#x27;s usable in it&#x27;s current state.<p>This is my first solo project, so I&#x27;m very open to feedback and suggestions.<p>-Trent","time":1692524200,"title":"Show HN: Superfunctions – AI prompt templates as an API","type":"story","url":"https://superfunctions.versoly.page"}