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=image&page=1&format=json

For typeahead suggestions, use the /typeahead endpoint:

https://codesearch.val.run/typeahead?q=image

Returns an array of strings in format "username" or "username/projectName"

Found 12680 results for "image"(964ms)

OpenAI352 words

https://docs.val.town/std/openai/
console.log(completion.choices[0].message.content); Images. Section titled “Images” To send an image to ChatGPT, the easiest way is by converting it to a data URL, which is easiest to do with @stevekrouse/fileToDataURL. Image

Sections

Images

Images. Section titled “Images” To send an image to ChatGPT, the easiest way is by converting it to a data URL, which is easiest to do with @stevekrouse/fileToDataURL. Image ExampleRun

Blob Storage414 words

https://docs.val.town/std/blob/
comes with blob storage built-in. It allows for storing any data, like text, JSON, or images. You can access it via std/blob. Blob storage is scoped globally to your account.

Sections

Blob Storage

comes with blob storage built-in. It allows for storing any data, like text, JSON, or images. You can access it via std/blob. Blob storage is scoped globally to your account.

Web scraping439 words

https://docs.val.town/guides/web-scraping/
outperform humans at most economically valuable work".[10] OpenAI has developed several large language models, advanced image generation models, and previously, also open-source models.[11][12] API call to external services. Section titled

Sections

Parsing HTML

outperform humans at most economically valuable work".[10] OpenAI has developed several large language models, advanced image generation models, and previously, also open-source models.[11][12]

Saving data from a web page521 words

https://docs.val.town/guides/saving-data-from-a-web-page/
has two built-in: Blob storage is a very simple key-value store for storing files, JSON, images, large blobs of data, while SQLite is a SQL database with ACID transactions, indexes,

Sections

Saving data from a web page

has two built-in: Blob storage is a very simple key-value store for storing files, JSON, images, large blobs of data, while SQLite is a SQL database with ACID transactions, indexes,

Upgrade to Deno728 words

https://docs.val.town/upgrading/upgrade-to-deno/
for the browser-standard Response type that is the result of a fetch request. The following image shows all three types used in parallel: req.body is no longer overloaded by req.query.

Sections

ExpressJS types moved to express namespace

for the browser-standard Response type that is the result of a fetch request. The following image shows all three types used in parallel:

JavaScript SDK409 words

https://docs.val.town/api/sdk/
and get your profile information: Running index.mjs and getting profile information node index.mjs. { id: '19892fed-baf3-41fb-a5cc-96c80e95edec', bio: '👷 Building Val Town', username: 'tmcw', profileImageUrl: 'https://img.clerk.com/eyJ0eXBl…', tier: 'pro', email: 'tom@macwright.com'. }

Sections

Getting started in Node.js

and get your profile information: Running index.mjs and getting profile information node index.mjs. { id: '19892fed-baf3-41fb-a5cc-96c80e95edec', bio: '👷 Building Val Town', username: 'tmcw', profileImageUrl: 'https://img.clerk.com/eyJ0eXBl…', tier: 'pro', email: 'tom@macwright.com'. }

Permissions935 words

https://docs.val.town/reference/permissions/
(req.get("auth") !== process.env.clerkNonSensitive). return res.end("Unauthorized"); await discordWebhook({ url: Deno.env.get("discordUserEvents"), content: req.body.data.email_addresses[0].email_address + " " + req.body.data.profile_image_url, }); res.end("Success"); } I call this value clerkNonSensitive because this value doesn’t protect any

Sections

Custom Authentication

(req.get("auth") !== process.env.clerkNonSensitive). return res.end("Unauthorized"); await discordWebhook({ url: Deno.env.get("discordUserEvents"), content: req.body.data.email_addresses[0].email_address + " " + req.body.data.profile_image_url, }); res.end("Success"); } I call this value clerkNonSensitive because this value doesn’t protect any

eventsCalendarREADME.md1 match

@roopUpdated 1 hour ago
9ability to munge an arbitrary event webpage → structured data → Notion db.
10
11![seq6.png](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/a3ae2e63-e781-4d81-835b-42ae1ba30700/public)
12
13[(source)](https://mermaid.live/edit#pako:eNplkt1um0AQRl9lNFetAm4cjKGoddWfqGqkJpFi9aLiZg1jTMPukN2hbmr53bsbnLSN2Qt24TtzZgQ7rLgmLNDR3UCmok-taqzSpQF_fWC-1crediTxYnHyTXWw5K0p4PP5El69G2z39o1jTUA_yQhsadWrhhYj_JgO5EVrlKdIQDYEnoOKjQRGOQiG2gdHLERjz8R_bV8PgSdozXZUHpuuejLvv3jX9TJOY6MMw7aVDbh7J6Sht6x7gZNDx_-rR_aZ3IkdKhks1VArUfDi4ubqEnj1Y6wrrXQUhZGi8N5vSaqXx31dsrTsy7XGkRV_E4bz0IODejXGx8gzvSU3dMdz_pPouDmkwNd0d10rVBqMsLFtjYVvnyLUZLUKR9yFWiX676CpxMJva1qr4MDS7D3WK_OdWT-Slodmg8Vadc6fhj4MefhJnp5aMjXZjzwYwWI2faiBxQ5_YTGdzydJliZJOsv9Ss7yCO-xyLNJPpumZ8k8y7PXp_l8H-HvB-vpJM_S_R_n7te3)

TopTenVideosoutput-generator.js5 matches

@pmapowerUpdated 2 hours ago
147 */
148 generateBasicAd(ad) {
149 if (!ad.imageUrl && !ad.clickUrl && !ad.title) return '';
150
151 const wrapperStart = ad.clickUrl ?
166 <div class="text-center">
167 ${ad.title ? `<h3 class="text-xl font-semibold text-gray-800 mb-4">${ad.title}</h3>` : ''}
168 ${ad.imageUrl ? `
169 <div class="mb-4">
170 <img src="${ad.imageUrl}"
171 alt="${ad.title || 'Advertisement'}"
172 class="max-w-full h-48 object-contain mx-auto rounded-lg shadow-sm"
405 <div class="text-center">
406 \${ad.title ? \`<h3 class="text-xl font-semibold text-gray-800 mb-4">\${ad.title}</h3>\` : ''}
407 \${ad.imageUrl ? \`
408 <div class="mb-4">
409 <img src="\${ad.imageUrl}"
410 alt="\${ad.title || 'Advertisement'}"
411 class="max-w-full h-48 object-contain mx-auto rounded-lg shadow-sm"

ImageThing

@refactorizedUpdated 2 days ago

Gemini-Image-Banana-012 file matches

@aibotcommanderUpdated 3 days ago
Chrimage
Atiq
"Focal Lens with Atig Wazir" "Welcome to my photography journey! I'm Atiq Wazir, a passionate photographer capturing life's beauty one frame at a time. Explore my gallery for stunning images, behind-the-scenes stories, and tips & tricks to enhance your own