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/$%7Bart_info.art.src%7D?q=image&page=547&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 6501 results for "image"(2971ms)

web_Fdwbcen36vmain.tsx1 match

@dhvanil•Updated 6 months ago
23 height: 70vh;
24 border: 2px solid;
25 border-image: linear-gradient(45deg, #ff1b6b, #45caff) 1;
26 position: relative;
27 box-shadow: 0 0 20px #ff1b6b, inset 0 0 20px #45caff;

sqliteExplorerAppREADME.md1 match

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

web_aoEiUErLLmmain.tsx1 match

@dhvanil•Updated 6 months ago
75 width: 100%;
76 height: 100%;
77 background: url('https://images.unsplash.com/photo-1506318137071-a8e063b4bec0?auto=format&fit=crop&w=1950&q=80') center/cover;
78 opacity: 0.3;
79 z-index: -1;

xmasRedHamstermain.tsx9 matches

@trollishka•Updated 6 months ago
11
12 try {
13 const imageUrl = await getMostPopularPinterestImage(query);
14 return new Response(JSON.stringify({ image: imageUrl }), {
15 headers: {
16 "Content-Type": "application/json",
26}
27
28async function getMostPopularPinterestImage(query: string): Promise<string> {
29 const searchUrl = `https://api.pinterest.com/v5/search/pins?query=${encodeURIComponent(query)}&page_size=50&sort_order=popularity`;
30 const response = await fetch(searchUrl, {
46 const mostPopularPin = sortedPins[0];
47
48 if (mostPopularPin.images) {
49 // Get the largest available image
50 const images = mostPopularPin.images;
51 const largestImage = images[images.length - 1];
52 return largestImage.url;
53 }
54 }
55
56 throw new Error("No popular image found");
57}

xmasRedHamstermain.tsx9 matches

@stevekrouse•Updated 6 months ago
11
12 try {
13 const imageUrl = await getMostPopularPinterestImage(query);
14 return new Response(JSON.stringify({ image: imageUrl }), {
15 headers: {
16 "Content-Type": "application/json",
26}
27
28async function getMostPopularPinterestImage(query: string): Promise<string> {
29 const searchUrl = `https://api.pinterest.com/v5/search/pins?query=${encodeURIComponent(query)}&page_size=50&sort_order=popularity`;
30 const response = await fetch(searchUrl, {
46 const mostPopularPin = sortedPins[0];
47
48 if (mostPopularPin.images) {
49 // Get the largest available image
50 const images = mostPopularPin.images;
51 const largestImage = images[images.length - 1];
52 return largestImage.url;
53 }
54 }
55
56 throw new Error("No popular image found");
57}

val_Lp66OGSTA8main.tsx1 match

@dhvanil•Updated 6 months ago
4 // Execute the code directly and capture its result
5 const result = await (async () => {
6 // Create a pixel art cat inspired by the pixel art shown in the reference image
7const pixelKitty = `
8 ▄ ▄

val_FASG6Vrgm2main.tsx1 match

@dhvanil•Updated 6 months ago
4 // Execute the code directly and capture its result
5 const result = await (async () => {
6 // Create a pixel art cat inspired by the pixel art shown in the reference image
7const pixelKitty = `
8 ▄▄ ▄▄

val_9knOr9vyzBmain.tsx1 match

@dhvanil•Updated 6 months ago
4 // Execute the code directly and capture its result
5 const result = await (async () => {
6 // Create a pixel art style cat similar to the image
7const pixelCat = `
8 ╭━━━━━╮

web_mBvDDUywvrmain.tsx1 match

@dhvanil•Updated 6 months ago
39 <h1>🚀 Awesome Website</h1>
40 <p>Created to make your day a little more colorful!</p>
41 <img src="https://picsum.photos/300/200" alt="Random Cool Image">
42 </div>
43</body>

generateframeImageREADME.md1 match

@stevekrouse•Updated 6 months ago
1# Gathers information and returns an image of this val
2
3### Why

gpt-image-test1 file match

@CaptainJack•Updated 17 hours ago
测试 gpt image 的不同 api 能否满足图片生成要求

image-inpainting1 file match

@themichaellai•Updated 3 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