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/$%7Bart_info.art.src%7D?q=function&page=1784&format=json

For typeahead suggestions, use the /typeahead endpoint:

https://codesearch.val.run/typeahead?q=function

Returns an array of strings in format "username" or "username/projectName"

Found 18010 results for "function"(2173ms)

searchManifoldMarketsmain.tsx1 match

@piotr•Updated 1 year ago
5 url: string;
6};
7export async function searchManifoldMarkets(query: string) {
8 const result = await fetch(
9 `https://manifold.markets/api/v0/search-markets?${query}`,

myApimain.tsx1 match

@quoc•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}

myApimain.tsx1 match

@aendra•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}

correctPostAboutTwittermain.tsx1 match

@andreterron•Updated 1 year ago
1import { postTweet } from "https://esm.town/v/andreterron/postTweet";
2
3export async function correctPostAboutTwitter({ id, accessToken }: {
4 id: string;
5 accessToken: string;

tidbytDeviceInfomain.tsx1 match

@andreterron•Updated 1 year ago
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3export function tidbytDeviceInfo({ deviceId, apiKey }: {
4 deviceId: string;
5 apiKey: string;

myApimain.tsx1 match

@valtism•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}

callMemain.tsx1 match

@kos0616•Updated 1 year ago
2import { sendMsgToDiscord } from "https://esm.town/v/kos0616/sendMsgToDiscord";
3
4export async function callMe(msg: string) {
5 try {
6 await sendMsgToDiscord(msg);

myApimain.tsx1 match

@cat•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}

mermaidHtmlmain.tsx1 match

@jdan•Updated 1 year ago
3import { mermaidStateDiagramOfMarkov } from "https://esm.town/v/jdan/mermaidStateDiagramOfMarkov";
4
5export async function mermaidHtml() {
6 const numElements = 30;
7 const ngram = 2;

lichessTVGamesmain.tsx1 match

@jdan•Updated 1 year ago
29}
30type Games = Record<GameType, Entry>;
31export async function lichessTVGames(): Promise<Games> {
32 const channels = await fetch("https://lichess.org/api/tv/channels");
33 return await channels.json();

getFileEmail4 file matches

@shouser•Updated 1 week ago
A helper function to build a file's email
tuna

tuna8 file matches

@jxnblk•Updated 1 week ago
Simple functional CSS library for Val Town
webup
LangChain (https://langchain.com) Ambassador, KubeSphere (https://kubesphere.io) Ambassador, CNCF OpenFunction (https://openfunction.dev) TOC Member.
lost1991
import { OpenAI } from "https://esm.town/v/std/openai"; export default async function(req: Request): Promise<Response> { if (req.method === "OPTIONS") { return new Response(null, { headers: { "Access-Control-Allow-Origin": "*",