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=1707&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 18162 results for "function"(3189ms)

myApimain.tsx1 match

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

myApimain.tsx1 match

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

twitterAuthHandlermain.tsx1 match

@andreterron•Updated 1 year ago
3import { nanoid } from "https://esm.town/v/stevekrouse/nanoid?v=3";
4
5export async function twitterAuthHandler(
6 req: Request,
7 { client_id, client_secret, redirect_uri, scopes, storage }: {

githubStarsmain.tsx1 match

@sourishkrout•Updated 1 year ago
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3export async function githubStars(
4 handle: string,
5 repo: string,

myApimain.tsx1 match

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

valTownDailyInspomain.tsx1 match

@valtism•Updated 1 year ago
1import { valTownInspirationEmail } from "https://esm.town/v/rodrigotello/valTownInspirationEmail?v=79";
2
3export async function valTownDailyInspo() {
4 return await valTownInspirationEmail();
5}

getFirebaseTweetsmain.tsx1 match

@puf•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function getFirebaseTweets() {
4 const result = await fetch("https://twitter.com/firebase");
5 console.log(result);

myApimain.tsx1 match

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

getLemmyJwtmain.tsx2 matches

@canpolat•Updated 1 year ago
1export async function getLemmyJwt({ instance, username, password }: {
2 instance: string;
3 username: string;
7 const { LemmyHttp } = await import("npm:lemmy-js-client@0.18.1");
8 let client = new LemmyHttp(`https://${instance}`, {
9 fetchFunction: fetch,
10 });
11 try {

myApimain.tsx1 match

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

getFileEmail4 file matches

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

tuna8 file matches

@jxnblk•Updated 2 weeks 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": "*",