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=588&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 6021 results for "image"(695ms)

twitterOpenGraphImagemain.tsx2 matches

@panphoraUpdated 1 year ago
1import process from "node:process";
2
3export let twitterOpenGraphImage = (async (req: Request) => {
4 const query = new URL(req.url).searchParams;
5 const site = query.get("site");
60 return new Response(screenshotBuffer, {
61 headers: {
62 "Content-Type": "image/png",
63 "Content-Length": screenshotBuffer.length,
64 },

umbrellaReminderREADME.md1 match

@willthereaderUpdated 1 year ago
1# ☔️ Umbrella reminder if there's rain today
2
3![Screenshot 2023-09-14 at 12.31.32.png](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/d82916ca-f8d9-4b49-88c6-420ab67a7700/public)
4
5## Setup

docFeedbackFormREADME.md1 match

@timlinUpdated 1 year ago
7This feedback form is linked on our docs site.
8
9![Screenshot 2023-09-07 at 14.24.25@2x.png](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/eec56deb-a070-4d34-f040-c9e55e065e00/public)
10
11This val renders an HTML form, including pre-fills the user's email address if they've submitted the form in the past (via a cookie), and pre-fills the URL by grabbing it out of the query params.

checkBPPRequirementREADME.md2 matches

@lbb00Updated 1 year ago
4
5```
6https://api.val.town/v1/run/lbb00.checkBPPRequirement?args=[imageUrl,minDisplayWidth,minDisplayHeight]
7```
8
9[Example](https://api.val.town/v1/run/lbb00.checkBPPRequirement?args=[%22https://images.tusiassets.com/models/600411993916047362/P-xfmxxeYNrnq6fYtRo79.jpeg!mfit_w480_h480_jpg_webp%22,320,320])
10
11Migrated from folder: Demo/checkBPPRequirement

smileyPNGREADME.md1 match

@triptychUpdated 1 year ago
3This tiny smiley face is rendered by this val: ![](https://maxm-smileypng.web.val.run/-.png)
4
5The image response is cached by the CDN, so make sure to change the image name if you make code changes. Any name with a `.png` extension will work: https://maxm-smileypng.web.val.run/-.png

nftImageREADME.md4 matches

@jamiedubsUpdated 1 year ago
1returns image URL (and only image URL) for a given NFT contract + tokenId. Uses Alchemy's NFT API
2
3to this use val, copy the [Web API](https://docs.val.town/api/web) endpoint and use ?query params to specify the contract address and tokenId you want:
4
5<https://jamiedubs-nftimage.web.val.run/?contractAddress=0x3769c5700Da07Fe5b8eee86be97e061F961Ae340&tokenId=666> - FIXME valtown is turning & into "&amp;", you need to fix it. [even like this broken](https://jamiedubs-nftimage.web.val.run/?contractAddress=0x3769c5700Da07Fe5b8eee86be97e061F961Ae340&tokenId=666)
6
7plain text by default. for JSON add [&format=json](https://jamiedubs-nftimage.web.val.run/?contractAddress=0x3769c5700Da07Fe5b8eee86be97e061F961Ae340&tokenId=666&format=json), for an `<img>` tag use [&format=html](https://jamiedubs-nftimage.web.val.run/?contractAddress=0x3769c5700Da07Fe5b8eee86be97e061F961Ae340&tokenId=666&format=html)
8
9for other NFT metadata: https://www.val.town/v/jamiedubs.nftMetadata
11
12
13Migrated from folder: NFTs/nftImage

miniWidgetREADME.md1 match

@wiltUpdated 1 year ago
3Because this PWA isn't published to the Microsoft Store, if you want to try this out for yourself you'll first need to install [WinAppSDK version >= 1.2](https://learn.microsoft.com/en-us/windows/apps/windows-app-sdk/downloads), enable Developer Mode in settings following the instructions [here](https://learn.microsoft.com/en-us/microsoft-edge/progressive-web-apps-chromium/how-to/widgets#install-winappsdk-and-enable-developer-mode), and visit https://wilt-miniWidget.web.val.run to install using a recent version of Edge.
4
5![Screenshot 2023-09-28 193245.png](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/50609d94-289f-4aff-1d7b-b466d2f4ac00/public)
6

canvasTextREADME.md1 match

@panphoraUpdated 1 year ago
1# Generate an open graph image on-the-fly.
2
3(Required) Query parameters: img, headline, subheadline, bubbleHeadline1, bubbleText1, bubbleHeadline2, bubbleText2, bubbleHeadline3, bubbleText3

docFeedbackFormREADME.md1 match

@parkerdavisUpdated 1 year ago
7This feedback form is linked on our docs site.
8
9![Screenshot 2023-09-07 at 14.24.25@2x.png](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/eec56deb-a070-4d34-f040-c9e55e065e00/public)
10
11This val renders an HTML form, including pre-fills the user's email address if they've submitted the form in the past (via a cookie), and pre-fills the URL by grabbing it out of the query params.

retroVisitCounterREADME.md1 match

@maxmUpdated 1 year ago
5How special!
6
7Want a retro visitor counter for your myspace page or geocities website? Fork this val and add the image link to your website:
8
9```

brainrot_image_gen1 file match

@dcm31Updated 6 days ago
Generate images for Italian Brainrot characters using FAL AI

modifyImage2 file matches

@stevekrouseUpdated 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