<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: I. Yosun Chang</title>
    <description>The latest articles on Forem by I. Yosun Chang (@yosun).</description>
    <link>https://forem.com/yosun</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F140062%2F2e245c72-3c1b-4f84-a6ce-687480e14d2b.jpg</url>
      <title>Forem: I. Yosun Chang</title>
      <link>https://forem.com/yosun</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/yosun"/>
    <language>en</language>
    <item>
      <title>Project Cameo-Ecosystem aka Merchmatica</title>
      <dc:creator>I. Yosun Chang</dc:creator>
      <pubDate>Mon, 15 Sep 2025 17:49:41 +0000</pubDate>
      <link>https://forem.com/yosun/project-cameo-ecosystem-aka-merchmatica-33pp</link>
      <guid>https://forem.com/yosun/project-cameo-ecosystem-aka-merchmatica-33pp</guid>
      <description>&lt;h1&gt;
  
  
  Inspiration
&lt;/h1&gt;

&lt;p&gt;This was a &lt;strong&gt;Deep End of the Pool experiment&lt;/strong&gt;: could we vibe-code a complex, enterprise-grade, multi-value-prop AI ecommerce platform with no manual code fixes—only plugging AWS credentials?  &lt;/p&gt;

&lt;p&gt;Merchmatica is also inspired by &lt;strong&gt;Stephen Wolfram’s *A New Kind of Science&lt;/strong&gt;&lt;em&gt;.&lt;br&gt;&lt;br&gt;
Where Wolfram showed that *simple local rules&lt;/em&gt; in cellular automata can generate infinite complexity, here we ask:&lt;br&gt;&lt;br&gt;
&lt;strong&gt;What happens when simple licensing + payment rules generate an entire merch economy?&lt;/strong&gt;  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A creator sets a royalty %
&lt;/li&gt;
&lt;li&gt;A fan generates an AI design
&lt;/li&gt;
&lt;li&gt;A store curates products
&lt;/li&gt;
&lt;li&gt;A Stripe split propagates payouts
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;From these atomic rules emerges &lt;strong&gt;a new kind of commerce&lt;/strong&gt;: unpredictable, generative, and computationally irreducible.  &lt;/p&gt;




&lt;h1&gt;
  
  
  What it does
&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;Merchmatica&lt;/strong&gt; (aka Project &lt;em&gt;cameo-ecosystem&lt;/em&gt; — named after my dog and AI design collaborator &lt;a href="https://instagram.com/corgi.cam" rel="noopener noreferrer"&gt;@corgi.cam&lt;/a&gt;) is a platform for an emergent merch ecosystem.  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Creators&lt;/strong&gt; directly &lt;em&gt;license and monetize&lt;/em&gt; their likeness for AI-downstream content creation that flows into physical merch.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fans&lt;/strong&gt; can spin up their own stores, generating apparel, postcards, even 3D-printed figurines from licensed creator IP.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Payments &amp;amp; fulfillment&lt;/strong&gt; are handled through Stripe Connect and merch APIs, turning fan-inspired generated creations into tangible goods.
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Instead of a top-down catalog, Merchmatica works like a &lt;strong&gt;commerce automaton&lt;/strong&gt;: creators, fans, and stores play out simple rules that give rise to complex global markets.  &lt;/p&gt;




&lt;h1&gt;
  
  
  How we built it
&lt;/h1&gt;

&lt;p&gt;We started with a single prompt:  &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;“Create Spec: Cameo Ecosystem: allow fans to generate brand-true images and products such as postcards, apparel and 3D printed figurines (2D/3D) from Creators, then sell products via stores.”&lt;/em&gt;  &lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Then let the &lt;strong&gt;Kiro agent autopilot&lt;/strong&gt; it through:  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Spec generation + architecture&lt;/strong&gt; by Kiro
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Implementation&lt;/strong&gt; assisted by VSCode Copilot
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stack:&lt;/strong&gt; Next.js SSR + AWS Amplify + Stripe Connect + FAL/Replicate for AI gen
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Multi-layered environment loader&lt;/strong&gt; for secrets + debug endpoints for production validation
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Like cellular automata rules encoded in Mathematica, Kiro’s “spec → system” process became its own &lt;strong&gt;rule-based generator of architecture and code&lt;/strong&gt;.  &lt;/p&gt;




