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=1&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 18181 results for "function"(541ms)

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": "*",

telegramBotStarterprocessOwnerCommand.tsx3 matches

@asdfg•Updated 39 mins ago
8// import { getActiveUsers, getBlockedUsers, getUserInfo } from "./users.tsx";
9
10export default async function processOwnerCommand(message) {
11 const text = message.text || "";
12
139 * Reply to a specific user
140 */
141async function replyToUser(userId, text) {
142 // Send the message to the user
143 const success = await sendTelegramMessage(userId, text);
169 * Native reply to a specific user using Telegram's reply mechanism
170 */
171async function nativeReplyToUser(userId, originalMessage, text) {
172 try {
173 // Send the message as a reply to the original message

telegramBotStarterindex.ts2 matches

@asdfg•Updated 59 mins ago
1// ============================================================
2// CORE FUNCTIONALITY
3// ============================================================
4
11 * Expose this as an HTTP endpoint in Val.town
12 */
13export default async function handleTelegramWebhook(req) {
14 try {
15 // Ensure the request is a POST request

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