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/image-url.jpg%20%22Image%20title%22?q=function&page=2658&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 29344 results for "function"(5124ms)

twitterAlertmain.tsx1 match

@nevikashah•Updated 1 year ago
4const query = "\"val.town\" OR \"val town\" -_ValTown_";
5
6export async function twitterAlert({ lastRunAt }: Interval) {
7 const results = await twitterSearch({
8 query,

buildclubProjectSearchmain.tsx2 matches

@yawnxyz•Updated 1 year ago
65const defaultEmbeddingColumn = "Embeddings";
66
67async function fetchAirtableData(baseId, tableName, nameColumn, contentColumn, embeddingColumn) {
68 const base = new Airtable({ apiKey: airtableApiKey }).base(baseId);
69 const records = await base(tableName).select().all();
78}
79
80async function searchDocuments(c, query, similarityThreshold) {
81 const baseId = c.req.query("base_id") || defaultBaseId;
82 const tableName = c.req.query("table_name") || defaultTableName;

handleDiscordInteractionREADME.md1 match

@camajudson•Updated 1 year ago
1Bot for Cama discord server. To initialize new slash commands, you have to run a separate bit of code. This is for modifying their functionality

airtablesemanticsearchmain.tsx1 match

@yawnxyz•Updated 1 year ago
18const defaultEmbeddingColumn = "Embeddings";
19
20async function fetchAirtableData(baseId, tableName, contentColumn, embeddingColumn) {
21 const base = new Airtable({ apiKey: airtableApiKey }).base(baseId);
22 const records = await base(tableName).select().all();

processResumemain.tsx1 match

@iamseeley•Updated 1 year ago
1import { resumeSections } from "https://esm.town/v/iamseeley/resumeSections";
2
3export function processResume(resume, sectionOrder = [], templates = {}) {
4 const allSections = [
5 'header', 'summary', 'education', 'work', 'projects', 'volunteer',

validateResumemain.tsx1 match

@iamseeley•Updated 1 year ago
1import resumeValidate from "https://esm.town/v/iamseeley/resumeValidate";
2
3export async function validateResume(resumeJson) {
4 try {
5 const resumeDetails = JSON.parse(resumeJson);

imageDownSizermain.tsx1 match

@yawnxyz•Updated 1 year ago
7import { Hono } from "npm:hono@3";
8
9function esmTown(url) {
10 return fetch(url, {
11 headers: {

reacttldrawclientmain.tsx1 match

@tmcw•Updated 1 year ago
7// import "https://esm.sh/tldraw/tldraw.css";
8
9export function App() {
10 return (
11 <>

telegrammain.tsx4 matches

@austinm911•Updated 1 year ago
10 * @param authorization
11 */
12export async function telegramText(text: string, options?: TextOptions, authorization?: string) {
13 return telegramRequest("text", { text, options }, authorization);
14}
20 * @param authorization
21 */
22export async function telegramPhoto(options: PhotoOptions, authorization?: string) {
23 return telegramRequest("photo", { options }, authorization);
24}
25
26async function telegramRequest(path, body, authorization?: string) {
27 const response = await fetch("https://stevekrouse-telegramValTownAPI.web.val.run/" + path, {
28 method: "POST",
47 * @deprecated since 4/20/2024
48 */
49export async function telegram(secret: string, text: string, options?: MergedOptions) {
50 return runVal("stevekrouse.telegramValTownBot", secret, text, options);
51}

guestmain.tsx1 match

@pomdtr•Updated 1 year ago
1export default function() {
2 return fetch("file:///opt/render/project/src/guest/index.ts");
3}
tuna

tuna9 file matches

@jxnblk•Updated 2 days ago
Simple functional CSS library for Val Town

getFileEmail4 file matches

@shouser•Updated 1 month ago
A helper function to build a file's email
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.