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=fetch&page=463&format=json

For typeahead suggestions, use the /typeahead endpoint:

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

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

Found 8143 results for "fetch"(948ms)

cerebras_codermain.tsx3 matches

@Mistercz•Updated 4 months ago
195 try {
196 // First, get coordinates for the city
197 const geoResponse = await fetch(
198 `https://geocoding-api.open-meteo.com/v1/search?name=${encodeURIComponent(cityInput.value)}&count=1&language=en&format=json`
199 );
207
208 // Then, get weather data
209 const weatherResponse = await fetch(
210 `https://api.open-meteo.com/v1/forecast?latitude=${latitude}&longitude=${longitude}&current_weather=true&temperature_unit=celsius`
211 );
225 weatherInfo.innerHTML = `
226 <p class="text-red-500">
227 ${error.message || 'Unable to fetch weather data'}
228 </p>
229 `;

cerebras_codermain.tsx1 match

@barakcodes•Updated 4 months ago
182
183 try {
184 const response = await fetch("/", {
185 method: "POST",
186 body: JSON.stringify({

properGreenGalliformmain.tsx1 match

@stevekrouse•Updated 4 months ago
180
181 try {
182 const response = await fetch("/", {
183 method: "POST",
184 body: JSON.stringify({

cerebras_codermain.tsx1 match

@developedbyumair•Updated 4 months ago
182
183 try {
184 const response = await fetch("/", {
185 method: "POST",
186 body: JSON.stringify({

cerebras_codermain.tsx1 match

@thetulga•Updated 4 months ago
182
183 try {
184 const response = await fetch("/", {
185 method: "POST",
186 body: JSON.stringify({

cerebras_codermain.tsx1 match

@aicodeking•Updated 4 months ago
180
181 try {
182 const response = await fetch("/", {
183 method: "POST",
184 body: JSON.stringify({

solicitousOliveDuckmain.tsx1 match

@stevekrouse•Updated 4 months ago
190
191 try {
192 const response = await fetch("/", {
193 method: "POST",
194 body: JSON.stringify({

qualityGrayPikemain.tsx1 match

@stevekrouse•Updated 4 months ago
180
181 try {
182 const response = await fetch("/", {
183 method: "POST",
184 body: JSON.stringify({

lovableVioletPeafowlmain.tsx1 match

@stevekrouse•Updated 4 months ago
181 try {
182 throw new Error("Generation Error: " + await response.text());
183 const response = await fetch("/", {
184 method: "POST",
185 body: JSON.stringify({

cerebras_codermain.tsx1 match

@mtarapata•Updated 4 months ago
180
181 try {
182 const response = await fetch("/", {
183 method: "POST",
184 body: JSON.stringify({

fetchPaginatedData2 file matches

@nbbaier•Updated 1 week ago

FetchBasic1 file match

@fredmoon•Updated 1 week ago