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/$%7Burl%7D?q=image&page=740&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 7782 results for "image"(1559ms)

modifyImageREADME.md3 matches

@stevekrouse•Updated 1 year ago
1Code from https://deno.com/blog/build-image-resizing-api
2
3Useful for compressing an image before sending to chatgpt4v, for example
4
5Migrated from folder: Archive/modifyImage

compress_image_demoREADME.md1 match

@stevekrouse•Updated 1 year ago
1Migrated from folder: Archive/compress_image_demo

blob_adminREADME.md1 match

@curtcox•Updated 1 year ago
3This is a lightweight Blob Admin interface to view and debug your Blob data.
4
5![b7321ca2cd80899250589b9aa08bc3cae9c7cea276282561194e7fc537259b46.png](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/311a81bb-18d8-4583-b7e3-64bac326f700/public)
6
7Forl this val to install:

fileToDataURLREADME.md7 matches

@stevekrouse•Updated 1 year ago
2
3Helpers to convert files to base64 & base64-encoded data URLs,
4which are particularly helpful for sending images to LLMs
5like ChatGPT, Anthropic, and Google.
6
25 role: "user",
26 content: [{
27 type: "image_url",
28 image_url: {
29 url: dataURL,
30 },
54 "content": [
55 {
56 "type": "image",
57 "source": {
58 "type": "base64",
80import { fileToBase64 } from "https://esm.town/v/stevekrouse/fileToDataURL";
81
82const base64Image = await fileToBase64(image);
83
84const result = await model.generateContent([
86 {
87 inlineData: {
88 data: base64Image,
89 mimeType: image.type,
90 },
91 },

water_plant_botREADME.md1 match

@stevekrouse•Updated 1 year ago
3Every Monday at 9am EDT send a message to our team's Discord channel to remind us to water our plant.
4
5![Screenshot 2024-04-17 at 11.53.31.png](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/49477876-1b12-4303-9a36-9736baa22f00/public)
6
7

valTownInspirationEmailmain.tsx1 match

@ivryb•Updated 1 year ago
11 let html = `<h1>${valTownInspo.title}</h1>
12 <p>${valTownInspo.description}</p>
13 <a href="https://val.town/${valTownInspo.val}"><img src="${valTownInspo.image}" style="max-width:576px"/></a>
14 <p><a href="https://www.val.town/settings/intervals">Unsubscribe here</a></p>`;
15

oliveMarmotREADME.md1 match

@generatecoll•Updated 1 year ago
3Every weekday at 9am EDT send a message to our team's #engineering Discord channel to start a thread to remind us to do our standup.
4
5![Screenshot 2024-03-14 at 09.27.26.png](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/c5309028-4983-4a27-1aab-0e2bb0fc1800/public)
6
7Slack version: @mikker/dailySlackRoundup

prism_feature_notificationsREADME.md1 match

@stevekrouse•Updated 1 year ago
6
7Here's an example email from this Val:
8![Screenshot 2024-04-04 at 15.41.34.png](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/c1377e35-446d-4c41-86e2-8b2447cf5100/public)
9
10Every time you run it, you'll get a different feature. By default, this uses the `lg-v3-x1` model, which I think is a good one to start with, but this may change in the future as I train better feature dictionaries!

fileInputUploadExamplemain.tsx1 match

@stevekrouse•Updated 1 year ago
6 c.html(
7 <form action="/" method="post" enctype="multipart/form-data">
8 <input type="file" accept="image/*" name="file">Upload photo</input>
9 <button type="submit">Submit</button>
10 </form>,

telemetryREADME.md1 match

@saolsen•Updated 1 year ago
3Telemetry is a library that lets you trace val town executions with opentelemetry. All traces are stored in val.town sqlite and there is an integrated trace viewer to see them.
4
5![image.png](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/0d340f38-9e4e-47fd-24a8-2d7425b88900/public)
6
7## Quickstart

ImageExplorer10 file matches

@carmi•Updated 3 days ago

Imagetourl2 file matches

@dcm31•Updated 6 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