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/$1?q=fetch&page=1031&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 13344 results for "fetch"(2721ms)

deletebiomain.tsx1 match

@yawnxyz•Updated 7 months ago
276
277
278export default (typeof Deno !== "undefined" && Deno.env.get("valtown")) ? app.fetch : app;

preciseAquamarineReptilemain.tsx1 match

@stevekrouse•Updated 7 months ago
44
45 try {
46 const response = await fetch("/", {
47 method: "POST",
48 body: JSON.stringify({ prompt, currentCode: code }),

podcastmain.tsx1 match

@all•Updated 7 months ago
44 const generateNextMessage = async () => {
45 const currentSpeaker = conversation.length % 2 === 0 ? 1 : 2;
46 const res = await fetch("?nextMessage=true", {
47 method: "POST",
48 body: JSON.stringify({

savvyPurpleSpoonbillmain.tsx7 matches

@all•Updated 7 months ago
28
29 useEffect(() => {
30 fetchSavedSnippets();
31 }, []);
32
33 async function fetchSavedSnippets() {
34 const response = await fetch("/snippets");
35 const snippets = await response.json();
36 setSavedSnippets(snippets);
39 async function handleSave() {
40 if (!code) return;
41 const response = await fetch("/snippets", {
42 method: "POST",
43 headers: { "Content-Type": "application/json" },
45 });
46 if (response.ok) {
47 fetchSavedSnippets();
48 }
49 }
50
51 async function handleDelete(id: number) {
52 const response = await fetch(`/snippets/${id}`, { method: "DELETE" });
53 if (response.ok) {
54 setSavedSnippets(snippets => snippets.filter(s => s.id !== id));
61
62 try {
63 const response = await fetch("/", {
64 method: "POST",
65 body: JSON.stringify({ prompt, currentCode: code }),

perseveringApricotSwordfishmain.tsx1 match

@stevekrouse•Updated 7 months ago
25
26 try {
27 const response = await fetch("/", {
28 method: "POST",
29 body: JSON.stringify({ prompt, currentCode: code }),

perseveringApricotSwordfishmain.tsx1 match

@stevekrouse•Updated 7 months ago
25
26 try {
27 const response = await fetch("/", {
28 method: "POST",
29 body: JSON.stringify({ prompt, currentCode: code }),

surpassingTealRoundwormmain.tsx1 match

@stevekrouse•Updated 7 months ago
23
24 try {
25 const response = await fetch("/", {
26 method: "POST",
27 body: JSON.stringify({ prompt, currentCode: code }),

cooperativeBronzeWildcatmain.tsx1 match

@stevekrouse•Updated 7 months ago
25
26 try {
27 const response = await fetch("/", {
28 method: "POST",
29 body: JSON.stringify({ prompt, currentCode: code }),

savvyPurpleSpoonbillmain.tsx1 match

@stevekrouse•Updated 7 months ago
25
26 try {
27 const response = await fetch("/", {
28 method: "POST",
29 body: JSON.stringify({ prompt, currentCode: code }),

cerebras_debatermain.tsx1 match

@stevekrouse•Updated 7 months ago
36 const generateNextMessage = async () => {
37 const currentSpeaker = conversation.length % 2 === 0 ? 1 : 2;
38 const res = await fetch("?nextMessage=true", {
39 method: "POST",
40 body: JSON.stringify({

GithubPRFetcher

@andybak•Updated 1 day ago

proxiedfetch1 file match

@jayden•Updated 2 days ago