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/%22mailto:kurt@sachersolutions.ca/%22https:/console.groq.com/keys//%22data:image/svg+xml,%3Csvg?q=fetch&page=1&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 19114 results for "fetch"(728ms)

tinycanvasmain.ts1 match

@zarutian•Updated 1 min ago
48 const u = new URL("./announcePeer", myBaseUrl);
49 u.search = "?id=".concat(myid);
50 fetch(u).then((resp) => {
51 return resp.json();
52 }).then((others) => {

location-feed-generatorsettings.local.json4 matches

@tijs•Updated 10 mins ago
20 "Bash(timeout 30s deno run:*)",
21 "Bash(rm:*)",
22 "WebFetch(domain:docs.val.town)",
23 "Bash(find:*)",
24 "Bash(timeout 60 xcodebuild:*)",
46 "Bash(make:*)",
47 "WebSearch",
48 "WebFetch(domain:www.val.town)",
49 "WebFetch(domain:atproto.com)",
50 "Bash(git restore:*)",
51 "mcp__sequential-thinking__generate_summary",
58 "mcp__XcodeBuildMCP__launch_app_logs_sim",
59 "mcp__XcodeBuildMCP__stop_sim_log_cap",
60 "WebFetch(domain:slingshot.microcosm.blue)",
61 "Read(//Users/tijs/projects/atproto/**)",
62 "Bash(git tag:*)",

zoomtestmain.js3 matches

@yawnxyz•Updated 13 mins ago
420
421 try {
422 const response = await fetch('/boink', {
423 method: 'POST',
424 headers: {
477 ];
478
479 const response = await fetch(pipeline_url, {
480 method: "POST",
481 headers: {
496});
497
498export default (typeof Deno !== "undefined" && Deno.env.get("valtown")) ? app.fetch : app;
499

zoomtestdeno.lock4 matches

@yawnxyz•Updated 16 mins ago
53 "integrity": "sha512-GaHYm+c0O9MjZRu0ongGBRbinu8gVAMd2UZjji6jVmqKtZluZnptXGWhz1E8j8D2HJ3f/yMxKAUC0b+57wncIw=="
54 },
55 "@types/node-fetch@2.6.11": {
56 "integrity": "sha512-24xFj9R5+rfQJLRyM56qh+wnVSYhyXC2tkoBndtY0U+vubqNsYXGjufB2nn8Q6gt0LrARwL6UBtMCSVCwl4B1g==",
57 "dependencies": [
76 "dependencies": [
77 "@types/node@18.19.55",
78 "@types/node-fetch",
79 "abort-controller",
80 "agentkeepalive",
81 "form-data-encoder",
82 "formdata-node",
83 "node-fetch"
84 ]
85 },
183 "deprecated": true
184 },
185 "node-fetch@2.7.0": {
186 "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==",
187 "dependencies": [

zoomtest.cursorrules3 matches

@yawnxyz•Updated 16 mins ago
239
240 // Inject data to avoid extra round-trips
241 const initialData = await fetchInitialData();
242 const dataScript = `<script>
243 window.__INITIAL_DATA__ = ${JSON.stringify(initialData)};
286
2875. **API Design:**
288 - `fetch` handler is the entry point for HTTP vals
289 - Run the Hono app with `export default app.fetch // This is the entry point for HTTP vals`
290
291

flowxo-http-bot-samplebot.ts3 matches

@flowxo•Updated 17 mins ago
67 },
68 };
69 return fetch(WORKVIVO_BASE_URL + "/chat/bots/message", opts);
70}
71
136 messages.push({ from: "user", message: payload });
137 console.log("MESSAGES", messages);
138 return fetch(BOT_URL, options).catch(ex => {
139 return c.json({ ok: false, ex: ex.message });
140 }).then(res => {
149});
150
151export default app.fetch;

chatterjobs.js1 match

@yawnxyz•Updated 50 mins ago
201
202 try {
203 const upstream = await fetch(endpoint, {
204 method: "POST",
205 headers,

chatterchatCompletion.js2 matches

@yawnxyz•Updated 50 mins ago
1// Minimal Groq Chat Completions client using fetch
2import { extractOrRepairJsonResults, extractStructuredSummary, renderStructuredSummaryToHtml } from "./jsonUtils.js";
3export async function groqChatCompletion(apiKey, payload) {
4 console.log('>>> [groqChatCompletion] Payload:', payload);
5 const response = await fetch('https://api.groq.com/openai/v1/chat/completions', {
6 method: 'POST',
7 headers: {

chatterchatStreamSSE.js1 match

@yawnxyz•Updated 50 mins ago
125 ...(apiKey ? { 'Authorization': 'Bearer ' + apiKey } : {}),
126 };
127 const upstream = await fetch(endpoint, {
128 method: 'POST',
129 headers,

untitled-1522App.tsx5 matches

@jessicaocean•Updated 1 hour ago
48 setIsLoadingConversations(true);
49 try {
50 const response = await fetch('/api/conversations');
51 if (response.ok) {
52 const data = await response.json();
63 setIsLoadingConversation(true);
64 try {
65 const response = await fetch(`/api/conversations/${id}`);
66 if (response.ok) {
67 const data = await response.json();
77 const loadConversationParticipants = async (conversationId: number) => {
78 try {
79 const response = await fetch(`/api/conversations/${conversationId}/participants`);
80 if (response.ok) {
81 const participants = await response.json();
105
106 try {
107 const response = await fetch(`/api/conversations/${id}`, {
108 method: 'DELETE'
109 });
131
132 try {
133 const response = await fetch('/api/chat', {
134 method: 'POST',
135 headers: {
bible

bible2 file matches

@cameronpak•Updated 2 hours ago
fetch(bible) - one-liner Bible reader

FetchBasic2 file matches

@bengold•Updated 2 weeks ago