1<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/assets/styles-CKyrrrdz.css" data-precedence="default"/><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Work+Sans:wght@300;400;500;600;700&display=swap" data-precedence="default"/><title>Build strategy â verifiable onchain demos in one Lovable build</title><meta name="author" content="StreetKode Fam · Indian Krump Festival 14"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta name="twitter:site" content="@Lovable"/><meta name="twitter:title" content="Creative Blockchain â 1,000 web3 hackathon ideas for Lovable"/><meta name="twitter:description" content="A browseable repo of 1,000 mega-prompts that wire MetaMask, Cronos, Cronos Explorer, Privy and Pinata into ten creative disciplines. Built during the Creative AI & Quantum Hackathon."/><meta property="og:image" content="https://storage.googleapis.com/gpt-engineer-file-uploads/attachments/og-images/42dcc75b-a160-44b0-ae54-f5d1868be36f"/><meta name="twitter:image" content="https://storage.googleapis.com/gpt-engineer-file-uploads/attachments/og-images/42dcc75b-a160-44b0-ae54-f5d1868be36f"/><meta name="description" content="How to ship a Cronos-verified web3 demo in a single Lovable build: five secrets, one paste, contract live on Cronos Explorer, assets pinned on IPFS, sign-in via Privy."/><meta property="og:title" content="Real onchain in one Lovable build"/><meta property="og:description" content="Build-time pattern for Lovable + Cronos Testnet hackathon entries."/><link rel="modulepreload" href="/assets/index-DVdGHSvB.js"/><link rel="modulepreload" href="/assets/chunk--c01j_DQ.js"/><link rel="modulepreload" href="/assets/ClientOnly-GukezuWP.js"/><link rel="modulepreload" href="/assets/link-CH4xpYBE.js"/><link rel="modulepreload" href="/assets/matchContext-BGKmh-E3.js"/><link rel="modulepreload" href="/assets/useStore-BSaljYDy.js"/><link rel="modulepreload" href="/assets/react-dom-BgfaE1k6.js"/><link rel="modulepreload" href="/assets/jsx-runtime-DxoCn-kY.js"/><link rel="modulepreload" href="/assets/strategy-oXECCupY.js"/><link rel="modulepreload" href="/assets/site-shell-CZ0Ciykv.js"/><link rel="modulepreload" href="/assets/copy-button-B3yD9nno.js"/><link rel="preconnect" href="https://fonts.googleapis.com"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/>
1<script defer src="/~flock.js" data-proxy-url="/~api/analytics"></script>
1</head><body><!--$--><div class="min-h-screen flex flex-col overflow-x-hidden"><header class="sticky top-0 z-40 backdrop-blur-md bg-background/80 border-b border-border"><div class="max-w-7xl mx-auto px-5 sm:px-8 py-3 sm:py-5 flex items-center justify-between gap-3"><a href="/" class="flex items-center gap-2 min-w-0 group"><span class="hidden sm:inline eyebrow shrink-0">Vol. 01</span><span class="font-display text-lg sm:text-2xl truncate text-foreground">Creative <span class="italic text-primary">Blockchain</span></span></a><nav class="hidden md:flex items-center gap-1 text-sm"><a href="/themes" class="px-3 py-1.5 text-[11px] tracking-[0.24em] uppercase font-medium text-muted-foreground hover:text-primary transition-colors duration-500">Themes</a><a href="/showcase" class="px-3 py-1.5 text-[11px] tracking-[0.24em] uppercase font-medium text-muted-foreground hover:text-primary transition-colors duration-500">Showcase</a><a class="px-3 py-1.5 text-[11px] tracking-[0.24em] uppercase font-medium text-muted-foreground hover:text-primary transition-colors duration-500 px-3 py-1.5 text-[11px] tracking-[0.24em] uppercase font-medium text-primary" href="/strategy" data-status="active" aria-current="page">Strategy</a><a href="/quantum-primer" class="px-3 py-1.5 text-[11px] tracking-[0.24em] uppercase font-medium text-muted-foreground hover:text-primary transition-colors duration-500">Primer</a><a href="/about" class="px-3 py-1.5 text-[11px] tracking-[0.24em] uppercase font-medium text-muted-foreground hover:text-primary transition-colors duration-500">About</a><a href="https://creativequantum.lovable.app/" target="_blank" rel="noreferrer" class="ml-3 px-3 py-2 border border-border text-foreground text-[10px] font-semibold tracking-[0.28em] uppercase hover:border-primary/60 hover:text-primary transition-colors duration-500">Hackathon â</a><a href="https://devcon.org/en/" target="_blank" rel="noreferrer" class="ml-2 px-3 py-2 border border-border text-foreground text-[10px] font-semibold tracking-[0.28em] uppercase hover:border-primary/60 hover:text-primary transition-colors duration-500">Devcon 8 â</a><a href="https://explorer.cronos.com/testnet" target="_blank" rel="noreferrer" class="ml-2 px-4 py-2 bg-primary text-primary-foreground text-[10px] font-semibold tracking-[0.28em] uppercase hover:bg-foreground transition-colors duration-500">Cronos Explorer â</a></nav><button type="button" aria-haspopup="dialog" aria-expanded="false" aria-controls="radix-_R_daq_" data-state="closed" aria-label="Open menu" class="md:hidden inline-flex items-center justify-center h-10 w-10 border border-border text-foreground hover:border-primary/60 transition shrink-0"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-menu h-5 w-5" aria-hidden="true"><path d="M4 5h16"></path><path d="M4 12h16"></path><path d="M4 19h16"></path></svg></button></div></header><main class="flex-1 overflow-x-hidden"><article class="max-w-3xl mx-auto px-5 pt-14 pb-20"><div class="eyebrow text-primary mb-4">build strategy · onchain</div><h1 class="font-display text-4xl sm:text-5xl md:text-6xl font-bold leading-[0.95] tracking-tight text-foreground">Real onchain, <span class="text-primary italic">five secrets</span>, one build.</h1><p class="mt-6 text-lg text-muted-foreground leading-relaxed font-light">Every mega-prompt in this repo uses the same pattern, because it's the only pattern that lets a Lovable account ship a verifiable Cronos demo in one shot.</p><section class="mt-10 p-6 border border-primary/30 bg-card"><h2 class="font-display text-xl font-semibold text-foreground italic">Why Cronos Testnet and not mainnet?</h2><p class="mt-3 text-sm text-muted-foreground leading-relaxed font-light">Cronos Testnet is a real EVM testnet â the same Solidity, the same explorer UI, the same wallets â but funded by a free faucet (test CRO). Every contract you deploy is publicly inspectable, but you never spend real CRO and your demo can't accidentally drain a user. Move to Cronos mainnet (chain 25) after the hackathon by swapping the RPC and chain id.</p></section><section class="mt-10"><h2 class="font-display text-2xl font-semibold mb-3 text-foreground italic">The recipe</h2><div class="flex items-baseline justify-between mb-2"><span class="eyebrow text-primary">recipe</span><button class="inline-flex items-center gap-2 px-4 py-2 bg-primary text-primary-foreground text-[10px] tracking-[0.28em] uppercase font-semibold hover:bg-foreground transition-colors duration-500">Copy recipe</button></div><pre class="whitespace-pre-wrap break-words [overflow-wrap:anywhere] font-mono text-[12px] sm:text-[13px] leading-relaxed p-4 sm:p-5 max-w-full overflow-x-hidden border border-border bg-card text-foreground
1/90"># 1. In your Lovable project, add secrets (Settings -> Secrets): 2METAMASK_PRIVATE_KEY=0x... 3PRIVY_APP_ID=... 4PINATA_JWT=eyJhbGciOi... 5CRONOS_RPC_URL=https://evm-t3.cronos.com 6 7# 2. Fund the MetaMask deployer account with test CRO: 8open https://faucet.cronos.com/ 9 10# 3. Copy a mega-prompt from this repo into Lovable. One paste: 11# - scaffolds the React app 12# - writes the Solidity contract (with hackathon credit in NatSpec) 13# - deploys to Cronos Testnet and verifies on Cronos Explorer 14# - wires Privy social login (embedded wallet, user pays sub-cent gas) 15# - pins generated assets to IPFS via Pinata 16# - exposes the contract address + Cronos Explorer link in the UI 17 18# 4. Open the live Cronos Explorer link. Your demo is provably onchain. 19</pre></section><section class="mt-10"><h2 class="font-display text-2xl font-semibold mb-3 text-foreground italic">1. The contract â credit baked in</h2><p class="text-sm text-muted-foreground mb-3 font-light">Every Solidity file deployed from a Creative Blockchain prompt MUST carry the hackathon credit in NatSpec, so provenance lives onchain alongside the bytecode.</p><div class="flex items-baseline justify-between mb-2"><span class="eyebrow text-primary">contracts/Provenance.sol</span><button class="inline-flex items-center gap-2 px-4 py-2 bg-primary text-primary-foreground text-[10px] tracking-[0.28em] uppercase font-semibold hover:bg-foreground transition-colors duration-500">Copy</button></div><pre class="whitespace-pre-wrap break-words [overflow-wrap:anywhere] font-mono text-[11px] sm:text-[12px] leading-relaxed p-4 sm:p-5 max-w-full overflow-x-hidden border border-border bg-card text-foreground/90">// contracts/Provenance.sol â every contract carries the hackathon credit in NatSpec 20// SPDX-License-Identifier: MIT 21pragma solidity ^0.8.24; 22 23/// @title Provenance 24/// @notice Built during the Creative AI & Quantum Hackathon 25/// @notice organised by StreetKode Fam during Indian Krump Festival 14 26contract Provenance { 27 event Logged(address indexed author, string cid, uint256 at); 28 29 function log(string calldata cid) external { 30 emit Logged(msg.sender, cid, block.timestamp); 31 } 32} 33</pre></section><section class="mt-10"><h2 class="font-display text-2xl font-semibold mb-3 text-foreground italic">2. Deploy + verify on Cronos Explorer</h2><div class="flex items-baseline justify-between mb-2"><span class="eyebrow text-primary">scripts/deploy.ts</span><button class="inline-flex items-center gap-2 px-4 py-2 bg-primary text-primary-foreground text-[10px] tracking-[0.28em] uppercase font-semibold hover:bg-foreground transition-colors duration-500">Copy</button></div><pre class="whitespace-pre-wrap break-words [overflow-wrap:anywhere] font-mono text-[11px] sm:text-[12px] leading-relaxed p-4 sm:p-5 max-w-full overflow-x-hidden border border-border bg-card text-foreground/90">// scripts/deploy.ts â reads METAMASK_PRIVATE_KEY + CRONOS_RPC_URL from process.env 34import { ethers, run } from "hardhat"; 35 36async function main() { 37 const F = await ethers.getContractFactory("Provenance"); 38 const c = await F.deploy(); 39 await c.waitForDeployment(); 40 const addr = await c.getAddress(); 41 console.log("deployed:", addr); 42 43 // verify on Cronos Explorer 44 await run("verify:verify", { address: addr, constructorArguments: [] }); 45} 46main(); 47</pre></section><section class="mt-10"><h2 class="font-display text-2xl font-semibold mb-3 text-foreground italic">3. Pin assets to IPFS via Pinata</h2><div class="flex items-baseline justify-between mb-2"><span class="eyebrow text-primary">src/lib/pinata.ts</span><button class="inline-flex items-center gap-2 px-4 py-2 bg-primary text-primary-foreground text-[10px] tracking-[0.28em] uppercase font-semibold hover:bg-foreground transition-colors duration-500">Copy</button></div><pre class="whitespace-pre-wrap break-words [overflow-wrap:anywhere] font-mono text-[11px] sm:text-[12px] leading-relaxed p-4 sm:p-5 max-w-full overflow-x-hidden border border-border bg-card text-foreground/90">// src/lib/pinata.ts â pin a Blob to IPFS via Pinata JWT 48export async function pinToIPFS(file: Blob, name = "artifact") { 49 const fd = new FormData(); 50 fd.append("file", file, name); 51 const r = await fetch("https://api.pinata.cloud/pinning/pinFileToIPFS", { 52 method: "POST", 53 headers: { Authorization: `Bearer ${process.env.PINATA_JWT}` }, 54 body: fd, 55 }); 56 const { IpfsHash } = await r.json(); 57 return IpfsHash as string; // the CID 58} 59</pre></section><section class="mt-10"><h2 class="font-display text-2xl font-semibold mb-3 text-foreground italic">4. Sign in with Google via Privy</h2><div class="flex items-baseline justify-between mb-2"><span class="eyebrow text-primary">src/main.tsx</span><button class="inline-flex items-center gap-2 px-4 py-2 bg-primary text-primary-foreground text-[10px] tracking-[0.28em] uppercase font-semibold hover:bg-foreground transition-colors duration-500">Copy</button></div><pre class="whitespace-pre-wrap break-words [overflow-wrap:anywhere] font-mono text-[11px] sm:text-[12px] leading-relaxed p-4 sm:p-5 max-w-full overflow-x-hidden border border-border bg-card text-foreground
59/90">// src/main.tsx â Privy social login (embedded wallet, user pays sub-cent gas) 60import { PrivyProvider } from "@privy-io/react-auth"; 61import { cronosTestnet } from "viem/chains"; 62 63<PrivyProvider 64 appId={import.meta.env.VITE_PRIVY_APP_ID} 65 config={{ 66 loginMethods: ["google", "email"], 67 embeddedWallets: { createOnLogin: "users-without-wallets" }, 68 defaultChain: cronosTestnet, 69 supportedChains: [cronosTestnet], 70 }} 71> 72 <App /> 73</PrivyProvider> 74</pre></section><section class="mt-10 p-6 border border-border bg-card"><h2 class="font-display text-xl font-semibold text-foreground italic">Hackathon rules of thumb</h2><ul class="mt-3 space-y-2 text-sm text-muted-foreground font-light"><li>· One mega-prompt = one build message. Don't iterate the architecture, iterate the UI.</li><li>· Always show the live Cronos Explorer link in the UI â that's your proof.</li><li>· Have judges grab free test CRO from faucet.cronos.com â gas is sub-cent on Cronos.</li><li>· Pin every user-generated asset to IPFS the moment it's created.</li><li>· Add a "Built during the Creative AI & Quantum Hackathon â StreetKode Fam · Indian Krump Festival 14" line to your footer.</li></ul></section><div class="mt-10 flex flex-wrap gap-3"><a href="/themes" class="px-5 py-2.5 bg-primary text-primary-foreground font-semibold hover:bg-foreground transition">Pick an idea â</a><a href="/quantum-primer" class="px-5 py-2.5 border border-primary/40 text-foreground hover:bg-primary hover:text-primary-foreground transition">Blockchain primer</a></div></article></main><footer class="border-t border-border mt-24"><div class="max-w-7xl mx-auto px-5 sm:px-8 py-10 flex flex-col gap-3 text-[10px] tracking-[0.32em] uppercase text-muted-foreground"><div class="flex flex-wrap items-center justify-between gap-4"><span>Vol. 01 · 1,000 entries · 10 disciplines</span><span class="font-display normal-case tracking-normal text-base italic text-primary">Lovable à Cronos Testnet</span><span>MetaMask · Privy · Pinata · MMXXVI</span></div><div class="border-t border-border/60 pt-3 normal-case tracking-normal text-[11px] font-light leading-relaxed text-muted-foreground/80">Built during the Creative AI & Quantum Hackathon â organised by<!-- --> <span class="text-primary">StreetKode Fam</span> during Indian Krump Festival 14.</div></div></footer></div>
74<script>(function(t){let s;try{s=JSON.parse(sessionStorage.getItem(t.storageKey)||"{}")}catch(e){console.error(e);return}const c=t.key||window.history.state?.__TSR_key,r=c?s[c]:void 0;if(t.shouldScrollRestoration&&r&&typeof r=="object"&&Object.keys(r).length>0){for(const e in r){const o=r[e];if(!o||typeof o!="object")continue;const l=o.scrollX,i=o.scrollY;if(!(!Number.isFinite(l)||!Number.isFinite(i))){if(e==="window")window.scrollTo({top:i,left:l,behavior:t.behavior});else if(e){let n;try{n=document.querySelector(e)}catch{continue}n&&(n.scrollLeft=l,n.scrollTop=i)}}}return}const a=window.location.hash.split("#",2)[1];if(a){const e=window.history.state?.__hashScrollIntoViewOptions??!0;if(e){const o=document.getElementById(a);o&&o.scrollIntoView(e)}return}window.scrollTo({top:0,left:0,behavior:t.behavior})})({"storageKey":"tsr-scroll-restoration-v1_3","shouldScrollRestoration":true});document.currentScript.remove()</script>
74<!--/$-->
74<script class="$tsr" id="$tsr-stream-barrier">(self.$R=self.$R||{})["tsr"]=[];self.$_TSR={h(){this.hydrated=!0,this.c()},e(){this.streamEnded=!0,this.c()},c(){this.hydrated&&this.streamEnded&&(delete self.$_TSR,delete self.$R.tsr)},p(e){this.initialized?e():this.buffer.push(e)},buffer:[]};$_TSR.router=($R=>$R[0]={manifest:$R[1]={routes:$R[2]={__root__:$R[3]={preloads:$R[4]=["/assets/index-DVdGHSvB.js","/assets/chunk--c01j_DQ.js","/assets/ClientOnly-GukezuWP.js","/assets/link-CH4xpYBE.js","/assets/matchContext-BGKmh-E3.js","/assets/useStore-BSaljYDy.js","/assets/react-dom-BgfaE1k6.js","/assets/jsx-runtime-DxoCn-kY.js"],assets:$R[5]=[$R[6]={tag:"script",attrs:$R[7]={type:"module",async:!0},children:"import(\"/assets/index-DVdGHSvB.js\")"}]},"/strategy":$R[8]={preloads:$R[9]=["/assets/strategy-oXECCupY.js","/assets/site-shell-CZ0Ciykv.js","/assets/copy-button-B3yD9nno.js"]}}},matches:$R[10]=[$R[11]={i:"__root__�",u:1790997669749,s:"success",ssr:!0},$R[12]={i:"�strategy�strategy",u:1790997669749,s:"success",ssr:!0}],lastMatchId:"�strategy�strategy"})($R["tsr"]);$_TSR.e();document.currentScript.remove()</script>
74<script type="module" async="">import("/assets/index-DVdGHSvB.js")</script>
74</body></html>
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.