Halloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanHalloween DealsAmazon USOctober picks are moving - compare before checkoutAmazon US: current deals, useful picks and tech finds.See Picks×
FREEDOM251

Freedom251 › Blog › creative coding

CyberDreams AI: Vibe-Coding a Cyberpunk Story Generator with Sanity and Gemini

By Freedom251 Team · · 3 min read

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

CyberDreams AI turns structured world-building records into short cyberpunk stories: Sanity stores characters, locations, technologies, threats, and events; a Next.js app selects one record from each category; and Google Gemini uses that set to generate a story. Creator Vladimir Joseph describes it as a small creative-coding experiment in treating a CMS as raw material for generative output, rather than just a home for finished prose.

How CyberDreams AI turns CMS records into a story

Joseph’s project article frames the idea with the question, “What happens when structured CMS content becomes fuel for generative AI?” In this project, Sanity holds the story ingredients as distinct content records. When a visitor chooses “Generate CyberDream,” the app randomly selects one item from each of five categories and sends the selected set to Gemini, which produces a short, mysterious cyberpunk story. Joseph says the result is intended to differ each time, but the project account does not document systematic output testing, so that should not be read as a guarantee.

As an Amazon Associate I earn from qualifying purchases.

The distinction is the point: the CMS is not simply publishing a completed story. It supplies structured inputs that the application combines and passes to a text-generation model.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The five ingredients in the content model

  • Characters: people who can appear in the story.
  • Locations: places where the action can unfold.
  • Technologies: inventions or systems that shape the setting.
  • Threats: dangers or antagonistic forces.
  • Events: incidents that can drive the narrative.

The live demo displays two example names under each category: characters Maya Chen and Alex Vega; locations Neo-Miami and The Neon Underground; technologies Neural Ghost Protocol and Quantum Firewall; threats Rogue AI and Neon Virus; and events The Neon Blackout and The Quantum Awakening. These are examples visible in the demo, not evidence that the underlying dataset contains only—or more than—those records. View the CyberDreams AI demo.

What each part of the reported stack does

Joseph names Next.js, React, TypeScript, Tailwind CSS, Sanity, Google Gemini, and Vercel as parts of the project stack. In the described architecture, these tools have different roles rather than serving as competing options:

  • Sanity stores the structured world-building records.
  • Next.js and React power the web application that presents the interface and retrieves and selects content.
  • TypeScript and Tailwind CSS are also named in the implementation stack.
  • Gemini receives the selected ingredients and generates the story text.
  • Vercel is the reported deployment platform.

The project article says the production Gemini API key was connected through environment variables. It identifies Sanity project ID ffi2ahke and dataset production as project details; those identifiers are not credentials and should not be mistaken for access keys.

What “vibe-coding” means in this example

The project write-up describes an interactive build: create the Sanity content model and sample records, connect a Next.js application to retrieve and randomly select records, integrate Gemini, design a neon control-panel-style interface, and deploy the application. Joseph says the project was built interactively, but does not provide a separate agent-session transcript. The account also does not define “vibe-coding” or measure how much time the approach saved, so the useful takeaway is the reported workflow—not a productivity claim.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

What the project account does—and does not—establish

The details above come from Joseph’s DEV Community project article and the linked demo. They describe the intended architecture and visible interface, rather than an independent technical audit. The account does not state package versions, the Gemini model identifier, the prompt, safety settings, cost, latency, or a reproducible test procedure. It also reports no measured story-quality, reliability, or performance results.

Best Value
Sticker Book for Junk Journal Supplies, Cyberpunk Retro Futuristic 30 Sheets DIY Scrapbook Stickers with Glitter Glossy Matte Foil, 125x125mm Blue, for Scrapbooking Journaling
  • COMPLETE STICKER SET: This cyberpunk-themed sticker collection book includes 30 sheets total with 10 glitter foil stickers, 10 glossy foil stickers, and 10 matte foil stickers for diverse creative applications
  • RETRO FUTURISTIC DESIGN: Features unique cyberpunk-inspired patterns blending retro and futuristic aesthetics, perfect for creating eye-catching visual statements on various surfaces
  • VERSATILE DIY DECORATION: Ideal for handmade phone case customization, scrapbooking, journaling, laptop decoration, water bottles, notebooks, and other creative craft projects
  • CONVENIENT SIZE: Each sticker sheet measures 4.92 x 4.92 inches (125 x 125mm), providing ample material for multiple projects while remaining easy to store and transport
  • PREMIUM FOIL FINISHES: Three distinct foil textures including sparkly glitter, reflective glossy, and sophisticated matte options allow for varied visual effects and creative combinations

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

creative codingCyberDreams AIGoogle GeminiNext.jsSanity

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.