&lt;h1&gt;
  
  
  Challenges we ran into
&lt;/h1&gt;

&lt;p&gt;Deploying a &lt;strong&gt;Next.js SSR app on AWS Amplify&lt;/strong&gt; exposed edge cases reminiscent of computational irreducibility—small rule-changes, big unpredictable outcomes:  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;process.env&lt;/code&gt; proved unreliable for SSR/API routes → secrets vanished at runtime.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Workarounds:&lt;/strong&gt; multi-source loader pulling from &lt;code&gt;process.env&lt;/code&gt;, static refs, AWS SSM, encrypted build artifacts, and &lt;code&gt;.next/env.json&lt;/code&gt;.
&lt;/li&gt;
&lt;li&gt;All &lt;strong&gt;sensitive ops forced into Node-only space&lt;/strong&gt; to avoid leaking secrets.
&lt;/li&gt;
&lt;li&gt;Added &lt;code&gt;/api/debug/env&lt;/code&gt; + &lt;code&gt;/api/debug/creators-direct&lt;/code&gt; to confirm runtime connectivity.
&lt;/li&gt;
&lt;li&gt;Wrestled with &lt;strong&gt;URL-encoded secrets&lt;/strong&gt; (&lt;code&gt;%24&lt;/code&gt; vs &lt;code&gt;$&lt;/code&gt;) breaking database URLs.
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Takeaway:&lt;/strong&gt; Amplify + SSR = a nontrivial automaton; resilience requires layered env logic and runtime validation.  &lt;/p&gt;




&lt;h1&gt;
  
  
  Accomplishments we’re proud of
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;End-to-end emergent flow: licensing → AI generation → storefront → payment split → fulfillment.
&lt;/li&gt;
&lt;li&gt;Royalty-aware Stripe Connect flow that mirrors conservation laws in physics: nothing lost, everything distributed.
&lt;/li&gt;
&lt;li&gt;Debug + resilience infrastructure that exposed hidden rules of the system before users hit them.
&lt;/li&gt;
&lt;li&gt;Building &lt;strong&gt;business-grade reliability&lt;/strong&gt; entirely through rule-based AI orchestration.
&lt;/li&gt;
&lt;/ul&gt;




&lt;h1&gt;
  
  
  What we learned
&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;Conversation strategies with Kiro that worked like defining rules in an automaton:&lt;/strong&gt;  &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Context-Rich Requests&lt;/strong&gt;  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;❌ Bad: “Create a payment system”
&lt;/li&gt;
&lt;li&gt;✅ Good: “Build a Stripe Connect system where creators set royalty rates (0–50%), store owners curate products, fans purchase merchandise, and all parties get paid automatically with full audit trails.”
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Constraint-Driven Development&lt;/strong&gt;  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Must handle concurrency, real-time status, multi-currency, regulation compliance, and API failure recovery.
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Integration-First Thinking&lt;/strong&gt;  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Payments tied into licensing, catalog, webhook infra, and AWS monitoring from day one.
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Iterative Refinement&lt;/strong&gt;  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Started with working checkout → layered in watermark removal, email confirmations, retries, analytics.
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;💡 &lt;strong&gt;Why this worked:&lt;/strong&gt;  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Kiro thinks in &lt;strong&gt;systems&lt;/strong&gt;, not snippets.
&lt;/li&gt;
&lt;li&gt;Operates with a &lt;strong&gt;production mindset&lt;/strong&gt;: error handling, tests, edge cases.
&lt;/li&gt;
&lt;li&gt;Tracks &lt;strong&gt;integration surfaces&lt;/strong&gt; across the stack.
&lt;/li&gt;
&lt;li&gt;Builds &lt;strong&gt;iteratively&lt;/strong&gt;, carrying forward context like evolving states in a cellular automaton.
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Like Wolfram’s NKS, the lesson is: &lt;strong&gt;simple rule-sets are enough to create worlds of complexity.&lt;/strong&gt; Merchmatica is one such world—commerce as computation.  &lt;/p&gt;




&lt;h1&gt;
  
  
  What’s next for Merchmatica
&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;🚀 LAUNCH!&lt;/strong&gt;  &lt;/p&gt;

</description>
      <category>showdev</category>
      <category>ai</category>
      <category>startup</category>
      <category>aws</category>
    </item>
  </channel>
</rss>
