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
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
131 <meta property="og:description" content="Turn your startup ideas into fully functional apps in less than a second – powered by AI innovation.">
132 <meta property="og:type" content="website">
133 <meta property="og:image" content="https://stevekrouse-blob_admin.web.val.run/api/public/52StartupsCoder.jpg">
134
135 <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/toastify-js/src/toastify.min.css">
79 <body>
80 <h1>SVG Generator</h1>
81 <p>This website generates simple SVG images based on your text input using AI. Enter a description, and we'll create a 200x200 pixel SVG image for you!</p>
82 <form id="svgForm" action="${url.pathname}" method="get">
83 <label for="text">Enter your image description:</label>
84 <input type="text" id="text" name="text" required placeholder="e.g., A smiling sun with sunglasses">
85 <input type="submit" id="submitBtn" value="Generate SVG">
86 <span id="loadingIndicator" class="loading"></span>
87 </form>
88 <p>After submitting, you'll be redirected to a page displaying your generated SVG image.</p>
89 <p><small>View source: <a href="${import.meta.url.replace("esm.town", "val.town")}" target="_top">Val Town</a></small></p>
90 <script>
121 const completion = await openai.chat.completions.create({
122 messages: [
123 { role: "system", content: "You are a helpful assistant that generates simple SVG images based on text input. Return only valid SVG code wrapped in ```xml tags without any explanation." },
124 { role: "user", content: `Generate a simple SVG image for: ${text}. The SVG should be 200x200 pixels. Wrap the SVG content in \`\`\`xml tags.` },
125 ],
126 model: "gpt-4o-mini",
146 return new Response(svgContent, {
147 headers: {
148 "Content-Type": "image/svg+xml",
149 "Cache-Control": "no-cache",
150 },
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
6
7## Install
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
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
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
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
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