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=344&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 5857 results for "fetch"(676ms)

mullerIntuitivmain.tsx2 matches

@dotim•Updated 4 months ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3interface BaseResponse {
64
65 private static async makeRequest<T>(endpoint: string, options: RequestInit): Promise<T> {
66 const response = await fetch(`${this.BASE_URL}${endpoint}`, options);
67 const data = await response.json();
68 if (!response.ok) {

tempomain.tsx3 matches

@dotim•Updated 4 months ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export enum TempoColorCode {
18
19 static async getToday(): Promise<TempoResponse> {
20 const response = await fetch(this.BASE_URL + "/today");
21 if (!response.ok) {
22 throw new Error(`Impossible de récupérer les informations du jour : ${response.statusText}`);
27
28 static async getTomorrow(): Promise<TempoResponse> {
29 const response = await fetch(this.BASE_URL + "/tomorrow");
30 if (!response.ok) {
31 throw new Error(`Impossible de récupérer les informations du lendemain : ${response.statusText}`);

ntfymain.tsx2 matches

@dotim•Updated 4 months ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export class NtfyService {
20 }
21
22 const response = await fetch("https://ntfy.sh/" + Deno.env.get("NTFY_CHANNEL"), {
23 method: "POST",
24 body: message,

coherentBlackBisonmain.tsx1 match

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

cerebras_codermain.tsx1 match

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

praiseworthyAquamarineHaremain.tsx1 match

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

stylishSalmonTortoisemain.tsx1 match

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

cerebras_codermain.tsx1 match

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

cerebras_codermain.tsx1 match

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

cerebras_codermain.tsx1 match

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

fetchPaginatedData2 file matches

@nbbaier•Updated 1 week ago

tweetFetcher2 file matches

@nbbaier•Updated 1 week ago