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=285&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"(466ms)

companyREADME.md1 match

@stevekrouse•Updated 1 year ago
3This val forwards emails to addresses that don't exist to all of us at Val Town. For example, this forwards `feedback@val.town` to all of us. We achieve this by forwarding emails to this email handler, and this email handler forwards them along.
4
5![Screenshot 2024-02-16 at 10.03.59.png](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/ed84d865-20b1-49b1-946d-4d836c902600/public)
6
7To accomplish this without Val Town would require setting up a Google Group. I prefer doing it in code. Over time we will have more complex routing here.

getMemain.tsx1 match

@stevekrouse•Updated 1 year ago
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
2
3export function getMe(): Promise<{ username: string; id: string; profileImageUrl; bio: string }> {
4 return fetchJSON("https://api.val.town/v1/me", {
5 headers: {

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};

spotifyScopesmain.tsx1 match

@stevekrouse•Updated 1 year ago
1export const scopes = [
2 "ugc-image-upload",
3 "user-read-playback-state",
4 "user-modify-playback-state",

auth_middlewareREADME.md1 match

@stevekrouse•Updated 1 year ago
3Guards your public http vals behind a login page.
4
5![c2a79825e9d89429014a036c29887c670806ee3f0188e01cde09adad193a6407.png](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/50010001-4e67-4769-33a5-47ec32a3bb00/public)
6
7This val use a json web token stored as an http-only cookie to persist authentication.

vscodeREADME.md1 match

@pomdtr•Updated 1 year ago
3Just fork this val to install it, and authenticate with your account email.
4
5![image.png](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/9a0375dd-5461-4ac2-e7b3-b023e6590900/public)
6
7

valTownInspirationEmailmain.tsx1 match

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

untitled_indigoNightingaleREADME.md1 match

@stevekrouse•Updated 1 year ago
3This is a lightweight Blob Admin interface to view and debug your Blob data.
4
5![Screenshot 2023-12-13 at 12.51.53.png](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/1fea7162-8c9d-4e93-b153-9bcf971ef800/public)
6
7To use it on your own Val Town Blob Storage, [fork it](https://www.val.town/v/stevekrouse/blob_admin/fork) to your account.

imagescriptExamplexmain.tsx4 matches

@tmcw•Updated 1 year ago
1export let imagescriptExamplex = (async () => {
2 const { Image } = await import(
3 "https://deno.land/x/imagescript@1.2.15/mod.ts"
4 );
5 const circle = await Image.renderSVG(`<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10">
6 <circle x="5" y="5" r="3" />
7 </svg>`);

sqlite_adminREADME.md1 match

@stevekrouse•Updated 1 year ago
3This is a lightweight SQLite Admin interface to view and debug your SQLite data.
4
5![Screenshot 2023-12-08 at 13.35.04.gif](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/ee9a9237-96a0-4276-60b5-aa8c56e49800/public)
6
7It's currently super limited (no pagination, editing data, data-type specific viewers), and is just a couple dozens lines of code over a couple different vals. Forks encouraged! Just comment on the val if you add any features that you want to share.

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