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=574&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 6019 results for "image"(1082ms)

codeOnValTownREADME.md1 match

@andreterron•Updated 1 year ago
1# Code on Val Town
2
3![Screenshot 2024-02-27 at 1.25.46 PM.png](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/6b67bb0a-d80f-4f3d-5b17-57b5378b3e00/public)
4
5Adds a "Code on Val Town" ribbon to your page. This lets your website visitors navigate to the code behind it.

refreshAnimalWidgetmain.tsx1 match

@crsven•Updated 1 year ago
19 newState.layouts.hello_small.styles.colors.text.color = colorCombo.text;
20 newState.layouts.hello_small.layers[2].rows[0].cells[0].text.string = message;
21 newState.layouts.hello_small.layers[0].rows[0].cells[0].image.url = photoUrl;
22 await set("animalWidgetJson", newState);
23};

refreshAnimalWidgetPicturemain.tsx1 match

@crsven•Updated 1 year ago
5 const photoUrl = await getBirdPhotoUrl(scientificName);
6 const newState = { ...animalWidgetJson };
7 newState.layouts.hello_small.layers[0].rows[0].cells[0].image.url = photoUrl;
8 animalWidgetJson = newState;
9};

smileyPNGmain.tsx6 matches

@maxm•Updated 1 year ago
1export const smileyPNG = async (request: Request) => {
2 const { encode } = await import("https://deno.land/x/pngs/mod.ts");
3 // Dimensions of the image
4 const [width, height] = [10, 10];
5 // Create our PNG canvas
6 const imageData = new Uint8Array(width * height * 4);
7 const y = [255, 255, 0, 255]; // Yellow
8 const b = [0, 0, 0, 255]; // Black
21 t, t, y, y, y, y, y, y, t, t,
22 ];
23 // Move around the bytes and encode the image
24 const smileyFaceData = [].concat(...smileyFace);
25 for (let i = 0; i < width * height * 4; i++) {
26 imageData[i] = smileyFaceData[i];
27 }
28 const png = encode(imageData, 10, 10);
29 return new Response(png, { headers: { "Content-Type": "image/png" } });
30};

muxWebhookHandlerREADME.md1 match

@mmcc•Updated 1 year ago
1A val that you can set up as your webhook endpoint for Mux.com to use CLIP for moderation. This is attempting to use the storyboard image, but so far the results seem pretty subpar.

uploadByURLmain.tsx1 match

@stevedylandev•Updated 1 year ago
23 }
24
25 uploadByURL("https://imagedelivery.net/BXluQx4ige9GuW0Ia56BHw/a7c16ab0-31fd-406a-87f3-0da1b41a4000/original")

sqliteExplorerAppREADME.md1 match

@nbbaier•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

svdmain.tsx2 matches

@fal•Updated 1 year ago
2
3export let sd_video = async (
4 image_url: string,
5 motion_bucket_id: number = 127,
6 cond_aug: number = 0.02,
11 return await fal.subscribe("fal-ai/fast-svd", {
12 input: {
13 image_url: image_url,
14 motion_bucket_id: motion_bucket_id,
15 cond_aug: cond_aug,

creative_upscalermain.tsx3 matches

@fal•Updated 1 year ago
3export let creativeUpscaler = async (
4 prompt: string,
5 image_url: string,
6 creativity: number = 0.5,
7 detail: number = 1,
13 num_inference_steps: number = 20,
14 enable_safety_checks: boolean = true,
15): Promise<{ image: { url: string } }> => {
16 return await fal.subscribe("fal-ai/creative-upscaler", {
17 input: {
18 prompt: prompt,
19 image_url: image_url,
20 creativity: creativity,
21 detail: detail,

svdREADME.md1 match

@fal•Updated 1 year ago
8const result = await fal.subscribe("fal-ai/fast-svd", {
9 input: {
10 image_url: "https://storage.googleapis.com/falserverless/model_tests/svd/rocket.png"
11 },
12 logs: true,

brainrot_image_gen1 file match

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

modifyImage2 file matches

@stevekrouse•Updated 6 days ago
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