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=2561&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 28712 results for "function"(5791ms)

linkInBioTemplatemain.tsx1 match

@mewtru•Updated 11 months ago
2import { renderToString } from "npm:react-dom/server";
3
4export default async function(req: Request) {
5 return new Response(
6 renderToString(

twitterAlertmain.tsx1 match

@jamiedubs•Updated 11 months ago
7const query = `"glif.app" OR "glifapp" OR "glif app" OR "@heyglif" -is:retweet`;
8
9export async function twitterAlert({ lastRunAt }: Interval) {
10 const results = await twitterSearch({
11 query,

twitterSearchmain.tsx1 match

@stevekrouse•Updated 11 months ago
3import { twitterUser } from "https://esm.town/v/stevekrouse/twitterUser";
4
5export async function twitterSearch({
6 query,
7 start_time,

twitterSearchmain.tsx1 match

@jamiedubs•Updated 11 months ago
3import { twitterUser } from "https://esm.town/v/stevekrouse/twitterUser";
4
5export async function twitterSearch({
6 query,
7 start_time,

private_modelmain.tsx1 match

@turbo1912•Updated 11 months ago
4import { renderToString } from "npm:react-dom/server";
5
6export default async function(interval: Interval) {
7 const result = await fal.subscribe("turbo1912/multiple-models/sd", {
8 input: {

easyAQImain.tsx1 match

@rishabhparikh•Updated 11 months ago
7const cacheKey = location => "easyAQI_locationID_cache_" + encodeURIComponent(location);
8
9export async function easyAQI({ location }: {
10 location: string;
11}) {

urlMetadatamain.tsx1 match

@yawnxyz•Updated 11 months ago
1import urlMetadata from 'npm:url-metadata';
2
3export async function getUrlMetadata(url) {
4 try {
5 const metadata = await urlMetadata(url);

acemain.tsx2 matches

@saolsen•Updated 11 months ago
90 return c.render(
91 <div id="editor">
92 {html`function foo(items) {
93 var x = "All this is syntax highlighted";
94 return x;
98});
99
100export default async function handler(req: Request): Promise<Response> {
101 return await app.fetch(req);
102}

onlineStatusmain.tsx2 matches

@lilyjordan•Updated 11 months ago
2import { renderToString } from "npm:react-dom/server";
3
4export function getStaticProps() {
5 return {
6 props: {},
8}
9
10export default async function(req: Request) {
11 return new Response(
12 renderToString(

roseGiraffemain.tsx1 match

@lilyjordan•Updated 11 months ago
2import { renderToString } from "npm:react-dom/server";
3
4export default async function(req: Request) {
5 return new Response(
6 renderToString(

getFileEmail4 file matches

@shouser•Updated 1 month 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.