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=363&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 7903 results for "fetch"(835ms)

cerebras_codermain.tsx1 match

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

cerebras_codermain.tsx1 match

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

cerebras_codermain.tsx1 match

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

LetMeIntoLinearmain.tsx1 match

@jxxe•Updated 3 months ago
9 ];
10
11 const response = await fetch("https://cab.brown.edu/api/?page=fose&route=details", {
12 method: "POST",
13 body: JSON.stringify({

sqliteExplorerAppmain.tsx4 matches

@qkiii•Updated 3 months ago
1/** @jsxImportSource https://esm.sh/hono@latest/jsx **/
2
3import { modifyFetchHandler } from "https://esm.town/v/andreterron/codeOnValTown?v=50";
4import { iframeHandler } from "https://esm.town/v/nbbaier/iframeHandler";
5import { resetStyle } from "https://esm.town/v/nbbaier/resetStyle";
16import { verifyToken } from "https://esm.town/v/pomdtr/verifyToken";
17import { ResultSet, sqlite } from "https://esm.town/v/std/sqlite";
18import { reloadOnSaveFetchMiddleware } from "https://esm.town/v/stevekrouse/reloadOnSave";
19import { Hono } from "npm:hono";
20import type { FC } from "npm:hono/jsx";
175});
176
177export const handler = app.fetch;
178export default iframeHandler(modifyFetchHandler(passwordAuth(handler, { verifyPassword: verifyToken })));

notion2wallabagmain.tsx2 matches

@michaelfromyeg•Updated 3 months ago
81
82async function getWallabagToken(config: any) {
83 const response = await fetch(`${config.WALLABAG_URL}/oauth/v2/token`, {
84 method: "POST",
85 headers: {
100
101async function saveToWallabag(url: string, token: string, config: any) {
102 const response = await fetch(`${config.WALLABAG_URL}/api/entries.json`, {
103 method: "POST",
104 headers: {

scheduleFormmain.tsx1 match

@Pantherleo•Updated 3 months ago
12
13
14export default app.fetch;

groq_codermain.tsx1 match

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

sqlitemain.tsx2 matches

@stevekrouse•Updated 3 months ago
35
36async function execute(statement: InStatement, args?: InArgs): Promise<ResultSet> {
37 const res = await fetch(`${API_URL}/v1/sqlite/execute`, {
38 method: "POST",
39 headers: {
53 throw new Error("Invalid transaction mode provided to sqlite.batch. Must be 'write', 'read', or 'deferred.");
54 }
55 const res = await fetch(`${API_URL}/v1/sqlite/batch`, {
56 method: "POST",
57 headers: {

compactBlushGrasshoppermain.tsx10 matches

@tempdev•Updated 3 months ago
55
56async function PRORCPhandler(prorcp: string): Promise<string | null> {
57 const prorcpFetch = await fetch(`${BASEDOM}/prorcp/${prorcp}`);
58 const prorcpResponse = await prorcpFetch.text();
59
60 const scripts = prorcpResponse.match(/<script\s+src="\/([^"]*\.js)\?\_=([^"]*)"><\/script>/gm);
62 ? scripts?.[scripts.length - 2].replace(/.*src="\/([^"]*\.js)\?\_=([^"]*)".*/, "$1?_=$2")
63 : scripts?.[scripts.length - 1].replace(/.*src="\/([^"]*\.js)\?\_=([^"]*)".*/, "$1?_=$2");
64 const jsFileReq = await fetch(
65 `${BASEDOM}/${script}`,
66 {
72 "sec-ch-ua-mobile": "?0",
73 "sec-ch-ua-platform": "\"Windows\"",
74 "sec-fetch-dest": "script",
75 "sec-fetch-mode": "no-cors",
76 "sec-fetch-site": "same-origin",
77 "Referer": `${BASEDOM}/`,
78 "Referrer-Policy": "origin",
112 ? `https://vidsrc.net/embed/${type}?tmdb=${tmdbId}`
113 : `https://vidsrc.net/embed/${type}?tmdb=${tmdbId}&season=${season}&episode=${episode}`;
114 const embed = await fetch(url);
115 const embedResp = await embed.text();
116
122 const { servers, title } = await serversLoad(embedResp);
123
124 const rcpFetchPromises = servers.map(element => {
125 return fetch(`${BASEDOM}/rcp/${element.dataHash}`);
126 });
127 const rcpResponses = await Promise.all(rcpFetchPromises);
128 console.log(rcpResponses);
129 const prosrcrcp = await Promise.all(rcpResponses.map(async (response) => {

fetchPaginatedData2 file matches

@nbbaier•Updated 1 week ago

FetchBasic1 file match

@fredmoon•Updated 1 week ago