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=283&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 2905 results for "image"(297ms)

compress_image_demoREADME.md1 match

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

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

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>,

code_search_is_easyREADME.md2 matches

@stevekrouse•Updated 1 year ago
5As Val Town's [most active user](https://www.val.town/v/pomdtr/leaderboard) (behind Steve Krouse, one of the founders of Val Town), I for sure agree with Tom that search feature of Val Town needs improvements. But while reading his post, I immediately thought of a different approach to the problem. And a few hours later, [Val Town Search](https://val-town-search.pomdtr.me/) was born.
6
7![image.png](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/aedc62e9-afd9-4610-a2aa-58dd0a35a200/public)
8
9## Do things that don't scale
22Does it work better than the current search feature of Val Town? Absolutely!
23
24![image.png](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/39879ddb-0884-4216-102f-2c178f9c6900/public)
25
26I hope that the val.town engineers will come up with a search feature that will put my little project to shame. But for now, you won't find a better way to search for vals than [Val Town Search](https://val-town-search.pomdtr.me/).

harlequinEmuREADME.md1 match

@stevekrouse•Updated 1 year ago
3View and interact with your Val Town SQLite data. It's based off Steve's excellent [SQLite Admin](https://www.val.town/v/stevekrouse/sqlite_admin?v=46) val, adding the ability to run SQLite queries directly in the interface. This new version has a revised UI and that's heavily inspired by [LibSQL Studio](https://github.com/invisal/libsql-studio) by [invisal](https://github.com/invisal). This is now more an SPA, with tables, queries and results showing up on the same page.
4
5![image.webp](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/c8e102fd-39ca-4bfb-372a-8d36daf43900/public)
6
7## Install

salmonCrabREADME.md1 match

@stevekrouse•Updated 1 year ago
3View and interact with your Val Town SQLite data. It's based off Steve's excellent [SQLite Admin](https://www.val.town/v/stevekrouse/sqlite_admin?v=46) val, adding the ability to run SQLite queries directly in the interface. This new version has a revised UI and that's heavily inspired by [LibSQL Studio](https://github.com/invisal/libsql-studio) by [invisal](https://github.com/invisal). This is now more an SPA, with tables, queries and results showing up on the same page.
4
5![image.webp](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/c8e102fd-39ca-4bfb-372a-8d36daf43900/public)
6
7## Install

discordClerkWebhookHandlerExamplemain.tsx1 match

@maxm•Updated 1 year ago
12 content: body.data.email_addresses[0].email_address
13 + " "
14 + body.data.profile_image_url,
15 });
16 return new Response("Success");

amaranthYakREADME.md1 match

@stevekrouse•Updated 1 year ago
3View and interact with your Val Town SQLite data. It's based off Steve's excellent [SQLite Admin](https://www.val.town/v/stevekrouse/sqlite_admin?v=46) val, adding the ability to run SQLite queries directly in the interface. This new version has a revised UI and that's heavily inspired by [LibSQL Studio](https://github.com/invisal/libsql-studio) by [invisal](https://github.com/invisal). This is now more an SPA, with tables, queries and results showing up on the same page.
4
5![image.webp](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/c8e102fd-39ca-4bfb-372a-8d36daf43900/public)
6
7## Install

brainrot_image_gen1 file match

@dcm31•Updated 3 days ago
Generate images for Italian Brainrot characters using FAL AI

modifyImage2 file matches

@stevekrouse•Updated 3 days ago