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=244&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 2636 results for "fetch"(318ms)

ListeningToLastFMREADME.md2 matches

@charmaine•Updated 2 months ago
14
15## Connecting with Framer
16You can easily plug this into your Framer website through [Framer Fetch](https://www.framer.com/developers/fetch/introduction).
17
18You can get the API url of your val by clicking `Copy` > `Copy HTTP Endpoint` on the right side bar.
20For example, my HTTP endpoint is: `https://charmaine-listeningtolastfm.web.val.run`
21
22**Example inside Framer, with Fetch:**
23![Screenshot 2025-02-06 at 6.37.22 PM.png](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/44decce0-ba11-4f32-0ab0-c940bccda100/public)
24

surprisingEmbeddingsbots6 matches

@tmcw•Updated 2 months ago
119 "frequency": "Unclear at this time.",
120 "description":
121 "DuckAssistBot is used by DuckDuckGo's DuckAssist feature to fetch content and generate realtime AI answers to user searches. More info can be found at https://darkvisitors.com/agents/agents/duckassistbot",
122 },
123 "FacebookBot": {
146 "GoogleOther": {
147 "description":
148 "\"Used by various product teams for fetching publicly accessible content from sites. For example, it may be used for one-off crawls for internal research and development.\"",
149 "frequency": "No information.",
150 "function": "Scrapes data.",
154 "GoogleOther-Image": {
155 "description":
156 "\"Used by various product teams for fetching publicly accessible content from sites. For example, it may be used for one-off crawls for internal research and development.\"",
157 "frequency": "No information.",
158 "function": "Scrapes data.",
162 "GoogleOther-Video": {
163 "description":
164 "\"Used by various product teams for fetching publicly accessible content from sites. For example, it may be used for one-off crawls for internal research and development.\"",
165 "frequency": "No information.",
166 "function": "Scrapes data.",
230 "\"The Meta-ExternalAgent crawler crawls the web for use cases such as training AI models or improving products by indexing content directly.\"",
231 },
232 "Meta-ExternalFetcher": {
233 "operator": "Unclear at this time.",
234 "respect": "Unclear at this time.",
236 "frequency": "Unclear at this time.",
237 "description":
238 "Meta-ExternalFetcher is dispatched by Meta AI products in response to user prompts, when they need to fetch an individual links. More info can be found at https://darkvisitors.com/agents/agents/meta-externalfetcher",
239 },
240 "OAI-SearchBot": {

reactRouter7server.tsx1 match

@charmaine•Updated 2 months ago
5 if (url.pathname == "/js/entry.client.js") {
6 const moduleUrl = new URL("./entry.client.tsx", import.meta.url);
7 return fetch(moduleUrl);
8 }
9 return handler(request);

reactRouter7layout.client.ts2 matches

@charmaine•Updated 2 months ago
3export async function loader({ request }: LoaderFunctionArgs) {
4 let url = new URL(request.url);
5 let res = await fetch(url, {
6 headers: {
7 Accept: "application/json",
15 let url = new URL(request.url);
16 // call the server action
17 let res = await fetch(url, {
18 method: "POST",
19 body: new URLSearchParams(await request.formData()),

gitHubSyncmain.tsx3 matches

@charmaine•Updated 2 months ago
82 if (!code) return c.text("No code provided", 400);
83
84 const tokenResponse = await fetch("https://github.com/login/oauth/access_token", {
85 method: "POST",
86 headers: {
97 const { access_token } = await tokenResponse.json();
98
99 const userResponse = await fetch("https://api.github.com/user", {
100 headers: {
101 "Authorization": `token ${access_token}`,
302}
303
304export default app.fetch;
305
306interface CommitOptions {

feedbackmain.ts1 match

@pomdtr•Updated 2 months ago
2
3export default async function(req: Request): Promise<Response> {
4 const markdown = await fetch(import.meta.resolve("./README.md")).then(res => res.text());
5 const url = new URL(req.url);
6

spotifyOauthServerserver1 match

@charmaine•Updated 2 months ago
140});
141
142export default app.fetch;

spotifyOauthServerserver1 match

@neverstew•Updated 2 months ago
140});
141
142export default app.fetch;

vblogimport-file1 match

@jxnblk•Updated 2 months ago
2export async function importFile(path: string) {
3 const url = new URL(path, import.meta.url);
4 const res = await fetch(url, { redirect: "follow" });
5 if (!res.ok) return null;
6 return await res.text();

cerebrasTemplatemain.tsx1 match

@charmaine•Updated 2 months ago
20
21 try {
22 const response = await fetch("/chat", {
23 method: "POST",
24 headers: { "Content-Type": "application/json" },

fetchPaginatedData2 file matches

@nbbaier•Updated 6 days ago

tweetFetcher2 file matches

@nbbaier•Updated 1 week ago