{
  "url": "https://paul.kinlan.me/projects/fauxmium/",
  "title": "fauxmium - browse an infinite imaginary web",
  "byline": "Paul Kinlan",
  "siteName": "Modern Web Development with Chrome",
  "leadImage": "https://paul.kinlan.me/api/card?title=fauxmium+-+browse+an+infinite+imaginary+web",
  "wordCount": 366,
  "readingTimeMinutes": 2,
  "cacheStatus": "HIT",
  "markdown": "# fauxmium - browse an infinite imaginary web\n\nWhat if every website you visited didn't actually exist until the moment you asked for it? What if the entire web was a unique, AI-generated experience, created just for you, on the fly?\n\nThat's the core idea behind my latest project, **Fauxmium**.\n\nFauxmium is a proof-of-concept that explores what it's like to browse an effectively infinite web. Everything you see inside the Fauxmium browser is generated in real-time by AI. It is not real.\n\nIt works by launching a real Chrome browser, but with a twist. It intercepts every navigation and image request and routes them to a local server. That server then prompts a generative AI model to create the HTML and images for the URL you requested, streaming the content back to your browser. The result is a unique, ephemeral, and often surprising browsing session.\n\n**➡️ [Check out Fauxmium on GitHub](https://github.com/paulkinlan/fauxmium)**\n\nGetting started is simple. If you have Node.js installed and a GEMINI API Key, you can run it with a single command in your terminal. I'd recommend running it with DevTools open to see what's happening under the hood.\n\n```bash\nnpx fauxmium --devtools\n```\n\nOnce it launches, just start typing in any URL you can imagine and see what the AI comes up with!\n\n### How It Works (The Gist)\n\nUnder the hood, Fauxmium combines a few key components:\n\n1.  **Browser Control:** It uses **Puppeteer** to launch a headful instance of Google Chrome.\n2.  **Request Interception:** Puppeteer intercepts every request and sends it to a local proxy server.\n3.  **AI Generation:** The local server uses the Vercel AI SDK and the Google Gemini API to handle requests. It takes the URL you requested and uses it in a prompt to ask an AI model to generate the corresponding HTML page or image.\n4.  **Rendering:** The generated content is streamed directly back to the browser and rendered.\n\nCurrently, it supports text generation from **Google (Gemini)**, **OpenAI**, **Anthropic**, and **Groq**, with image generation handled by Gemini. You can tweak the prompts it uses by editing the text files in the `prompts/` directory—they're re-read on every request, so you can experiment without restarting the server.",
  "html": "<h1>fauxmium - browse an infinite imaginary web</h1>\n<p>What if every website you visited didn't actually exist until the moment you asked for it? What if the entire web was a unique, AI-generated experience, created just for you, on the fly?</p>\n<p>That's the core idea behind my latest project, <strong>Fauxmium</strong>.</p>\n<p>Fauxmium is a proof-of-concept that explores what it's like to browse an effectively infinite web. Everything you see inside the Fauxmium browser is generated in real-time by AI. It is not real.</p>\n<p>It works by launching a real Chrome browser, but with a twist. It intercepts every navigation and image request and routes them to a local server. That server then prompts a generative AI model to create the HTML and images for the URL you requested, streaming the content back to your browser. The result is a unique, ephemeral, and often surprising browsing session.</p>\n<p><strong>➡️ <a href=\"https://github.com/paulkinlan/fauxmium\">Check out Fauxmium on GitHub</a></strong></p>\n<p>Getting started is simple. If you have Node.js installed and a GEMINI API Key, you can run it with a single command in your terminal. I'd recommend running it with DevTools open to see what's happening under the hood.</p>\n<pre><code class=\"language-bash\">npx fauxmium --devtools\n</code></pre>\n<p>Once it launches, just start typing in any URL you can imagine and see what the AI comes up with!</p>\n<h3>How It Works (The Gist)</h3>\n<p>Under the hood, Fauxmium combines a few key components:</p>\n<ol>\n<li><strong>Browser Control:</strong> It uses <strong>Puppeteer</strong> to launch a headful instance of Google Chrome.</li>\n<li><strong>Request Interception:</strong> Puppeteer intercepts every request and sends it to a local proxy server.</li>\n<li><strong>AI Generation:</strong> The local server uses the Vercel AI SDK and the Google Gemini API to handle requests. It takes the URL you requested and uses it in a prompt to ask an AI model to generate the corresponding HTML page or image.</li>\n<li><strong>Rendering:</strong> The generated content is streamed directly back to the browser and rendered.</li>\n</ol>\n<p>Currently, it supports text generation from <strong>Google (Gemini)</strong>, <strong>OpenAI</strong>, <strong>Anthropic</strong>, and <strong>Groq</strong>, with image generation handled by Gemini. You can tweak the prompts it uses by editing the text files in the <code>prompts/</code> directory—they're re-read on every request, so you can experiment without restarting the server.</p>\n"
}