TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Superfunctions – AI prompt templates as an API

42 pointsby trentearlover 1 year ago
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: You want an api to convert human-named colors to hex You 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> and the response will contain: #0000FF<p>Watch a short video intro: <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: <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

7 comments

Palmikover 1 year ago
Nice work! Curious how you see the differentiation from similar products, like <a href="https:&#x2F;&#x2F;www.trudo.ai&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.trudo.ai&#x2F;</a>, <a href="https:&#x2F;&#x2F;promptitude.io&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;promptitude.io&#x2F;</a>, <a href="https:&#x2F;&#x2F;www.fixie.ai&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.fixie.ai&#x2F;</a>, <a href="https:&#x2F;&#x2F;www.baseplate.ai&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.baseplate.ai&#x2F;</a> and others.
评论 #37200100 未加载
quickthrower2over 1 year ago
Funny demo! I really did LOL (wont spoil it)<p>And beyond that interesting generative AI use case. The big challenge is thinking what is possible.<p>The next step might be simple chaining (of APIs not LLMs). So the API calls another API (e.g. get celeb news) then gives that info and a prompt to return a value. For example the same celeb api but with latest news in under 140 characters.
评论 #37207262 未加载
boo-ga-gaover 1 year ago
Love the project! Just read about grimoires with prompts by Ethan Mollick <a href="https:&#x2F;&#x2F;open.substack.com&#x2F;pub&#x2F;oneusefulthing&#x2F;p&#x2F;now-is-the-time-for-grimoires?r=1hy840&amp;utm_medium=ios&amp;utm_campaign=post" rel="nofollow noreferrer">https:&#x2F;&#x2F;open.substack.com&#x2F;pub&#x2F;oneusefulthing&#x2F;p&#x2F;now-is-the-ti...</a> and this looks like one of the ways to store your prompts! Having a caching layer also seems useful from cost point of view. I can imagine that with sufficiently large number of users their prompts and responses sometimes will be similar, and this provides space for cost savings, nice idea:)
评论 #37200526 未加载
frobover 1 year ago
Interesting project. How do you propose to sanitize the results? I used your example endpoint above and called it for chartreuse. Instead of just giving me a direct hex code like `#0000FF` for the blue example, it returned `The hex code for chartreuse in CSS is #7FFF00.`, which I&#x27;m pretty sure most systems would choke on. It seems to do this for a about 1&#x2F;3 to 1&#x2F;4 of my queries. Asking for a color it doesn&#x27;t like causes it to choke and return an &quot;I&#x27;m sorry, I cannot blah blah blah&quot; response.
评论 #37199850 未加载
mdanielover 1 year ago
If one creates a new app (which was unclear what that even means), then the resulting 403 makes the site never load again (just choosing instead to say &quot;Loading ...&quot; forever)<p>Kind of related to that, if a user created a new app, it&#x27;s weird that the new app would be 403 to that user
评论 #37202580 未加载
askIoTover 1 year ago
This is a really cool tool. I can see enterprises wanting a tool like this to automate tasks etc.
yawnxyzover 1 year ago
This is cool! Kind of reminds me of Val Town but with a reusable prompt twist. Love it