Back to APIs list

Vercel API examples & templates

Use these vals as a playground to view and fork Vercel API examples and templates on Val Town. Run any example below or find templates that can be used as a pre-built solution.
stevekrouse avatar
docFeedbackForm
@stevekrouse
HTTP
Forked from stevekrouse/form
simonharrisco avatar
ping2
@simonharrisco
Cron
An interactive, runnable TypeScript val by simonharrisco
parkerdavis avatar
docFeedbackForm
@parkerdavis
HTTP
Forked from stevekrouse/docFeedbackForm
timlin avatar
docFeedbackForm
@timlin
HTTP
Forked from stevekrouse/docFeedbackForm
nicoalbanese avatar
tomatoMinnow
@nicoalbanese
HTTP
Vercel AI SDK with Val Town! Use the Vercel AI SDK in your Vals. Note : you must add your OpenAI key to your Val Town Env variables under OPENAI_API_KEY . If you would like to specify a different name for your API Key, you can create a custom OpenAI provider with the createOpenAI function. Prefer another AI provider? Use any supported provider by changing just two lines of code!
nerdymomocat avatar
add_to_notion_w_ai_webpage
@nerdymomocat
HTTP
Example usage of the add_to_notion_w_ai val Try with the money database . Read and watch the demo run here
guidoism avatar
hackerNewsAuthors
@guidoism
Script
An interactive, runnable TypeScript val by guidoism
kora avatar
aiBasicExample
@kora
Script
Forked from yawnxyz/aiBasicExample
tempguy avatar
anime
@tempguy
HTTP
@jsxImportSource npm:hono@3/jsx
tempdev avatar
anime
@tempdev
HTTP
Forked from tempguy/anime
yawnxyz avatar
ai
@yawnxyz
HTTP
An http and class wrapper for Vercel's AI SDK Usage: Groq: https://yawnxyz-ai.web.val.run/generate?prompt="tell me a beer joke"&provider=groq&model=llama3-8b-8192 Perplexity: https://yawnxyz-ai.web.val.run/generate?prompt="what's the latest phage directory capsid & tail article about?"&provider=perplexity Mistral: https://yawnxyz-ai.web.val.run/generate?prompt="tell me a joke?"&provider=mistral&model="mistral-small-latest" async function calculateEmbeddings(text) { const url = `https://yawnxyz-ai.web.val.run/generate?embed=true&value=${encodeURIComponent(text)}`; try { const response = await fetch(url); const data = await response.json(); return data; } catch (error) { console.error('Error calculating embeddings:', error); return null; } }
ejfox avatar
inventory
@ejfox
HTTP (preview)
* This val creates an interactive tech stack wizard that generates a video game-style inventory screen. * It uses React for the UI, leverages emoji and Unicode symbols for a visually rich experience, and * incorporates Tailwind CSS for elegant, grayscale styling. * The wizard allows users to select tools, libraries, and APIs, then displays them in a shareable format.
petermillspaugh avatar
january2024
@petermillspaugh
Script
petemillspaugh.com clippings: #1 โ€“ January 2024 Process for sending out a newsletter: Publish newsletter on the Web Fork this val and update subject, webUrl, targetSendDate Uncomment call to insertIntoNewslettersTable Add to @petermillspaugh/newsletters list Val
ronlats avatar
isMyWebsiteDown
@ronlats
Cron
Forked from andreterron/isMyWebsiteDown
jdan avatar
dialog
@jdan
HTTP (preview)
dialog Renders windows 98 dialog boxes as SVGs. Using satori and styles from 98.css Usage https://jdan-dialog.web.val.run/? w =200& h =110& title =Hello& caption =World w (default: 200): the width of the dialog h (default: 110): the height of the dialog title (default: "{title}"): the text in the title bar caption (default: "{caption}"): the caption text
stevekrouse avatar
shySapphireLeopard
@stevekrouse
HTTP
Forked from muhammad_owais_warsi/shySapphireLeopard