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/?q=function&page=1729&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 17345 results for "function"(3186ms)

telegramREADME.md1 match

@pomdtr•Updated 1 year ago
25### 4. Fork this val & run it
26
27Save your own private version of a `telegram` function to your account by forking this val: https://www.val.town/v/pomdtr.telegram
28
29### 5. Send a test message!

chatSampleFunctionTaggingREADME.md1 match

@webup•Updated 1 year ago
1Migrated from folder: openai/samples/functions/chatSampleFunctionTagging

chatSampleFunctionExtractionREADME.md1 match

@webup•Updated 1 year ago
1Migrated from folder: openai/samples/functions/chatSampleFunctionExtraction

chatSampleFunctionMultipleREADME.md1 match

@webup•Updated 1 year ago
1Migrated from folder: openai/samples/functions/chatSampleFunctionMultiple

schemasWeatherREADME.md1 match

@webup•Updated 1 year ago
1Migrated from folder: openai/samples/functions/schemasWeather

chatSampleFunctionSingleREADME.md1 match

@webup•Updated 1 year ago
1Migrated from folder: openai/samples/functions/chatSampleFunctionSingle

thisExpressURLREADME.md1 match

@stevekrouse•Updated 1 year ago
6
7```js
8function testThisExpressUrl(req, res) {
9 let url = @stevekrouse.thisExpressURL();
10 res.send(`<a href="${url}">${url}</a>`);

publishYoutubeToLemmyREADME.md1 match

@pdebie•Updated 1 year ago
6
7```typescript
8async function publishMyFeed() {
9 try {
10 return @pdebie.publishYoutubeToLemmy({

resyBotREADME.md1 match

@vtdocs•Updated 1 year ago
11import { email } from "https://esm.town/v/std/email?v=13";
12
13export default async function (interval: Interval) {
14 const bookingInfo = await resyBot( {
15 slug: 'amaro-bar',

pugREADME.md1 match

@wilt•Updated 1 year ago
1# Pug HTML Template Renderer
2This function is equivalent to [`pug.render`](https://pugjs.org/api/reference.html#pugrendersource-options-callback) - it takes a Pug template string and renders it to an HTML string. `import(npm:pug)` doesn't work in Val.Town due to Pug's usage of `new Function`, which is forbidden for security reasons, so this function uses Val.Town's `eval` API instead.
3
4## Example

getFileEmail4 file matches

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

tuna8 file matches

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