Val Town Code SearchReturn to Val Town

API Access

You can access search results via JSON API by adding format=json to your query:

https://codesearch.val.run/?q=api&page=225&format=json

For typeahead suggestions, use the /typeahead endpoint:

https://codesearch.val.run/typeahead?q=api

Returns an array of strings in format "username" or "username/projectName"

Found 12831 results for "api"(1488ms)

textToAudioPlayerApp.ts1 match

@dcm31Updated 2 weeks ago
68 <p>
69 <small>
70 Powered by Web Speech API • <a href={import.meta.url.replace("esm.town", "val.town")} target="_top">View Source</a>
71 </small>
72 </p>

SimpleAudioPlayerPWAapp.tsx1 match

@dcm31Updated 2 weeks ago
279 const url = new URL(request.url);
280
281 // Handle the API endpoint to generate speech from text
282 if (url.pathname === '/generate-speech' && request.method === 'POST') {
283 try {

SimpleAudioPlayerPWAREADME.md1 match

@dcm31Updated 2 weeks ago
23## Voice Options
24
25The app uses OpenAI's Text-to-Speech API with these voices:
26
27- Alloy - Neutral, versatile voice

SimpleAudioPlayerPWAindex.ts1 match

@dcm31Updated 2 weeks ago
218 const url = new URL(request.url);
219
220 // Handle the API endpoint to generate speech from text
221 if (url.pathname === '/generate-speech' && request.method === 'POST') {
222 try {

SimpleAudioPlayerPWAvoices.tsx1 match

@dcm31Updated 2 weeks ago
1// List of available voices for OpenAI TTS API
2export const voices = [
3 { id: "alloy", name: "Alloy", description: "Neutral, versatile voice" },

SimpleAudioPlayerindex.ts1 match

@dcm31Updated 2 weeks ago
185 const url = new URL(request.url);
186
187 // Handle the API endpoint to generate speech from text
188 if (url.pathname === '/generate-speech' && request.method === 'POST') {
189 try {

randomWikipediacron2 matches

@flymasterUpdated 2 weeks ago
2
3export default async function(interval: Interval) {
4 // fetch random article from wikipedia api
5 const randomArticle = await fetch(
6 "https://en.wikipedia.org/w/api.php?action=query&format=json&prop=extracts&meta=&generator=random&formatversion=2&exsentences=1&explaintext=1&grnnamespace=0",
7 );
8 const articleJson = await randomArticle.json();

cerebras_coderstarter-prompts.js1 match

@pedro169Updated 2 weeks ago
12 },
13 {
14 "prompt": "weather dashboard for nyc using open-meteo API for NYC with icons",
15 "title": "Weather App",
16 "code":

cerebras_coderREADME.md2 matches

@pedro169Updated 2 weeks ago
8
91. Sign up for [Cerebras](https://cloud.cerebras.ai/)
102. Get a Cerebras API Key
113. Save it in your project env variable called `CEREBRAS_API_KEY`

cerebras_coderindex.ts1 match

@pedro169Updated 2 weeks ago
211 } catch (error) {
212 Toastify({
213 text: "We may have hit our Cerebras Usage limits. Try again later or fork this and use your own API key.",
214 position: "center",
215 duration: 3000,

vapi-minutes-db1 file match

@henrywilliamsUpdated 1 day ago

vapi-minutes-db2 file matches

@henrywilliamsUpdated 1 day ago
papimark21
socialdata
Affordable & reliable alternative to Twitter API: ➡️ Access user profiles, tweets, followers & timeline data in real-time ➡️ Monitor profiles with nearly instant alerts for new tweets, follows & profile updates ➡️ Simple integration