TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Superfunctions – AI prompt templates as an API

42 点作者 trentearl将近 2 年前
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 条评论

Palmik将近 2 年前
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 未加载
quickthrower2将近 2 年前
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-ga将近 2 年前
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 未加载
frob将近 2 年前
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 未加载
mdaniel将近 2 年前
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 未加载
askIoT将近 2 年前
This is a really cool tool. I can see enterprises wanting a tool like this to automate tasks etc.
yawnxyz将近 2 年前
This is cool! Kind of reminds me of Val Town but with a reusable prompt twist. Love it