dynamicLavenderBeetleREADME.md3 matches
11## Example
12This val tracks mentions of "Val Town" and related terms, excluding noise like retweets and irrelevant accounts. Notifications are sent to a Discord webhook but can be easily reconfigured for other platforms.
13<img src="https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/85912106-f625-443e-5321-6e2699453200/public" width="500"/>
14To see exactly how we use this template at Val Town: https://www.val.town/v/stevekrouse/twitterAlert
15
20### 1. Fork this Val
21To use this template, fork this val on the top right corner of this page.
22
2324### 2. View Source Code
25<em>The `CODE` box shows you the the full source code of this val, you may need to scroll down to see it.</em>
26
2728### 3. Customize Query
hopefulApricotSparrowREADME.md3 matches
11## Example
12This val tracks mentions of "Val Town" and related terms, excluding noise like retweets and irrelevant accounts. Notifications are sent to a Discord webhook but can be easily reconfigured for other platforms.
13<img src="https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/85912106-f625-443e-5321-6e2699453200/public" width="500"/>
14To see exactly how we use this template at Val Town: https://www.val.town/v/stevekrouse/twitterAlert
15
20### 1. Fork this Val
21To use this template, fork this val on the top right corner of this page.
22
2324### 2. View Source Code
25<em>The `CODE` box shows you the the full source code of this val, you may need to scroll down to see it.</em>
26
2728### 3. Customize Query
133transform: scaleX(1);
134transform-origin: center;
135background-image: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
136background-clip: text;
137background-size: 300% 300%;
111// bio: "🕳️",
112// username: "maxm",
113// profileImageUrl: "...",
114// url: "https://www.val.town/u/maxm",
115// tier: "pro",
valSessionmain.tsx1 match
111// bio: "🕳️",
112// username: "maxm",
113// profileImageUrl: "...",
114// url: "https://www.val.town/u/maxm",
115// tier: "pro",
tldraw_computer_examplemain.tsx3 matches
16};
1718type ImageData = {
19type: "image";
20text: string;
21name?: string | undefined;
48};
4950export type Data = BooleanData | TextData | ImageData | SpeechData | WebsiteData | FileData;
5152type DataComponentRequestBody = {
cerebras_codermain.tsx1 match
1165<meta property="og:description" content="Turn your ideas into fully functional apps in less than a second – powered by Llama3.3-70b on Cerebras's super-fast wafer chips. Code is 100% open-source, hosted on Val Town."">
1166<meta property="og:type" content="website">
1167<meta property="og:image" content="https://stevekrouse-blob_admin.web.val.run/api/public/CerebrasCoderOG.jpg">
1168
1169
textToSixImageGeneratormain.tsx30 matches
5function App() {
6const [prompt, setPrompt] = useState("");
7const [images, setImages] = useState<string[]>([]);
8const [isLoading, setIsLoading] = useState(false);
9const [error, setError] = useState<string | null>(null);
1011const generateImages = async (e: React.FormEvent) => {
12e.preventDefault();
13if (!prompt.trim()) {
1718setIsLoading(true);
19setImages([]);
20setError(null);
2122try {
23// Create variations by adding unique modifiers to each image generation
24const variations = [
25"artistic style",
31];
3233const imagePromises = variations.map(variation =>
34fetch(`https://maxm-imggenurl.web.val.run/${encodeURIComponent(`${prompt} - ${variation}`)}`)
35.then(res => {
36if (!res.ok) throw new Error('Image generation failed');
37return res.url;
38})
39);
4041const generatedImages = await Promise.all(imagePromises);
42setImages(generatedImages);
43} catch (error) {
44console.error("Image generation failed", error);
45setError(error instanceof Error ? error.message : "Failed to generate images");
46} finally {
47setIsLoading(false);
49};
5051const downloadImage = (imageUrl: string, index: number) => {
52const link = document.createElement('a');
53link.href = imageUrl;
54link.download = `generated-image-${index + 1}.jpg`;
55link.click();
56};
58return (
59<div style={styles.container}>
60<h1 style={styles.title}>🖼️ Text to 6 Unique Images Generator</h1>
61<form onSubmit={generateImages} style={styles.form}>
62<input
63type="text"
64value={prompt}
65onChange={(e) => setPrompt(e.target.value)}
66placeholder="Describe the image variations you want to create"
67style={styles.input}
68/>
72style={styles.button}
73>
74{isLoading ? "Generating..." : "Generate 6 Unique Images"}
75</button>
76</form>
82)}
8384{isLoading && <p style={styles.loading}>⏳ Generating unique images...</p>}
85
86<div style={styles.imageGrid}>
87{images.map((imageUrl, index) => (
88<div key={index} style={styles.imageContainer}>
89<img
90src={imageUrl}
91alt={`Generated unique image ${index + 1}`}
92style={styles.image}
93/>
94<button
95onClick={() => downloadImage(imageUrl, index)}
96style={styles.downloadButton}
97>
103
104<p style={styles.description}>
105Each image is a unique interpretation of your prompt
106</p>
107
169fontSize: '1.2rem',
170},
171imageGrid: {
172display: 'grid',
173gridTemplateColumns: 'repeat(auto-fit, minmax(200px, 1fr))',
174gap: '15px',
175},
176imageContainer: {
177position: 'relative',
178display: 'flex',
180alignItems: 'center',
181},
182image: {
183width: '100%',
184height: '250px',
214<html>
215<head>
216<title>6 Unique Images Generator</title>
217<meta name="viewport" content="width=device-width, initial-scale=1">
218<style>
1Fetches details about media files (images, video, audio, etc) using [Mediainfo.js](https://mediainfo.js.org/). e.g. codecs used, duration, file sizes, ID3 tags, etc. Check out https://jamiedubs-mediainfo.web.val.run/ for a little interactive example
23Beta! API response not 100% stable, I might move things around still. Especially this `summary` field idea
twitterAlertREADME.md2 matches
11## Example
12This example tracks mentions of "valtown" and related terms, excluding noise like retweets and irrelevant accounts. Notifications are sent to a Discord webhook but can be easily reconfigured for other platforms.
13<img src="https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/85912106-f625-443e-5321-6e2699453200/public" width="500"/>
1415---
19### 1. Fork this Val
20To use this template, fork this val on the top right corner of this page.
21
2223### 2. Customize Query