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/$%7Burl%7D?q=function&page=2094&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 22241 results for "function"(3026ms)

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

ghIssueFromNodeIdmain.tsx1 match

@augustohp•Updated 1 year ago
1export async function ghIssueFromNodeId(nodeId: string, token: string): Promise<{
2 id: string;
3 number: number;

publishYoutubeToLemmymain.tsx2 matches

@pdebie•Updated 1 year ago
2import { youtubeFeed } from "https://esm.town/v/pdebie/youtubeFeed";
3
4export async function publishYoutubeToLemmy(
5 { instance, communityId, auth, youtubeChannelId, syncInfo, filter }: {
6 instance: string;
14 const { LemmyHttp } = await import("npm:lemmy-js-client@0.18.1");
15 let client = new LemmyHttp(`https://${instance}`, {
16 fetchFunction: fetch,
17 });
18 const items =

youtubeFeedmain.tsx1 match

@pdebie•Updated 1 year ago
1import { fetchRss } from "https://esm.town/v/pdebie/fetchRss";
2
3export function youtubeFeed(channelId: string, lastCheckDate?: string | number) {
4 return fetchRss(
5 "https://www.youtube.com/feeds/videos.xml?channel_id=" + channelId,

FigmaFramesOnlymain.tsx1 match

@rodrigotello•Updated 1 year ago
1export function FigmaFramesOnly(json: any): any {
2 const frames = [];
3 const canvases = json.document.children.filter((child) =>

myApimain.tsx1 match

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

hnTopStorymain.tsx1 match

@fab1an•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function hnTopStory() {
4 const topStories: Number[] = await fetch(
5 "https://hacker-news.firebaseio.com/v0/topstories.json?print=pretty"

myApimain.tsx1 match

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

getFileEmail4 file matches

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

tuna8 file matches

@jxnblk•Updated 1 month ago
Simple functional CSS library for Val Town
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": "*",
webup
LangChain (https://langchain.com) Ambassador, KubeSphere (https://kubesphere.io) Ambassador, CNCF OpenFunction (https://openfunction.dev) TOC Member.