<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sivaram P on Medium]]></title>
        <description><![CDATA[Stories by Sivaram P on Medium]]></description>
        <link>https://medium.com/@sivarampg?source=rss-e0b52f907876------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*fuai0ffVnSydhHTIA7-D7A.png</url>
            <title>Stories by Sivaram P on Medium</title>
            <link>https://medium.com/@sivarampg?source=rss-e0b52f907876------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 12:35:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sivarampg/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to Fix Your Life in One Day (Without Resolutions)]]></title>
            <link>https://sivarampg.medium.com/how-to-fix-your-life-in-one-day-without-resolutions-cb50c980c7b8?source=rss-e0b52f907876------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb50c980c7b8</guid>
            <dc:creator><![CDATA[Sivaram P]]></dc:creator>
            <pubDate>Sun, 18 Jan 2026 11:32:52 GMT</pubDate>
            <atom:updated>2026-01-18T11:32:52.207Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VJZrZZRRTJDM4D858sY9cA.png" /></figure><blockquote><strong><em>Attribution</em></strong></blockquote><blockquote><em>This article is a condensed and restructured interpretation of ideas originally presented by </em><strong><em>Dan Koe</em></strong><em> in his X article:</em></blockquote><blockquote><a href="https://x.com/thedankoe/status/2010751592346030461"><em>https://x.com/thedankoe/status/2010751592346030461</em></a></blockquote><blockquote><em>If this resonates, I highly recommend reading the original long‑form post.</em></blockquote><p>Most people fail to change their lives because they aim at the wrong layer.</p><p>They try to change <strong>actions</strong> instead of <strong>identity</strong>.</p><p>Discipline instead of direction.</p><p>Goals instead of the <em>person</em> who would naturally achieve them.</p><p>That’s why New Year’s resolutions fail. They attempt to build a better life on the same psychological foundation.</p><p>This article compresses the core ideas behind real, durable change and ends with a one‑day protocol designed to force clarity and momentum.</p><h3>1. You Don’t Have the Life You Want Because You’re Not the Person Who Would Have It</h3><p>If you want a specific outcome, you must adopt the lifestyle that creates it <em>before</em> you reach the outcome.</p><p>People who succeed don’t rely on discipline.<br>Their behavior feels natural because it’s aligned with who they are.</p><p>That’s why statements like this are red flags:</p><blockquote><em>“I can’t wait to lose the weight so I can enjoy life again.”</em></blockquote><p>If the lifestyle doesn’t change permanently, the result won’t last.</p><p>Real change happens when:</p><ul><li>Old habits feel <strong>disgusting</strong></li><li>New behaviors feel <strong>inevitable</strong></li></ul><p>That shift doesn’t come from motivation.</p><p>It comes from identity.</p><h3>2. All Behavior Is Goal‑Oriented (Even Self‑Sabotage)</h3><p>You’re always pursuing a goal — even when procrastinating.</p><p>Examples:</p><ul><li>Procrastination often protects you from judgment</li><li>Staying in a dead‑end job often protects your identity</li><li>“Lack of discipline” is usually fear with better PR</li></ul><p>You don’t change your life by setting better goals.</p><p>You change it by <strong>changing what you’re optimizing for</strong>.</p><p>Goals are lenses.</p><p>They determine what you notice, ignore, and act on.</p><h3>3. Identity Is a Feedback Loop (And It Will Defend Itself)</h3><p>Identity forms like this:</p><ol><li>You pursue a goal</li><li>You notice information that supports it</li><li>You act and receive feedback</li><li>The behavior becomes automatic</li><li>You label it as “who you are”</li><li>You defend it to maintain consistency</li></ol><p>Most people never break this loop — even when it’s harming them.</p><p>When identity is threatened, the nervous system reacts like survival is threatened.</p><p>That’s why change feels terrifying even when your current life is miserable.</p><h3>4. Meaningful Lives Exist at Higher Levels of Mind</h3><p>Human development follows predictable stages:<br>from conformity → self‑authorship → systems thinking → construct awareness.</p><p>Many people feel stuck because:</p><ul><li>They’ve outgrown their current mental framework</li><li>But don’t yet have a new one</li></ul><p>That discomfort isn’t failure.</p><p>It’s a signal.</p><p>Progress doesn’t require “finding yourself.”</p><p>It requires <strong>upgrading your operating system</strong>.</p><h3>5. Intelligence Is the Ability to Steer</h3><p>Intelligence isn’t IQ.<br>It’s cybernetics: the ability to steer toward what you want.</p><p>An intelligent system:</p><ul><li>Sets a goal</li><li>Acts</li><li>Measures feedback</li><li>Adjusts</li><li>Persists</li></ul><p>Low intelligence quits when the first plan fails.</p><p>High intelligence iterates.</p><p>Combine:</p><ul><li>Agency</li><li>Opportunity</li><li>Iterative intelligence</li></ul><p>And most problems become solvable on a long enough timeline.</p><h3>6. The One‑Day Reset Protocol</h3><p>This isn’t motivation.</p><p>It’s psychological excavation.</p><h3>Morning: Anti‑Vision and Vision</h3><p>Answer these honestly:</p><ul><li>What dissatisfaction have I learned to tolerate?</li><li>What do I complain about but never change?</li><li>If nothing changes, what does my life look like in 5–10 years?</li><li>What identity would I have to give up to change?</li><li>What am I actually protecting myself from?</li></ul><p>Then shift forward:</p><ul><li>If I could snap my fingers, what life would I <em>want</em> in 3 years?</li><li>What would I have to believe about myself for that life to feel natural?</li><li>What would that version of me do this week?</li></ul><h3>Throughout the Day: Break Autopilot</h3><p>Set reminders and ask:</p><ul><li>What am I avoiding right now?</li><li>What does my behavior say I actually want?</li><li>Am I choosing safety or aliveness?</li><li>When did I feel most alive today?</li></ul><p>Interrupt unconscious patterns.</p><p>That’s where change starts.</p><h3>Evening: Synthesis</h3><p>Write:</p><ul><li>Why have I really been stuck?</li><li>What internal pattern is the enemy?</li><li>One sentence describing the life I refuse to live</li><li>One sentence describing what I’m building toward</li></ul><p>Then define lenses, not rigid goals:</p><ul><li><strong>1 year:</strong> proof the old pattern is broken</li><li><strong>1 month:</strong> a concrete project that supports that</li><li><strong>Tomorrow:</strong> 2–3 actions the future version of you would simply do</li></ul><h3>7. Turn Your Life Into a Game</h3><p>Games work because they have:</p><ul><li>A win condition (vision)</li><li>Stakes (anti‑vision)</li><li>Missions (1‑year lens)</li><li>Boss fights (1‑month projects)</li><li>Quests (daily actions)</li><li>Rules (constraints)</li></ul><p>Build this structure and focus becomes automatic.</p><p>You don’t need more discipline.</p><p>You need a better game.</p><h3>Final Thought</h3><p>You don’t fix your life in one day by changing everything.</p><p>You fix it by:</p><ul><li>Seeing clearly</li><li>Choosing a higher‑resolution direction</li><li>Taking the first irreversible step</li></ul><p>The rest compounds.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb50c980c7b8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building Bags.fm Embeds: A Free Tool to Make Crypto Community Support Visible]]></title>
            <link>https://sivarampg.medium.com/building-bags-fm-embeds-a-free-tool-to-make-crypto-community-support-visible-2beeee0d5a7e?source=rss-e0b52f907876------2</link>
            <guid isPermaLink="false">https://medium.com/p/2beeee0d5a7e</guid>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[solana-network]]></category>
            <dc:creator><![CDATA[Sivaram P]]></dc:creator>
            <pubDate>Sat, 17 Jan 2026 19:31:29 GMT</pubDate>
            <atom:updated>2026-01-17T19:56:09.179Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/559/1*HhPFSLIndnpUlxvSlCeRxQ@2x.png" /></figure><p><a href="https://dev.to/t/solana">#solana</a> <a href="https://dev.to/t/web3">#web3</a> <a href="https://dev.to/t/cryptocurrency">#cryptocurrency</a> <a href="https://dev.to/t/webdev">#webdev</a></p><p><strong>TL;DR:</strong> Token addresses are forgettable. Community support shouldn’t be. I built <a href="https://bags.sivaramp.com/">Bags.fm Embeds</a> — a free tool that turns wallet addresses into real-time badges showing lifetime earnings. It took two weekends and taught me a lot about Go concurrency.</p><h3>The Problem</h3><p>If you’ve ever shared a Solana token address, you know the drill:</p><pre>9XzKDJ9wP9yqi9G5okp9UFNxFuhqyk5GNyUnnBaRBAGS</pre><p>That’s it. That’s the tweet.</p><p>A 44-character string that tells you nothing about:</p><ul><li>The thousands of dollars in fees this token generated</li><li>The creators being supported by the community</li><li>The active, growing ecosystem around this project</li></ul><p><strong>The address is static, but the community is alive.</strong></p><h3>The Inspiration</h3><p>GitHub badges:</p><pre>![npm version](https://img.shields.io/badge/npm-v1.0.0-blue)<br>![build passing](https://img.shields.io/badge/build-passing-brightgreen)</pre><p>They work because they make boring metadata <strong>visual</strong> and <strong>shareable</strong>.</p><p>What if crypto earnings had the same treatment? A badge that shows:</p><ul><li>Total lifetime fees earned</li><li>Who’s receiving those fees</li><li>Real-time updates as the community grows</li></ul><h3>What I Built</h3><p><strong>5 embed types:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/511/1*JrCdtlKdjXg9Nk-lqzVKFw@2x.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*teeYZXHpeZ37YDVs.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/0*dELlukGy62F_xA95.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/0*QP-P4bnP4rv0nB0t.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/494/0*s6cXu5EFurxX0aRd.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/448/0*HAZw63Lp3YHNcGc7.png" /></figure><p><strong>Key insight:</strong> SVG badges work <em>everywhere</em> — GitHub, Notion, Twitter cards, Discord. No JavaScript required. Just an image URL.</p><p>See <a href="https://bags.sivaramp.com/examples">live examples here</a>.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FPgR9B6ktx7g%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DPgR9B6ktx7g&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FPgR9B6ktx7g%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/403955584fb2aee38243acc07df35e99/href">https://medium.com/media/403955584fb2aee38243acc07df35e99/href</a></iframe><h3>The Technical Stuff</h3><h3>Why Go?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/479/1*woCp28Svx8x-rl8O-IM55Q@2x.png" /></figure><p>For a service serving SVG badges in &lt;50ms, Go was the clear winner.</p><h3>The Background Worker Pattern</h3><p>The badges show USD values → need current SOL price → can’t fetch on every request.</p><p><strong>Solution:</strong> A background goroutine that fetches SOL price every 15 seconds:</p><pre>func (p *PriceService) StartWorker(ctx context.Context) {<br>    ticker := time.NewTicker(15 * time.Second)<br>    defer ticker.Stop()<br>for {<br>        select {<br>        case &lt;-ctx.Done():<br>            return<br>        case &lt;-ticker.C:<br>            p.fetchAndCachePrice()<br>        }<br>    }<br>}</pre><p><strong>The architecture:</strong></p><pre>HTTP Server (main goroutine)<br>    ↓ reads from<br>Redis (shared state)<br>    ↑ writes to<br>Background Worker (price goroutine)</pre><p>If Jupiter’s API goes down? HTTP requests keep serving cached data. The worker tries Binance, then CoinGecko. Users never notice.</p><h3>5 Layers of Caching</h3><ol><li><strong>Browser</strong> (60s) — Repeat visitors don’t hit server</li><li><strong>Cloudflare CDN</strong> (60s) — Global edge caching</li><li><strong>Redis</strong> — Different TTLs per data type</li><li><strong>Fallback cache</strong> — Last known values</li><li><strong>Hardcoded defaults</strong> — When everything fails</li></ol><p><strong>Result:</strong> 99% of requests served from cache in &lt;50ms.</p><h3>SVG Generation</h3><pre>func generateBadge(data TokenData, theme string) string {<br>    bgColor := &quot;#1a1a1a&quot;<br>    textColor := &quot;#ffffff&quot;<br>    if theme == &quot;light&quot; {<br>        bgColor, textColor = &quot;#ffffff&quot;, &quot;#1a1a1a&quot;<br>    }<br>return fmt.Sprintf(`&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot;<br>        width=&quot;320&quot; height=&quot;52&quot;&gt;<br>        &lt;rect fill=&quot;%s&quot; rx=&quot;8&quot; width=&quot;320&quot; height=&quot;52&quot;/&gt;<br>        &lt;text fill=&quot;%s&quot; x=&quot;16&quot; y=&quot;32&quot;&gt;<br>            Lifetime Fees: $%s<br>        &lt;/text&gt;<br>    &lt;/svg&gt;`, bgColor, textColor, formatCurrency(data.FeesUSD))<br>}</pre><p>Valid SVG that works as an &lt;img&gt; tag anywhere.</p><h3>The Growth Flywheel</h3><pre>Projects share embeds<br>    → Visibility for platform<br>        → New users discover it<br>            → More trades, more fees<br>                → Creators earn more<br>                    → More projects join<br>                        → More embeds</pre><p><strong>Every badge is passive marketing.</strong></p><h3>Lessons Learned</h3><h3>1. Solve the Visibility Problem</h3><p>The biggest issue wasn’t technical — impact was invisible. Badges make the intangible tangible.</p><h3>2. Meet People Where They Are</h3><p>SVG badges work in GitHub, Twitter, Notion, Discord, and websites. One format, everywhere.</p><h3>3. Design for Failure</h3><p>External APIs <em>will</em> go down. Fallback sources + cached data + graceful degradation = users never notice.</p><h3>4. Concurrency Simplifies Architecture</h3><p>Background worker pattern eliminated race conditions, timeouts, and request blocking.</p><h3>5. Free Tools Win</h3><p>Free tools get adopted faster. The goal is ecosystem growth, not revenue.</p><h3>Try It</h3><p><strong>Live:</strong> <a href="https://bags.sivaramp.com/">bags.sivaramp.com</a></p><p><strong>Examples:</strong> <a href="https://bags.sivaramp.com/examples">bags.sivaramp.com/examples</a></p><p><strong>Steps:</strong></p><ol><li>Paste token address (must end in BAGS)</li><li>Pick embed type</li><li>Copy code</li><li>Paste anywhere</li></ol><h3>Tech Stack</h3><pre>Backend:  Go 1.21+ / Gin<br>Frontend: React / Vite / TypeScript<br>Cache:    Redis<br>CDN:      Cloudflare<br>Hosting:  Railway<br>Data:     Bags SDK, DexScreener, Jupiter</pre><p><strong>What do you think?</strong> I’d love to hear if you’ve built similar tools for making data visible. Drop a comment below!</p><p><em>If you’re building in the Solana ecosystem, try out the embeds and let me know how you use them.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2beeee0d5a7e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MdBin Levels Up: From Custom Markdown Pipeline to Streamdown]]></title>
            <link>https://sivarampg.medium.com/mdbin-levels-up-from-custom-markdown-pipeline-to-streamdown-adc3bdc4aadd?source=rss-e0b52f907876------2</link>
            <guid isPermaLink="false">https://medium.com/p/adc3bdc4aadd</guid>
            <category><![CDATA[knowledge-sharing]]></category>
            <category><![CDATA[devtools]]></category>
            <category><![CDATA[markdown]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Sivaram P]]></dc:creator>
            <pubDate>Sat, 17 Jan 2026 03:27:23 GMT</pubDate>
            <atom:updated>2026-01-17T03:27:23.493Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_CWaaG6329CJ5xsmSVGxjg.png" /></figure><p><a href="https://dev.to/t/markdown">#markdown</a> <a href="https://dev.to/t/webdev">#webdev</a> <a href="https://dev.to/t/react">#react</a> <a href="https://dev.to/t/ai">#ai</a></p><h3>The Evolution Continues</h3><p>A few weeks ago, I <a href="https://dev.to/sivarampg/mdbin-share-beautiful-rendered-markdown-instead-of-raw-code-5e9j">introduced MdBin</a> — a free utility for sharing beautifully rendered markdown. The response was incredible, and people were using it exactly how I’d hoped: sharing LLM outputs, documentation snippets, and formatted notes without the friction of paywalls or mangled formatting.</p><p>But here’s the thing about building in public: you never stop iterating.</p><p>Today I’m excited to share a significant upgrade under the hood — migrating from a custom markdown-it + Shiki pipeline to <a href="https://github.com/vercel/streamdown"><strong>Streamdown</strong></a>, Vercel&#39;s new drop-in replacement for react-markdown.</p><h3>The Old Setup: It Worked, But</h3><p>My original implementation was solid. I used markdown-it-async with @shikijs/markdown-it for syntax highlighting:</p><pre>import { fromAsyncCodeToHtml } from &#39;@shikijs/markdown-it/async&#39;<br>import MarkdownItAsync from &#39;markdown-it-async&#39;<br>import { codeToHtml } from &#39;shiki&#39;<br><br>const md = MarkdownItAsync({<br>  html: true,<br>  xhtmlOut: true,<br>  linkify: true,<br>  typographer: true,<br>  breaks: true,<br>})<br>md.use(<br>  fromAsyncCodeToHtml(codeToHtml, {<br>    themes: {<br>      light: &#39;github-light&#39;,<br>      dark: &#39;github-dark&#39;,<br>    },<br>    defaultColor: false,<br>    cssVariablePrefix: &#39;--shiki-&#39;,<br>  })<br>)<br>export async function renderMarkdown(content: string): Promise&lt;string&gt; {<br>  const html = await md.renderAsync(content)<br>  return html<br>}</pre><p>Then in my page component, I’d render with the classic dangerouslySetInnerHTML:</p><pre>&lt;article<br>  className=&quot;markdown-content&quot;<br>  dangerouslySetInnerHTML={{ __html: renderedContent }}<br>/&gt;</pre><p>This approach had several drawbacks:</p><ol><li><strong>Manual security handling</strong> — dangerouslySetInnerHTML is exactly what it sounds like</li><li><strong>No built-in controls</strong> — I had to build copy buttons, download functionality myself</li><li><strong>Mermaid was a nightmare</strong> — SSR rendering just didn’t work reliably</li><li><strong>Bundle size creep</strong> — Every language highlight added weight</li><li><strong>Incomplete block handling</strong> — Malformed markdown could break the entire render</li></ol><h3>Enter Streamdown</h3><p>When I discovered <a href="https://github.com/vercel/streamdown">Streamdown</a>, I initially dismissed it. “It’s for AI streaming,” I thought. “MdBin renders static content SSR.”</p><p>But then I looked closer at the feature set:</p><ul><li>🎯 <strong>Code syntax highlighting</strong> with Shiki (what I was already using)</li><li>📈 <strong>Mermaid diagrams</strong> that actually work SSR</li><li>🛡️ <strong>Security-first</strong> with rehype-harden</li><li>📊 <strong>GitHub Flavored Markdown</strong> out of the box</li><li>🔢 <strong>Math rendering</strong> via KaTeX</li><li>⚡ <strong>Built-in controls</strong> for copy, download, fullscreen</li></ul><p>Wait. This is exactly what a markdown sharing tool needs.</p><h3>The Migration: Surprisingly Painless</h3><p>Here’s what the new implementation looks like:</p><pre>import { Streamdown } from &#39;streamdown&#39;<br><br>export default async function PastePage({ params }) {<br>  const { id } = await params<br>  const { decompressedContent, createdAt } = await cachedGetPaste(id)<br>  return (<br>    &lt;Streamdown<br>      className=&quot;markdown-content&quot;<br>      parseIncompleteMarkdown<br>      shikiTheme={[&#39;github-light&#39;, &#39;github-dark&#39;]}<br>      mode=&quot;streaming&quot;<br>      isAnimating={false}<br>      controls={{<br>        table: true,<br>        code: true,<br>        mermaid: {<br>          download: true,<br>          copy: true,<br>          fullscreen: true,<br>          panZoom: true,<br>        },<br>      }}<br>    &gt;<br>      {decompressedContent}<br>    &lt;/Streamdown&gt;<br>  )<br>}</pre><p>That’s it. No separate render function. No dangerouslySetInnerHTML. No manual security sanitization.</p><p>The Tailwind setup is one line in globals.css:</p><pre>@source &quot;../../node_modules/streamdown/dist/index.js&quot;;</pre><h3>Why v2.0.0 is a Game Changer</h3><p>The timing couldn’t have been better. Streamdown just shipped <a href="https://github.com/vercel/streamdown/releases">v2.0.0</a> with some massive improvements:</p><h3>🚀 98% Bundle Size Reduction via CDN</h3><p>This was the big one. Previously, bundling all those Shiki language grammars and themes bloated your build. Now, language-specific highlighting and KaTeX CSS are loaded from their CDN on-demand.</p><p>Your build stays lean. Users only fetch what they need.</p><h3>📈 Mermaid SSR Actually Works</h3><p>This was a blocker for me before. Mermaid diagrams in markdown are incredibly useful — flowcharts, sequence diagrams, architecture docs — but SSR rendering was broken. Now it works beautifully, with viewport-based lazy loading that prevents page freezing when you have multiple diagrams.</p><h3>🛡️ Enhanced Security</h3><p>rehype-harden + rehype-sanitize means I don&#39;t have to worry about XSS attacks from malicious markdown. The component handles sanitization automatically.</p><h3>✨ Built-in UX Polish</h3><p>All those controls I would have had to build myself? Built-in:</p><ul><li><strong>Code blocks</strong>: Copy button, language indicator</li><li><strong>Tables</strong>: Download as CSV</li><li><strong>Mermaid</strong>: Download as PNG, copy SVG, fullscreen view with pan/zoom</li></ul><h3>What I Gained</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*fDo_EU8koMecMzv7CHBXVg@2x.png" /></figure><h3>The “Streaming” Part</h3><p>You might wonder: “Why use a streaming-optimized library for static content?”</p><p>Fair question. The mode=&quot;streaming&quot; and isAnimating={false} props tell Streamdown this is pre-rendered content—no typing effects, no progressive reveal. But all the other benefits still apply:</p><ul><li><strong>parseIncompleteMarkdown</strong>: Handles edge cases where users paste malformed markdown (unclosed code blocks, incomplete tables). Instead of crashing or showing garbage, it renders gracefully.</li><li><strong>Memoized rendering</strong>: Even without streaming, the performance optimizations help with re-renders.</li></ul><h3>Shoutout to the Vercel Team</h3><p>The <a href="https://github.com/vercel/streamdown">Streamdown</a> team has done an incredible job packaging what could have been a complex, multi-library setup into a single, well-designed component. It powers their <a href="https://ai-elements.vercel.app/">AI Elements</a> Message component, but it’s genuinely useful for any markdown rendering use case.</p><p>The documentation is solid, the defaults are sensible, and it just works.</p><h3>Try It Out</h3><p>Head over to <a href="https://mdbin.sivaramp.com/">mdbin.sivaramp.com</a> and paste some markdown. Try:</p><ul><li><strong>Code blocks</strong> in any language — notice the copy button and language badge</li><li><strong>Mermaid diagrams</strong> — they actually render now! Try the fullscreen + pan/zoom</li><li><strong>Tables</strong> — check out the download button</li><li><strong>Math equations</strong> — LaTeX just works</li></ul><p>Here’s a quick Mermaid example to paste:</p><pre>graph TD<br>    A[Paste Markdown] --&gt; B[Streamdown Renders]<br>    B --&gt; C{What type?}<br>    C --&gt;|Code| D[Shiki Highlighting]<br>    C --&gt;|Diagram| E[Mermaid SVG]<br>    C --&gt;|Math| F[KaTeX Render]<br>    D --&gt; G[Beautiful Output]<br>    E --&gt; G<br>    F --&gt; G<br></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/999/1*7pNst6wLXPsIB1bghXMT8g@2x.png" /></figure><h3>What’s Next</h3><p>With the rendering layer now handled by Streamdown, I can focus on features users actually want:</p><ul><li><strong>Expiration options</strong> — 1 hour, 1 day, 1 week, or permanent</li><li><strong>Password protection</strong> — For sensitive content</li><li><strong>Edit links</strong> — Update pastes without creating new ones</li><li><strong>Custom themes</strong> — Beyond light/dark mode</li></ul><p>The foundation is solid. Now it’s time to build.</p><p><strong>TL;DR:</strong> Migrated MdBin from markdown-it + Shiki to Vercel&#39;s Streamdown. Got built-in code copy, Mermaid rendering (that actually works SSR!), math support, enhanced security, and a 98% smaller bundle—all from one component. The Vercel team knocked it out of the park with this one.</p><p>Check out the upgrade at <a href="https://mdbin.sivaramp.com/">mdbin.sivaramp.com</a> and the <a href="https://github.com/vercel/streamdown">Streamdown repo</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=adc3bdc4aadd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cowork: Claude Code for the Rest of Your Work]]></title>
            <link>https://sivarampg.medium.com/cowork-claude-code-for-the-rest-of-your-work-80914f355c65?source=rss-e0b52f907876------2</link>
            <guid isPermaLink="false">https://medium.com/p/80914f355c65</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[claude-code]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[claude]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Sivaram P]]></dc:creator>
            <pubDate>Tue, 13 Jan 2026 06:06:49 GMT</pubDate>
            <atom:updated>2026-01-13T06:06:49.997Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aRQPxQlSLpJ87jUIdWZcFg@2x.png" /></figure><p>Anthropic just dropped something interesting, and it’s not just another AI chatbot. It’s called <strong>Cowork</strong>, and it might represent where AI agents are heading next.</p><h3>What is Cowork?</h3><p>Cowork is essentially “Claude Code for the rest of your work” — a general-purpose AI agent that can work with files on your computer without requiring you to write a single line of code.</p><p>Think of it this way: Claude Code was built for developers to automate coding tasks. But Anthropic noticed something interesting — developers were using it for everything else: vacation research, building slide decks, cleaning up email, cancelling subscriptions, recovering wedding photos from hard drives, monitoring plant growth, and even controlling ovens.</p><p>So they stripped away the terminal interface and built Cowork — a visual, approachable version that anyone can use.</p><h3>How It Works</h3><p>The workflow is refreshingly simple:</p><ol><li><strong>Grant folder access</strong> — You give Claude access to a specific folder on your computer</li><li><strong>Describe what you need</strong> — Tell Claude what you want in plain language</li><li><strong>Let it work</strong> — Claude makes a plan, executes steps in parallel, and keeps you updated on progress</li><li><strong>Get results</strong> — Claude reads, edits, or creates files as needed</li></ol><h3>Example Use Cases</h3><p>Here’s what you can do with Cowork:</p><ul><li><strong>Reorganize your downloads folder</strong> — Sort and rename files intelligently</li><li><strong>Create expense reports</strong> — Turn a pile of receipt screenshots into a structured spreadsheet</li><li><strong>Draft reports</strong> — Synthesize scattered notes into a coherent first draft</li><li><strong>File organization</strong> — Clean up your desktop or organize documents by project</li></ul><h3>Real-World Performance: 320 Podcast Transcripts in 15 Minutes</h3><p>Lenny Rachitsky put Cowork to the test with a substantial task — analyzing 320 podcast transcripts to extract key insights.</p><p>Here’s what happened:</p><p><strong>The Task:</strong> “Go through every Lenny’s Podcast episode and pull out the 10 most important themes and lessons for product builders. Then give me the 10 most counterintuitive truths.”</p><p><strong>The Setup:</strong> Lenny gave Claude access to a folder containing 320 podcast transcripts.</p><p><strong>The Result:</strong> 15 minutes later, Claude delivered:</p><h3>The 10 Most Important Themes from Lenny’s Podcast</h3><ol><li><strong>Activation Is Everything</strong> — Slack’s “2,000 messages” moment, Gamma’s 30-second magic. Get users to value fast.</li><li><strong>Storytelling as a Superpower</strong> — Compelling narratives align organizations better than documents.</li><li><strong>Positioning Is Strategy, Not Marketing</strong> — April Dunford’s 5-step framework that starts with competitive alternatives, not messaging.</li><li><strong>Product Discovery Before Delivery</strong> — Teresa Torres’ Opportunity Solution Trees and Marty Cagan’s Four Risks framework. Talk to customers weekly, not quarterly.</li><li><strong>Ruthless Prioritization</strong> — Shreyas Doshi’s LNO Framework (Leverage/Neutral/Overhead) and focusing on opportunity cost over ROI.</li><li><strong>AI is Transforming Product Development</strong> — Model maximalism, evals as core PM skill, CEOs becoming ICs again.</li><li><strong>Empowered Teams vs. Feature Factories</strong> — Marty Cagan’s distinction: give teams problems to solve, not features to build.</li><li><strong>Build Your Operating System</strong> — Claire Hughes Johnson’s framework for founding documents, operating cadence, and decision frameworks.</li><li><strong>Pre-Mortems and Risk Anticipation</strong> — Shreyas Doshi’s technique to surface failure modes before they happen.</li><li><strong>Small Teams, Outsized Impact</strong> — Jason Fried’s 2-person/6-week constraints, Shopify’s pair programming culture.</li></ol><h3>The 10 Most Counterintuitive Truths</h3><ol><li><strong>Fear Gives Bad Advice</strong> — Do the Opposite — Whatever you’re afraid to do (hard conversation, telling board bad news) is exactly what you should do.</li><li><strong>Adding Friction Can INCREASE Conversion</strong> — Adding personalization questions to signup improved Amplitude’s conversion by 5%.</li><li><strong>Fewer Features = More Value</strong> — The Walkman succeeded because Sony REMOVED recording. QuickBooks wins with half the features at double the price.</li><li><strong>Adding People Makes You Slower (Absolutely)</strong> — Companies produce MORE total output after layoffs. Coordination overhead is silent killer.</li><li><strong>What Customers Say They Want Is Meaningless</strong> — 93% said they wanted energy-efficient homes. Nobody bought them. “Bitchin’ ain’t switchin’.”</li><li><strong>Goals Are Not Strategy</strong> — They’re Opposite — Richard Rumelt says confusing goals for strategy is most common strategic error. OKRs are often just wish lists.</li><li><strong>Don’t A/B Test Your Big Bets</strong> — Instagram and Airbnb actively reject testing for transformational changes. You can’t A/B test your way to greatness.</li><li><strong>Your Gut IS Data</strong> — Intuition is compressed experiential learning that isn’t statistically significant yet. Don’t discount it.</li><li><strong>By the Time You’re Thinking About Quitting, It’s Too Late</strong> — Stewart Butterfield killed Glitch while it was still growing 6–7% weekly. That’s why he could start Slack.</li><li><strong>Most PMs Are Overpaid and Unnecessary</strong> — Marty Cagan himself says feature teams don’t need PMs. Nikita Bier calls PM “not real.”</li></ol><p>Lenny’s verdict: “This is a substantial task — 320 podcast transcripts to analyze!”</p><p>That’s impressive — processing 320 transcripts and synthesizing them into actionable insights in just 15 minutes.</p><h3>The Mind-Blowing Part</h3><p>Here’s the detail that’s getting attention: <strong>Cowork was reportedly built in about a week and a half, and much of it was written by Claude Code itself.</strong></p><p>That’s right — Anthropic’s AI coding agent helped build its own non-technical sibling product. It’s a recursive improvement loop happening in real-time, and it shows how AI tools can accelerate their own development.</p><h3>Integration with Your Existing Tools</h3><p>Cowork doesn’t work in isolation. It integrates with:</p><ul><li><strong>Connectors</strong> — Link Claude to tools like Asana, Notion, Canva, Linear, and more</li><li><strong>Skills</strong> — Specialized capabilities for working with Excel, presentations, or following brand guidelines</li><li><strong>Chrome extension</strong> — Complete tasks that require browser access</li></ul><p>This means Claude can pull real data from your project management tools, generate documents in your preferred formats, and maintain context across your entire workflow.</p><h3>Safety First</h3><p>Anthropic is being upfront about the risks:</p><ul><li><strong>Controlled access</strong> — Claude can only access files you explicitly grant it access to</li><li><strong>Confirmation prompts</strong> — Claude asks before taking significant actions</li><li><strong>Clear instructions matter</strong> — Vague prompts could lead to unintended actions (like deleting files)</li><li><strong>Prompt injection risks</strong> — Like all AI agents, there are concerns about malicious content trying to hijack the agent</li></ul><p>They recommend starting with non-sensitive files while you learn how it works.</p><h3>Availability</h3><p>Right now, Cowork is available as a <strong>research preview</strong> for:</p><ul><li><strong>Claude Max subscribers</strong> ($100-$200/month) on macOS</li><li><strong>Waitlist available</strong> for users on other plans</li></ul><p>Windows support and broader availability are coming later.</p><h3>What This Means for the Future</h3><p>Cowork represents an interesting shift in AI — moving from chatbots that just talk to you, toward agents that can actually do things for you. It’s not about replacing developers or knowledge workers; it’s about giving them an AI collaborator that can handle the repetitive, time-consuming tasks that get in the way of real work.</p><p>The fact that Claude Code helped build Cowork shows how AI tools can compound each other’s capabilities. We’re seeing the beginning of AI systems that can build, improve, and extend themselves.</p><p>If you’re on Claude Max with a Mac, you can try Cowork today by clicking “Cowork” in the Claude Desktop sidebar. Everyone else can join the waitlist and see what the future of AI-assisted work looks like.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80914f355c65" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How the Creator of Claude Code Uses Claude Code: A Complete Breakdown]]></title>
            <link>https://sivarampg.medium.com/how-the-creator-of-claude-code-uses-claude-code-a-complete-breakdown-0481deedf64e?source=rss-e0b52f907876------2</link>
            <guid isPermaLink="false">https://medium.com/p/0481deedf64e</guid>
            <category><![CDATA[claude-code]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Sivaram P]]></dc:creator>
            <pubDate>Mon, 05 Jan 2026 09:28:42 GMT</pubDate>
            <atom:updated>2026-01-05T09:28:42.398Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1-sSeXkaPvojqsGcpni66Q.jpeg" /></figure><p>If you’ve ever wondered how the people who build AI tools actually use them, you’re in for a treat. Boris, the creator of Claude Code, recently shared his complete workflow on Twitter, and it’s a masterclass in maximizing AI-assisted development.</p><p>Original Thread — <a href="https://x.com/bcherny/status/2007179832300581177">https://x.com/bcherny/status/2007179832300581177</a></p><p>This isn’t just about using Claude Code — it’s about building an entire development ecosystem around AI that scales, automates, and produces high-quality code consistently.</p><p>Let’s break down Boris’s workflow tweet by tweet, with practical examples you can apply today.</p><h3>The Setup: 15+ Parallel Claude Sessions</h3><p>Boris runs Claude Code at an impressive scale:</p><ul><li><strong>5 terminal instances</strong> — Numbered tabs 1–5 with system notifications</li><li><strong>5–10 web sessions</strong> — On claude.ai/code, running in parallel</li><li><strong>iOS app sessions</strong> — Started from phone, checked later on desktop</li></ul><p>That’s <strong>15+ parallel Claude sessions</strong> across platforms!</p><h3>Why This Works</h3><p>The beauty of this approach is <strong>platform synergy</strong>:</p><p>PlatformBest For<strong>Terminal</strong>Active coding, file edits, running commands<strong>Web</strong>Code review, documentation, visual diffs<strong>iOS</strong>Quick prompts, starting long tasks, checking progress</p><h3>Cross-Platform Commands</h3><p>Boris uses powerful commands to move between platforms:</p><pre># Hand off long-running task to web<br>&gt; analyze this entire codebase and generate documentation &amp;</pre><pre># Teleport session back to terminal<br>claude --teleport &lt;session-id&gt;</pre><p>The &amp; operator backgrounds tasks to web, while --teleport moves sessions between devices. This is <strong>device continuity</strong> at its finest.</p><h3>Model Choice: Opus 4.5 with Thinking Mode</h3><p>Here’s a counterintuitive insight: Boris uses <strong>Opus 4.5 with thinking mode for everything</strong>.</p><p>You might think smaller/faster models save time, but Boris argues the opposite:</p><pre>Sonnet (fast) → 5 iterations → Total time: 5 minutes<br>Opus (slow) → 1 iteration → Total time: 2 minutes</pre><h3>The Math</h3><p>Opus is slower per request, but:</p><ul><li><strong>Less steering needed</strong> — Claude gets it right the first time</li><li><strong>Better tool use</strong> — Selects and uses tools correctly without guidance</li><li><strong>Fewer iterations</strong> — No constant course correction</li></ul><p><strong>The real bottleneck isn’t AI processing time — it’s human time spent steering and correcting.</strong></p><h3>When to Use Which Model</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*BSGyDhubJXU57CTd6ubXCw@2x.png" /></figure><h3>Team Knowledge: CLAUDE.md</h3><p>The Claude Code team maintains a <strong>single shared CLAUDE.md</strong> file checked into git. Everyone contributes multiple times per week.</p><h3>The Feedback Loop</h3><pre>Claude makes mistake<br>    ↓<br>Developer notices<br>    ↓<br>Add pattern to CLAUDE.md<br>    ↓<br>Commit to git<br>    ↓<br>Claude reads CLAUDE.md next session<br>    ↓<br>Claude avoids mistake</pre><h3>What Goes Into CLAUDE.md</h3><pre># CLAUDE.md for Claude Code Repo<br>## Common Bash Commands<br>- npm run build: Build the project<br>- npm run test: Run test suite<br>- npm run lint: Run linter<br><br>## Code Style Guidelines<br>- Use TypeScript strict mode<br>- Prefer const over let<br>- Use functional patterns over classes<br><br>## Repository Etiquette<br>- Branch naming: feature/description<br>- Prefer rebase over merge<br>- Commit messages: conventional commits<br><br>## Common Mistakes to Avoid<br>- Don&#39;t modify .claude/ directory directly<br>- Always run tests before committing<br>- Don&#39;t use deprecated APIs (list them)</pre><h3>Why This Works</h3><ul><li><strong>Captures tribal knowledge</strong> — Things not in official docs</li><li><strong>Prevents repeated mistakes</strong> — Learn once, apply forever</li><li><strong>Scales across teams</strong> — Each team optimizes for their codebase</li><li><strong>Version controlled</strong> — Track what changed and why</li></ul><h3>Automated Knowledge Extraction: GitHub Actions</h3><p>Boris takes CLAUDE.md a step further with <strong>automated knowledge extraction</strong>:</p><pre># PR Comment<br>@.claude Please review this PR and add any new patterns, <br>anti-patterns, or conventions to CLAUDE.md that should be <br>remembered for future work.</pre><h3>The GitHub Action Setup</h3><pre># Install Claude Code GitHub Action<br>/install-github-action</pre><p>This creates a workflow that:</p><ol><li>Triggers when @.claude is tagged in a PR</li><li>Claude analyzes the PR</li><li>Extracts patterns, anti-patterns, conventions</li><li>Updates CLAUDE.md automatically</li><li>Commits the change as part of the PR</li></ol><h3>Compounding Engineering</h3><p>This is <strong>Dan Shipper’s concept</strong> in action — knowledge compounds over time rather than being one-off gains.</p><pre>Week 1: CLAUDE.md has 20 patterns<br>Week 10: CLAUDE.md has 200 patterns<br>Week 50: CLAUDE.md has 1000 patterns</pre><pre>Claude gets exponentially smarter about your codebase!</pre><h3>Two-Phase Workflow: Plan Then Execute</h3><p>Boris uses a disciplined two-phase approach for complex tasks:</p><h3>Phase 1: Planning (Interactive)</h3><pre># Start Plan mode<br>[Shift+Tab][Shift+Tab]</pre><pre>&gt; I need to add user authentication with OAuth</pre><pre># Claude responds with plan:<br>## Plan: Add OAuth Authentication</pre><pre>1. Install OAuth library (passport-oauth2)<br>2. Create OAuth configuration file<br>3. Add OAuth routes (/auth/login, /auth/callback)<br>4. Update user model to store OAuth data<br>5. Create middleware for protected routes<br>6. Update frontend with login button<br>7. Add tests for OAuth flow</pre><pre>&gt; Looks good, but can we also add refresh tokens?</pre><pre># Claude updates plan...</pre><h3>Phase 2: Execution (Automated)</h3><pre># Switch to auto-accept mode<br>[Toggle auto-accept]</pre><pre># Claude executes in one shot<br>✓ Installing dependencies...<br>✓ Creating auth routes...<br>✓ Updating user model...<br>✓ All files modified<br>✓ Tests passing</pre><h3>Why This Works</h3><p><strong>Traditional approach:</strong></p><pre>&quot;Add feature X&quot; → Claude starts coding → <br>&quot;Wait, not like that&quot; → Claude adjusts → <br>Multiple iterations, wasted effort</pre><p><strong>Boris’s approach:</strong></p><pre>&quot;Add feature X&quot; → Plan mode → <br>Iterate until plan is perfect → <br>Auto-accept → Claude executes → Done!</pre><p>The key insight: <strong>A good plan is really important!</strong> Invest time upfront in planning, and save way more time in execution.</p><h3>Slash Commands: Automate Repeated Workflows</h3><p>Boris creates slash commands for every “inner loop” workflow he does multiple times per day.</p><h3>Example: /commit-push-pr</h3><pre>---<br>description: Commit changes, push to remote, and create PR<br>---</pre><pre># Git Status<br>!`git status --short`</pre><pre># Current Branch<br>!`git branch --show-current`</pre><pre># Recent Commits<br>!`git log -5 --oneline`</pre><pre>Based on git status above:</pre><pre>1. **Stage and commit** changes with a descriptive message<br>2. **Push** to remote repository<br>3. **Create PR** with:<br>   - Clear title summarizing changes<br>   - Detailed description of what was done<br>   - Link to any related issues<br>   - Request review from appropriate team members</pre><pre>Use conventional commit format (feat:, fix:, docs:, etc.)</pre><h3>The Power of Inline Bash</h3><p>The inline bash commands pre-compute context, avoiding back-and-forth:</p><pre>---<br>description: Run tests and commit if passing<br>---</pre><pre># Test Results<br>!`npm test 2&gt;&amp;1`</pre><pre># Type Check<br>!`npm run typecheck 2&gt;&amp;1`</pre><pre># Lint<br>!`npm run lint 2&gt;&amp;1`</pre><pre>If all checks pass:<br>1. Stage all changes<br>2. Commit with message: &quot;chore: pass tests and linting&quot;<br>3. Report success</pre><pre>If any check fails:<br>1. Report what failed<br>2. Suggest fixes<br>3. Don&#39;t commit</pre><h3>Where Commands Live</h3><pre>project/<br>├── .claude/<br>│   └── commands/<br>│       ├── commit-push-pr.md<br>│       ├── test-and-commit.md<br>│       ├── deploy-staging.md<br>│       └── ...<br>└── src/</pre><p>Commands are checked into git and shared across the team!</p><h3>Subagents: Specialized AI Assistants</h3><p>Boris uses subagents for domain-specific tasks:</p><ul><li><strong>code-simplifier</strong> — Simplifies code after Claude is done</li><li><strong>verify-app</strong> — Tests Claude Code end-to-end with detailed instructions</li></ul><h3>What Are Subagents?</h3><p>Subagents are pre-configured AI personalities with:</p><ul><li>Specific purpose and expertise area</li><li>Separate context window (doesn’t pollute main conversation)</li><li>Custom system prompts</li><li>Specific tool access</li></ul><h3>Example: code-simplifier</h3><pre>---<br>name: code-simplifier<br>description: Simplify code after Claude is done working. Use proactively after code changes.<br>tools: Read, Edit, Grep, Glob<br>model: inherit<br>---</pre><pre>You are a code simplification expert. Your goal is to make code more readable and maintainable without changing functionality.</pre><pre>Simplification principles:<br>- Reduce complexity and nesting<br>- Extract repeated logic into functions<br>- Use meaningful variable names<br>- Remove dead code and comments<br>- Simplify conditional logic<br>- Apply modern language features</pre><pre>Process:<br>1. Read the modified files<br>2. Identify simplification opportunities<br>3. Apply simplifications<br>4. Verify tests still pass<br>5. Report changes made</pre><pre>Never change functionality - only improve readability and maintainability.</pre><h3>Subagents vs Slash Commands</h3><p>AspectSlash CommandsSubagents<strong>Purpose</strong>Automate workflowsSpecialized expertise<strong>Context</strong>Same as mainSeparate context window<strong>System Prompt</strong>Simple instructionsDetailed, specialized<strong>Tool Access</strong>Inherits from mainCan be customized<strong>Best For</strong>Multi-step processesDomain-specific tasks</p><h3>Hooks: Automate Everything</h3><h3>PostToolUse Hook for Formatting</h3><p>Boris uses a PostToolUse hook to format Claude’s code automatically:</p><pre>// .claude/hooks.json<br>{<br>  &quot;hooks&quot;: {<br>    &quot;PostToolUse&quot;: [<br>      {<br>        &quot;matcher&quot;: &quot;Edit|Write&quot;,<br>        &quot;hooks&quot;: [<br>          {<br>            &quot;type&quot;: &quot;command&quot;,<br>            &quot;command&quot;: &quot;npx prettier --write \&quot;$CLAUDE_FILE_PATH\&quot;&quot;<br>          }<br>        ]<br>      }<br>    ]<br>  }<br>}</pre><p>This catches the <strong>last 10% of formatting issues</strong> that Claude might miss, preventing CI formatting errors.</p><h3>Why This Matters</h3><p><strong>Without hook:</strong></p><pre>Claude writes code → Push to PR → CI fails → <br>&quot;Formatting errors&quot; → Fix formatting → Push again → CI passes</pre><p><strong>With hook:</strong></p><pre>Claude writes code → Hook formats → Push to PR → CI passes ✓</pre><h3>Smart Permissions Management</h3><p>Boris doesn’t use --dangerously-skip-permissions. Instead, he uses /permissions to pre-allow common, safe commands.</p><h3>What NOT to Do</h3><pre># ❌ DON&#39;T DO THIS<br>claude --dangerously-skip-permissions<br># This allows Claude to run ANY command without asking!</pre><h3>What to Do Instead</h3><pre># ✅ DO THIS<br>/permissions</pre><pre># Pre-allow specific, safe commands<br>Bash(git status)<br>Bash(git diff)<br>Bash(git commit)<br>Bash(npm test)<br>Bash(npm run build)</pre><h3>Example Configuration</h3><pre>// .claude/settings.json<br>{<br>  &quot;permissions&quot;: {<br>    &quot;allowedTools&quot;: {<br>      &quot;Bash&quot;: {<br>        &quot;allowedCommands&quot;: [<br>          &quot;git status&quot;,<br>          &quot;git diff&quot;,<br>          &quot;git log&quot;,<br>          &quot;git commit&quot;,<br>          &quot;git push&quot;,<br>          &quot;npm test&quot;,<br>          &quot;npm run build&quot;,<br>          &quot;npm run lint&quot;,<br>          &quot;cat&quot;,<br>          &quot;ls&quot;,<br>          &quot;grep&quot;<br>        ]<br>      },<br>      &quot;Edit&quot;: {<br>        &quot;allowed&quot;: true<br>      },<br>      &quot;Read&quot;: {<br>        &quot;allowed&quot;: true<br>      }<br>    }<br>  }<br>}</pre><p>This approach gives you the <strong>convenience of auto-approval for safe operations while maintaining security for unknown commands</strong>.</p><h3>MCP Integration: Connect to All Your Tools</h3><p>Claude Code uses MCP (Model Context Protocol) to connect to external tools:</p><ul><li><strong>Slack</strong> — Post updates, notifications</li><li><strong>BigQuery</strong> — Run analytics queries via bq CLI</li><li><strong>Sentry</strong> — Fetch error logs</li></ul><h3>Example MCP Configuration</h3><pre>// .mcp.json<br>{<br>  &quot;mcpServers&quot;: {<br>    &quot;slack&quot;: {<br>      &quot;command&quot;: &quot;npx&quot;,<br>      &quot;args&quot;: [&quot;-y&quot;, &quot;@modelcontextprotocol/server-slack&quot;],<br>      &quot;env&quot;: {<br>        &quot;SLACK_BOT_TOKEN&quot;: &quot;xoxb-...&quot;,<br>        &quot;SLACK_TEAM_ID&quot;: &quot;T...&quot;<br>      }<br>    },<br>    &quot;filesystem&quot;: {<br>      &quot;command&quot;: &quot;npx&quot;,<br>      &quot;args&quot;: [&quot;-y&quot;, &quot;@modelcontextprotocol/server-filesystem&quot;, &quot;/path/to/files&quot;]<br>    }<br>  }<br>}</pre><h3>Real-World Use Cases</h3><p><strong>Slack Integration:</strong></p><pre>&gt; Deploy to staging and notify the team in #deployments</pre><pre>Claude: [Runs deployment]<br>Claude: [Uses Slack MCP server]<br>Claude: [Posts to #deployments channel]<br>✓ Deployment complete, team notified</pre><p><strong>BigQuery Analytics:</strong></p><pre>&gt; How many users signed up last week?</pre><pre>Claude: [Uses BigQuery MCP]<br>Claude: [Runs bq query]<br>Claude: [Analyzes results]<br>Last week: 1,247 new users</pre><p>The .mcp.json file is checked into git and shared with the team!</p><h3>Long-Running Tasks: Three Approaches</h3><p>For very long-running tasks, Boris has three strategies:</p><h3>Option A: Background Agent Verification</h3><pre>&gt; Implement this feature. When you&#39;re done, <br>  use a background agent to verify everything works.</pre><pre>Claude: [Implements feature]<br>Claude: [Launches background agent]<br>Claude: [Agent runs tests, checks functionality]<br>Claude: [Agent reports back]<br>✓ Feature implemented and verified</pre><h3>Option B: Stop Hook (Deterministic)</h3><pre>// .claude/hooks.json<br>{<br>  &quot;hooks&quot;: {<br>    &quot;Stop&quot;: [<br>      {<br>        &quot;matcher&quot;: &quot;&quot;,<br>        &quot;hooks&quot;: [<br>          {<br>            &quot;type&quot;: &quot;command&quot;,<br>            &quot;command&quot;: &quot;.claude/hooks/verify-work.sh&quot;<br>          }<br>        ]<br>      }<br>    ]<br>  }<br>}</pre><pre>#!/bin/bash<br># .claude/hooks/verify-work.sh</pre><pre># Run tests<br>npm test</pre><pre># If tests pass, allow exit<br>if [ $? -eq 0 ]; then<br>  echo &quot;✓ All tests passing&quot;<br>  exit 0<br>else<br>  echo &quot;✗ Tests failing - continue working&quot;<br>  exit 1  # Block exit<br>fi</pre><h3>Option C: Ralph Wiggum Plugin (Iterative Loops)</h3><p>The <strong>Ralph Wiggum</strong> technique, named after the Simpsons character, embodies persistent iteration despite setbacks.</p><pre># Start a Ralph loop<br>/ralph-loop &quot;Build a REST API for todos. Requirements: CRUD operations, input validation, tests. Output &lt;promise&gt;COMPLETE&lt;/promise&gt; when done.&quot; --completion-promise &quot;COMPLETE&quot; --max-iterations 50</pre><p><strong>How Ralph Works:</strong></p><pre>Iteration 1:<br>  Claude: [Implements basic API]<br>  Claude: [Tries to exit]<br>  Stop Hook: [Tests failing - block exit]<br>  Stop Hook: [Feed same prompt back]</pre><pre>Iteration 2:<br>  Claude: [Sees test failures]<br>  Claude: [Fixes bugs]<br>  Claude: [Tries to exit]<br>  Stop Hook: [Some tests still failing - block exit]</pre><pre>Iteration 3:<br>  Claude: [Fixes remaining bugs]<br>  Claude: [All tests passing]<br>  Claude: [Outputs &lt;promise&gt;COMPLETE&lt;/promise&gt;]<br>  Stop Hook: [Completion promise detected - allow exit]<br>✓ Done!</pre><p><strong>Real-World Results:</strong></p><ul><li>Generated 6 repositories overnight in Y Combinator hackathon</li><li>Completed $50k contract for $297 in API costs</li><li>Created entire programming language (“cursed”) over 3 months</li></ul><h3>Permission Modes for Long-Running Tasks</h3><p>To avoid permission prompts blocking long-running tasks:</p><pre># Option 1: Don&#39;t ask for permissions<br>claude --permission-mode=dontAsk</pre><pre># Option 2: Skip all permissions (ONLY IN SANDBOX!)<br>claude --dangerously-skip-permissions</pre><p>Use --dangerously-skip-permissions only in isolated, safe environments like Docker containers.</p><h3>The Most Important Tip: Verification</h3><p>Boris’s final tip is probably the most important:</p><blockquote><strong><em>Give Claude a way to verify its work. If Claude has that feedback loop, it will 2–3x the quality of the final result.</em></strong></blockquote><h3>Why Verification is Critical</h3><p><strong>Without verification:</strong></p><pre>Claude writes code → Pushes to PR → <br>CI fails → Bugs in production → <br>Manual debugging required</pre><p><strong>With verification:</strong></p><pre>Claude writes code → Tests it → <br>Sees failures → Fixes them → <br>Retests → Iterates until passing → <br>High-quality code</pre><h3>Verification Methods by Domain</h3><h4>1. Command-Line Verification</h4><pre>---<br>description: Implement and verify feature<br>---</pre><pre>Implement user authentication feature.</pre><pre>After implementation, verify by:<br>1. Running: npm test<br>2. Running: npm run typecheck<br>3. Running: npm run lint<br>4. Testing manually: npm run dev</pre><pre>Only consider complete when all checks pass.</pre><h4>2. Test Suite Verification</h4><pre>---<br>description: Feature with test verification<br>---</pre><pre>Add payment processing feature.</pre><pre>Verification requirements:<br>- Unit tests: npm run test:unit<br>- Integration tests: npm run test:integration<br>- E2E tests: npm run test:e2e<br>- Coverage: npm run test:coverage (must be &gt;80%)</pre><pre>Feature is complete only when:<br>✓ All test suites passing<br>✓ Coverage threshold met<br>✓ No linting errors<br>✓ TypeScript compilation successful</pre><h4>3. Browser Verification (Chrome Extension)</h4><p>Boris uses the Claude Chrome extension to test every change to claude.ai/code:</p><pre>---<br>description: Browser-verified feature<br>---</pre><pre>Update user registration flow.</pre><pre>Browser verification:<br>1. Open <a href="http://localhost:3000/register">http://localhost:3000/register</a><br>2. Fill in registration form with test data<br>3. Submit form<br>4. Verify success message appears<br>5. Verify user is logged in<br>6. Test validation errors (empty fields, invalid email)<br>7. Test password strength indicator<br>8. Verify UX feels smooth and responsive</pre><pre>Only complete when all browser tests pass.</pre><h4>4. API Verification</h4><pre>---<br>description: API-verified endpoint<br>---</pre><pre>Implement user creation endpoint.</pre><pre>API verification:<br>1. Test successful creation:<br>   curl -X POST <a href="http://localhost:3000/api/users">http://localhost:3000/api/users</a> \<br>     -H &quot;Content-Type: application/json&quot; \<br>     -d &#39;{&quot;name&quot;:&quot;Test User&quot;,&quot;email&quot;:&quot;test@example.com&quot;}&#39;</pre><pre>2. Test validation errors:<br>   - Missing required fields<br>   - Invalid email format<br>   - Duplicate email</pre><pre>3. Test authentication:<br>   - Without token (should fail)<br>   - With valid token (should succeed)<br>   - With expired token (should fail)</pre><pre>4. Verify response schema matches OpenAPI spec</pre><pre>Only complete when all API tests pass.</pre><h3>Making Verification Rock-Solid</h3><p><strong>Automated Tests:</strong></p><pre>npm test              # Unit tests<br>npm run test:integration  # Integration tests<br>npm run test:e2e         # End-to-end tests<br>npm run test:coverage    # Coverage reports</pre><p><strong>Linting &amp; Type Checking:</strong></p><pre>npm run lint           # ESLint/Prettier<br>npm run typecheck       # TypeScript<br>npm run audit           # Security audit</pre><p><strong>Pre-commit Hooks:</strong></p><pre>// package.json<br>{<br>  &quot;husky&quot;: {<br>    &quot;hooks&quot;: {<br>      &quot;pre-commit&quot;: &quot;npm run lint &amp;&amp; npm run typecheck &amp;&amp; npm test&quot;,<br>      &quot;pre-push&quot;: &quot;npm run test:integration&quot;<br>    }<br>  }<br>}</pre><h3>The Investment Pays Off</h3><pre>Setup verification: 1-2 hours initially<br>Maintain verification: 30 min/week</pre><pre>Without verification: 5-10 hours debugging per feature<br>With verification: 1-2 hours per feature</pre><pre>ROI: Break-even after 1-2 features, then pure savings!</pre><h3>Putting It All Together</h3><p>Here’s Boris’s complete workflow summarized:</p><ol><li><strong>15+ Parallel Sessions</strong> — Terminal, web, iOS</li><li><strong>Opus 4.5 + Thinking</strong> — Best model, faster overall</li><li><strong>Team CLAUDE.md</strong> — Shared knowledge base</li><li><strong>GitHub Action</strong> — Auto-update CLAUDE.md from PRs</li><li><strong>Plan Mode → Auto-Accept</strong> — Two-phase workflow</li><li><strong>Slash Commands</strong> — Automate repeated workflows</li><li><strong>Subagents</strong> — Specialized AI assistants</li><li><strong>PostToolUse Hook</strong> — Auto-format code</li><li><strong>Smart Permissions</strong> — Pre-allow safe commands</li><li><strong>MCP Integration</strong> — Connect to all tools</li><li><strong>Ralph Wiggum</strong> — Iterative loops for long tasks</li><li><strong>VERIFICATION</strong> — Most important: feedback loop!</li></ol><h3>Key Takeaways</h3><h3>The Feedback Loop is Everything</h3><pre>Claude writes code<br>    ↓<br>Tests it<br>    ↓<br>Sees failures<br>    ↓<br>Fixes them<br>    ↓<br>Retests<br>    ↓<br>Iterates until passing<br>    ↓<br>High-quality result (2-3x better!)</pre><h3>Invest in Verification</h3><ul><li>Make it automated</li><li>Make it comprehensive</li><li>Make it fast</li><li>Make it reliable</li><li>Make it part of every workflow</li></ul><h3>Start Small, Scale Up</h3><p>You don’t need to implement everything at once. Start with:</p><ol><li><strong>Create a CLAUDE.md</strong> — Document your project</li><li><strong>Set up one slash command</strong> — Automate a repeated workflow</li><li><strong>Add verification</strong> — Give Claude a way to test its work</li><li><strong>Configure permissions</strong> — Pre-allow safe commands</li><li><strong>Add a hook</strong> — Auto-format code</li></ol><p>Then iterate and expand from there.</p><h3>Resources</h3><ul><li><a href="https://code.claude.com/docs/en/overview">Claude Code Documentation</a></li><li><a href="https://github.com/anthropics/claude-code">Claude Code GitHub</a></li><li><a href="https://code.claude.com/docs/en/slash-commands">Slash Commands Reference</a></li><li><a href="https://code.claude.com/docs/en/sub-agents">Subagents Guide</a></li><li><a href="https://code.claude.com/docs/en/hooks-guide">Hooks Guide</a></li><li><a href="https://code.claude.com/docs/en/mcp">MCP Documentation</a></li><li><a href="https://github.com/anthropics/claude-plugins-official/tree/main/plugins/ralph-wiggum">Ralph Wiggum Plugin</a></li><li><a href="https://code.claude.com/docs/en/chrome">Claude Chrome Extension</a></li></ul><h3>Conclusion</h3><p>Boris’s workflow is impressive because it’s:</p><ul><li><strong>Scalable</strong> — Works for small and large projects</li><li><strong>Team-Oriented</strong> — Everything shared via git</li><li><strong>Automated</strong> — Minimizes manual work</li><li><strong>Verified</strong> — Quality assurance built-in</li><li><strong>Cross-Platform</strong> — Works everywhere</li></ul><p>The most important lesson: <strong>Give Claude a way to verify its work, and it will produce 2–3x better results.</strong></p><p>This is the secret sauce that makes Claude Code so powerful for Boris and the Claude Code team. By building a development ecosystem around AI — with shared knowledge, automated workflows, and robust verification — you can transform Claude from a helpful assistant into an autonomous, self-correcting development system.</p><p>Start small, iterate often, and watch your productivity soar!</p><p><em>Have you tried any of these techniques? What’s your workflow with Claude Code? Share your tips and experiences in the comments!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0481deedf64e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Real-Time VWAP Dashboard with Bun, Binance WebSockets and SQLite]]></title>
            <link>https://sivarampg.medium.com/building-a-real-time-vwap-dashboard-with-bun-binance-websockets-and-sqlite-71632f19b7c2?source=rss-e0b52f907876------2</link>
            <guid isPermaLink="false">https://medium.com/p/71632f19b7c2</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[realtime]]></category>
            <category><![CDATA[bunjs]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Sivaram P]]></dc:creator>
            <pubDate>Sun, 16 Nov 2025 02:54:29 GMT</pubDate>
            <atom:updated>2025-11-16T02:54:29.482Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A weekend project that escalated into a full deep dive into real-time systems.</em></p><p><strong>Live demo:</strong></p><p><a href="https://realtime-vwap-dashboard.sivaramp.com/">https://realtime-vwap-dashboard.sivaramp.com/</a></p><p>I started this as a tiny weekend thing.</p><p>Subscribe to a few Binance streams, compute VWAP, chart it, done.</p><p>Instead, I fell into a rabbit hole involving WebSocket fanout, flame graphs, SQLite tuning, React rendering bottlenecks, GC behavior, LRU caching, payload optimization, and a lot of low-level debugging I absolutely did not expect when I started.</p><p>This post walks through the architecture, the problems, the flame graphs, and the insights.</p><h3>What I Built</h3><p>A real-time dashboard that displays a 1-second VWAP for top crypto trading pairs.</p><p>The backend:</p><ul><li>connects to Binance aggTrade WebSocket streams</li><li>ingests 150–350 events per second</li><li>buckets trades into 1-second windows</li><li>computes VWAP</li><li>stores a sliding historical window in SQLite</li><li>broadcasts compact WebSocket messages to all connected clients</li></ul><p>All of this is implemented in <strong>one Bun TypeScript file</strong>, deployed as a <strong>Railway Bun Function</strong>.</p><h3>Tech Stack</h3><ul><li>Binance WebSocket Stream API <a href="https://developers.binance.com/docs/binance-spot-api-docs/web-socket-streams">https://developers.binance.com/docs/binance-spot-api-docs/web-socket-streams</a></li><li>Bun runtime <a href="https://bun.sh/">https://bun.sh</a></li><li>SQLite in WAL mode <a href="https://www.sqlite.org/wal.html">https://www.sqlite.org/wal.html</a></li><li>React frontend</li><li>Railway hosting <a href="https://railway.app/">https://railway.app</a></li></ul><p>No Redis.</p><p>No Kafka.</p><p>No message queues.</p><p>No background workers.</p><p>Just one process.</p><h3>Backend Architecture</h3><h3>1. Subscribing to 60+ Binance aggTrade streams</h3><p>One multiplexed WebSocket connection is enough:</p><pre>const streams = symbols.map((s) =&gt; `${s.toLowerCase()}@aggTrade`);<br>ws.send(<br>  JSON.stringify({<br>    method: &quot;SUBSCRIBE&quot;,<br>    params: streams,<br>    id: 1<br>  })<br>);</pre><p>This produces 150–350 messages per second depending on volatility.</p><h3>2. Bucketing trades per second and computing VWAP</h3><p>For each symbol, I maintain a 1-second rolling buffer of trades.</p><pre>function computeVWAP(trades) {<br>  let pv = 0;<br>  let vol = 0; for (const t of trades) {<br>    const price = Number(t.p);<br>    const qty = Number(t.q);<br>    pv += price * qty;<br>    vol += qty;<br>  }<br>  return vol === 0 ? null : pv / vol;<br>}</pre><p>Every second, each bucket is flushed, the VWAP computed, persisted, and broadcast.</p><h3>3. SQLite Persistence (WAL Mode)</h3><p>SQLite WAL handled this load almost effortlessly.</p><pre>db.exec(&quot;PRAGMA journal_mode=WAL;&quot;);<br>const stmt = db.prepare(<br>  &quot;INSERT INTO vwap (symbol, ts, vwap) VALUES (?1, ?2, ?3)&quot;<br>);for (const tick of batch) {<br>  stmt.run(tick.symbol, tick.ts, tick.vwap);<br>}</pre><p>I periodically trim old rows to maintain a sliding historical window.</p><h3>4. WebSocket Fanout to Clients</h3><p>The same Bun process also exposes a WebSocket server:</p><pre>server.publish(&quot;ticks&quot;, JSON.stringify(latestVWAPBatch));</pre><p>Frontend clients subscribe and receive compact batches every second.</p><h3>Frontend: Surprisingly the Hardest Part</h3><p>Rendering dozens of real-time charts with 1-second global updates was far more demanding than I expected. Chrome DevTools made it very obvious:</p><ul><li>layout thrashing</li><li>expensive React render cycles</li><li>GC noise from array cloning</li><li>SVG layerization issues</li><li>large diff surfaces causing re-renders</li><li>accidental state explosions</li></ul><p>After optimization, everything became much smoother, but it took a lot of profiling.</p><p>Below are the flame graphs that guided most of that work.</p><h3>Flame Graphs</h3><h3>Pre-Optimisation</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*LAlb_3ziXpf1X190.png" /></figure><p>Observations:</p><ul><li>heavy Recalculate Style</li><li>large layout and paint blocks per tick</li><li>unnecessary React renders</li><li>big GC spikes from slice and shift</li><li>too many nodes being diffed</li></ul><h3>Post-Optimisation</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*dLf7PYLAi8nx8ZTA.png" /></figure><p>Fixes:</p><ul><li>memoized derived values</li><li>batched state updates</li><li>trimmed arrays to avoid GC churn</li><li>reduced SVG complexity</li><li>far fewer style recalculations</li><li>predictable render cycle per second</li></ul><p>The flame graphs made the bottlenecks painfully clear and the improvements very measurable.</p><h3>Backend Observability (Railway Metrics)</h3><p>Railway’s built-in metrics were perfect for validating the system’s behavior under load.</p><h3>CPU Usage</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*5C9ZIl9BhDqe3VBS.png" /></figure><p>Notes:</p><ul><li>consistently around 0.1–0.2 vCPU</li><li>only spikes briefly during reconnects</li></ul><h3>Memory Usage</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*1of2_xq-EHZVNqcD.png" /></figure><p>Notes:</p><ul><li>stable around 60–70 MB</li><li>no leaks in the long-running rolling window</li></ul><h3>Network Egress</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*rkhYsHZHyuO4c_gl.png" /></figure><p>Notes:</p><ul><li>scales linearly with connected clients</li><li>compact payload kept spikes minimal</li></ul><h3>Disk Usage (SQLite WAL)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*o0qlutPAX4qaV3rJ.png" /></figure><p>Notes:</p><ul><li>WAL writes barely increase usage</li><li>trimming strategy keeps DB size stable</li></ul><h3>Backend Performance Summary (Bun + SQLite)</h3><p>Running for hours:</p><ul><li>CPU: ~0.2 vCPU</li><li>RAM: ~60 MB</li><li>Ingest: ~300 messages per second</li><li>Outbound: 60–100 messages per second per client</li><li>SQLite: WAL mode handled writes without strain</li><li>Multiple clients: 5–10 live users with no jitter</li></ul><p>For one single-file TypeScript process doing ingestion, calculation, persistence and broadcasting, this was extremely stable.</p><h3>What I Learned</h3><p>This small weekend project pushed me into:</p><ul><li>real-time streaming architecture</li><li>WebSocket fanout patterns</li><li>1-second VWAP windowing</li><li>React flame-graph optimization</li><li>GC-aware data structure choices</li><li>memory leak hunting in long-running processes</li><li>payload size tuning</li><li>SQLite WAL tuning</li></ul><p>One of the most unexpectedly fun dev projects I have done in a long time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=71632f19b7c2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Ingest 1 Billion Events Per Day Without Kafka: A Serverless Masterclass]]></title>
            <link>https://sivarampg.medium.com/how-to-ingest-1-billion-events-per-day-without-kafka-a-serverless-masterclass-b5157e96db8b?source=rss-e0b52f907876------2</link>
            <guid isPermaLink="false">https://medium.com/p/b5157e96db8b</guid>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[cloudflare]]></category>
            <category><![CDATA[distributed-systems]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Sivaram P]]></dc:creator>
            <pubDate>Tue, 11 Nov 2025 11:59:40 GMT</pubDate>
            <atom:updated>2025-11-11T11:59:40.834Z</atom:updated>
            <content:encoded><![CDATA[<p>Every so often, you stumble upon a system design that is so elegant and unconventional it forces you to rethink your entire approach to a problem. Recently, I saw a tweet from <a href="https://x.com/jsneedles">@jsneedles</a> detailing a data pipeline he helped build that is now ingesting <strong>~1 billion JSON events per day</strong> from a popular video game.</p><p>The most shocking part? There’s no Kafka, no Kinesis, no massive, managed message queue in sight. Instead, it’s a beautifully orchestrated dance of serverless primitives from Cloudflare, funneling data into the powerhouse OLAP database, ClickHouse.</p><p>This isn’t just another architecture diagram; it’s a lesson in leveraging the right tools for the job, embracing the edge, and achieving massive scale with startling simplicity and cost-effectiveness. Let’s break it down.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*D3HkR_3nUgJWkGeI.png" /></figure><blockquote>Credit where credit is due: This entire analysis is based on the architecture shared by <a href="https://x.com/jsneedles/status/1987624465937596596">jsneedles on X</a>. Go give him a follow!</blockquote><h3>The High-Level Flow</h3><p>At its core, the pipeline is a multi-stage, asynchronous process designed to get data from millions of gamers worldwide into an analytics database with minimal latency and maximum efficiency.</p><p><strong>Gamers → Receiver Worker → Tail Worker → CF Pipeline → R2 Storage → CF Queue → Insert Worker → ClickHouse</strong></p><p>Now, let’s dissect each component and understand the genius behind the choices made.</p><h3>Step 1: Ingestion at the Edge (Receiver Worker)</h3><p>The journey begins with a <strong>Cloudflare Worker</strong>. This isn’t a typical server in a single region; it’s a lightweight JavaScript V8 isolate deployed across Cloudflare’s entire global network of 300+ data centers.</p><ul><li><strong>Why it’s brilliant:</strong> When a game client anywhere in the world fires an event, it hits the geographically closest Worker. This minimizes network latency, providing a snappy response to the client. This “Receiver Worker” acts as the first line of defense — a globally distributed HTTP endpoint for validating schema, sanitizing data, and rejecting malformed events before they ever enter the pipeline.</li></ul><p>But this is where the first piece of “out-of-the-box” thinking appears. The Receiver Worker’s primary job isn’t to forward the event via another HTTP request. Instead, it does something much simpler:</p><p>Note: Example/Assumed Receiver Worker Implementation</p><pre>// Inside the Receiver Worker<br>export default {<br>    async fetch(request: Request) {<br>        try {<br>            const event = await request.json();<br>            // Validate and sanitize the event...<br>            if (isValid(event)) {<br>                // The magic trick: just log the data!<br>                console.log(&#39;PIPE_ME&#39;, JSON.stringify(event));<br>                return new Response(&#39;OK&#39;);<br>            }<br>            return new Response(&#39;Invalid event&#39;, { status: 400 });<br>        } catch (e) {<br>            return new Response(&#39;Error&#39;, { status: 500 });<br>        }<br>    },<br>};</pre><h3>Step 2: The Log-to-Stream “Hack” (Tail Worker)</h3><p>This is the most innovative part of the entire architecture. They’ve effectively created a serverless, globally-distributed message queue by using <strong>Cloudflare Tail Workers</strong>.</p><p>A Tail Worker is a special type of Worker that can be configured to “tail” the console.log() output of another Worker. It receives the logs in near real-time, not as a single stream, but in batches.</p><ul><li><strong>Why it’s brilliant:</strong> This completely bypasses the need for a traditional message broker. No Kafka clusters to manage, no SQS queues to configure. The console.log statement becomes the event producer. The &#39;PIPE_ME&#39; prefix is a clever namespace, allowing the Tail Worker to filter for only the logs it cares about. Cloudflare&#39;s internal infrastructure handles the routing and initial batching from potentially thousands of concurrent Receiver Worker invocations into manageable chunks for the Tail Worker.</li></ul><p>Note: Example/Assumed Tail Worker Implementation</p><pre>// Inside the Tail Worker<br>export default {<br>    async tail(events: TraceItem[], env: Env) {<br>        // &#39;events&#39; is an array of log entries from the Receiver Worker<br>        const batch = events<br>            .filter((e) =&gt; e.message.startsWith(&#39;PIPE_ME&#39;))<br>            .map((e) =&gt; JSON.parse(e.message.slice(8))); // Extract the JSONif (batch.length &gt; 0) {<br>            // Forward the batch to the next stage<br>            await env.PIPELINE.send(batch);<br>        }<br>    },<br>};</pre><h3>Step 3: Intelligent Batching (CF Pipeline)</h3><p>The diagram shows that the Tail Worker feeds into a <strong>CF Pipeline</strong> that “Batches every 90 seconds.” This is a crucial step for managing throughput. Writing one billion individual files to object storage would be an operational and financial nightmare due to the high number of write operations.</p><ul><li><strong>Why it’s brilliant:</strong> The 90-second window is a “Goldilocks” duration. It’s a fantastic trade-off between latency and efficiency. For an analytics use case, a 2–3 minute delay from event creation to query availability is perfectly acceptable. This window allows the pipeline to accumulate tens of thousands of events into a single, large object, which is vastly more efficient for both object storage and the downstream database.</li></ul><h3>Step 4: The Durable Buffer Zone (Cloudflare R2)</h3><p>The batched data lands in <strong>Cloudflare R2</strong>, a highly durable, S3-compatible object storage service.</p><ul><li><strong>Why it’s brilliant:</strong> R2’s killer feature is the <strong>$0 egress fees</strong>. In a traditional cloud architecture (e.g., AWS), moving data from S3 to a compute service like Lambda or EC2 for processing incurs data transfer costs. At a scale of 79TB, these costs would be astronomical. With R2, the Insert Worker can pull the data for free. R2 acts as a vital decoupling layer. If the downstream database (ClickHouse) is down for maintenance, events continue to pile up safely and cheaply in R2, ready for processing once the database is back online.</li></ul><h3>Step 5: The Trigger (CF Queue &amp; Insert Worker)</h3><p>Once the Pipeline service writes a new batch file to R2, how does the final stage know it’s time to act? This is where <strong>Cloudflare Queues</strong> come in.</p><p>R2 can be configured to send an event notification to a CF Queue whenever a new object is created. This message contains metadata about the new file (e.g., its key/name). A final “Insert Worker” is configured as a consumer for this queue.</p><ul><li><strong>Why it’s brilliant:</strong> This is a classic, robust event-driven pattern. The Insert Worker is invoked only when there is work to be done. It’s not polling R2 constantly. Its job is simple and focused:</li></ul><ol><li>Receive a message from the queue.</li><li>Use the message to fetch the large batch file from R2.</li><li>Parse the massive JSON array.</li><li>Perform a single, massive bulk insert into ClickHouse.</li></ol><h3>Step 6: The Analytics Powerhouse (ClickHouse)</h3><p>The final destination is <strong>ClickHouse</strong>. For this kind of high-volume analytics workload, it’s an exceptional choice.</p><ul><li><strong>Why it’s brilliant:</strong> ClickHouse is a columnar OLAP (Online Analytical Processing) database.</li><li><strong>Columnar Storage:</strong> Unlike traditional row-based databases (like Postgres), it stores data in columns. This makes analytical queries that aggregate over a few columns (SELECT user_id, SUM(score) ...) blazingly fast, as the database only needs to read the data for those specific columns.</li><li><strong>Incredible Compression:</strong> This columnar nature allows for phenomenal compression. The post mentions compressing 79TB of raw data down to just 12TB. That’s a ~6.5x reduction, saving immense storage costs.</li><li><strong>Built for Bulk Inserts:</strong> It thrives on ingesting large batches of data, which fits this architecture perfectly.</li></ul><p>It’s no surprise that data-intensive companies like <strong>Uber, TikTok, Ahrefs, and even Cloudflare itself</strong> rely on ClickHouse to power their real-time analytics.</p><h3>Built-In Resilience and Optimizations: Handling Failures and Edge Cases Gracefully</h3><p>What elevates this architecture from clever to production-hardened is its thoughtful handling of real-world messiness. Drawing from additional details shared by the original author, here’s how they’ve baked in resilience without adding complexity:</p><ul><li><strong>Failure Tolerance as a Feature:</strong> The ingest layer (Receiver Worker) is intentionally simple and “fallible” — it’s easy to debug and doesn’t cascade errors. They don’t chase “100% durability” because for analytics, losing a tiny fraction of events isn’t catastrophic. This pragmatic choice keeps costs down and speeds up development.</li><li><strong>R2 as the Ultimate Safety Net:</strong> Once events are batched and written to R2, the system becomes incredibly forgiving. Files can be re-ingested or re-queued at any time — perfect for handling upstream failures or manual replays. R2’s 11 nines of durability ensures data sticks around without you stressing.</li><li><strong>Mirrored Error Pipeline:</strong> A separate pipeline (mirroring the main one) captures parsing errors, storing raw payloads plus client metadata. It’s “dormant” most of the time, meaning low overhead, but it’s there when needed — turning potential data loss into actionable insights.</li><li><strong>Retries, Backoff, and DLQ for Inserts:</strong> ClickHouse inserts use exponential backoff retries to avoid hammering a flaky service. If retries fail, events land in a Dead Letter Queue (DLQ) for later replay through the original pipeline. Failures are even logged to a dedicated ClickHouse table, making error analysis as simple as a SQL query.</li><li><strong>Speed and Cost Optimizations with Tail Workers:</strong> By routing through Tail Workers, responses stay snappy — the Receiver doesn’t wait on potentially slow Pipeline calls. It saves money too: just the cost of reading the log and emitting (minimal CPU time at ~$0.50/million GB-seconds).</li><li><strong>The Hidden Large Payload Handler:</strong> Not in the diagram, but a stealth Worker handles oversized payloads. Instead of direct bindings (which are synchronous), it’s invoked via HTTP to leverage waitUntil for async processing. This ensures the main path doesn&#39;t block, even for chunky events. Here&#39;s a Typescript sketch (with a Bun twist for edge-friendly async—imagine deploying this on a Bun-powered worker!):</li></ul><p>Note: Example/Assumed Receiver Worker Implementation</p><pre>// In Receiver Worker (for large payloads)<br>export default {<br>  async fetch(request: Request, env: Env) {<br>    const payload = await request.json();<br>    if (payload.size &gt; MAX_SIZE) {  // e.g., 1MB threshold<br>      // Fire async HTTP to Large Payload Worker<br>      request.waitUntil(<br>        fetch(&#39;https://large-payload-worker.example.workers.dev&#39;, {<br>          method: &#39;POST&#39;,<br>          body: JSON.stringify(payload),<br>          headers: { &#39;Content-Type&#39;: &#39;application/json&#39; },<br>        })<br>      );<br>      return new Response(&#39;OK&#39;);  // Respond fast!<br>    }<br>    // Normal path: console.log for Tail Worker<br>    console.log(&#39;PIPE_ME&#39;, JSON.stringify(payload));<br>    return new Response(&#39;OK&#39;);<br>  },<br>};<br><br>// In Large Payload Worker<br>export default {<br>  async fetch(request: Request) {<br>    const payload = await request.json();<br>    // Process and send to Pipeline directly<br>    await env.PIPELINE.send(payload);  // Or batch if needed<br>    return new Response(&#39;Processed&#39;);<br>  },<br>};</pre><p>These tweaks show how the architecture isn’t just scalable — it’s resilient by design, turning potential weaknesses into strengths.</p><h3>Why This Architecture Wins</h3><ol><li><strong>Extreme Cost-Effectiveness:</strong> Let’s look at the costs (based on 2025 pricing):</li></ol><ul><li><strong>Workers:</strong> Pay-per-request and CPU-ms. At ~$0.30/million requests, 1B events/day (~30B/mo) is significant, but far cheaper than provisioning a global fleet of servers.</li><li><strong>R2 Storage:</strong> ~$0.015/GB/month. But the real win is <strong>$0 egress fees</strong>.</li><li><strong>Queues:</strong> ~$0.40/million operations.</li><li>This serverless model eliminates the cost of idle servers and the operational overhead of scaling.</li></ul><ol><li><strong>Massive, Effortless Scalability:</strong> The entire pipeline is built on services designed for Cloudflare’s planet-scale traffic. There are no servers to provision, no auto-scaling groups to configure. If traffic spikes from 1B to 5B events a day, the system just handles it.</li><li><strong>Incredible Simplicity &amp; Low Operational Overhead:</strong> Compare this to managing a self-hosted Kafka or Pulsar cluster. That requires dedicated teams for patching, scaling, monitoring, and disaster recovery. Here, the “message queue” is a console.log statement, and the &quot;stream processor&quot; is a managed service. This is a huge win for small, agile teams.</li></ol><h3>The Vendor Lock-In Question: A Pragmatic Choice</h3><p>Is this architecture heavily tied to Cloudflare? Absolutely. But “vendor lock-in” is not an absolute evil; it’s a trade-off.</p><p>For this specific use case — a high-volume, delay-tolerant analytics pipeline — the benefits gained are monumental:</p><ul><li>Unified security and networking model.</li><li>Seamless integration between primitives (Workers, R2, Queues).</li><li>Massive reduction in operational complexity.</li></ul><p>The cost and engineering effort required to build a vendor-agnostic equivalent would be orders of magnitude higher. Sometimes, leaning into a platform’s strengths is the most pragmatic and powerful engineering decision you can make.</p><h3>Final Thoughts</h3><p>This architecture is a beautiful example of “serverless-native” thinking. It’s not about lifting and shifting a traditional design to serverless components. It’s about fundamentally rethinking the flow of data using the unique primitives offered by the edge.</p><p>It’s a reminder that sometimes the most powerful solutions are not the most complex ones, but the ones that creatively leverage the platform they’re built on.</p><p>What’s the most innovative data pipeline you’ve seen recently? Share it in the comments below!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b5157e96db8b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MdBin — Better markdown Pastebin: Share Beautiful Rendered Markdown Instead of Raw Code]]></title>
            <link>https://sivarampg.medium.com/mdbin-share-beautiful-rendered-markdown-instead-of-raw-code-319fbf3a235b?source=rss-e0b52f907876------2</link>
            <guid isPermaLink="false">https://medium.com/p/319fbf3a235b</guid>
            <category><![CDATA[webdev]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[markdown]]></category>
            <category><![CDATA[productivity]]></category>
            <dc:creator><![CDATA[Sivaram P]]></dc:creator>
            <pubDate>Thu, 16 Oct 2025 03:55:43 GMT</pubDate>
            <atom:updated>2025-10-21T06:43:45.777Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Problem: Markdown Sharing is Broken</h3><p>If you’re working with AI tools like ChatGPT, Claude, or Cursor (and let’s be honest, who isn’t these days?), markdown has become an integral part of your daily workflow. But here’s the kicker: <strong>there’s no good way to share markdown content while preserving its formatting</strong>.</p><p>So I built <a href="https://mdbin.vercel.app/"><strong>MdBin</strong></a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q88okJdmFADXGdvkRb2dAg.png" /></figure><p>Let me paint you a picture:</p><ul><li><strong>Pastebin?</strong> Syntax highlighting is locked behind a paywall on the free tier.</li><li><strong>Messaging apps</strong> (Telegram, WhatsApp, Signal)? They squish everything together with zero control over wrapping or formatting.</li><li><strong>Slack/Teams/Discord?</strong> Great if everyone’s on the same platform, but what about external collaborators?</li><li><strong>GitHub Gists?</strong> Excellent, but feels heavy-handed for throwaway notes or quick information sharing.</li></ul><p>I found myself constantly frustrated trying to share structured information with both technical and non-technical folks. Raw markdown looks like gibberish to most people, and I needed something that “just works.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I07tSC-FS4uQzQKt9oifiw@2x.png" /></figure><h3>What is MdBin?</h3><p>MdBin (short for MarkdownBin) is a <strong>free, public utility</strong> that lets you share GitHub-esque rendered markdown content instantly. No signup. No paywalls. No friction.</p><p>Think of it as Pastebin meets GitHub’s markdown renderer, with a dash of simplicity sprinkled on top.</p><h3>Core Features</h3><ul><li><strong>Instant Sharing</strong>: Paste your markdown, click share, get a link. That’s it.</li><li><strong>Beautiful Rendering</strong>: GitHub-flavored markdown with full syntax highlighting for code blocks</li><li><strong>Simple Controls</strong>: Copy link, view raw markdown, or create a new paste — right from the top bar</li><li><strong>100% Free</strong>: All features available to everyone, always</li><li><strong>No Account Required</strong>: Zero friction, zero tracking, zero hassle</li><li><strong>Generous Limits</strong>: Up to 100KB per paste (that’s a LOT of markdown)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*tD-x-bL-3WchPZVx.png" /></figure><h3>Real-World Use Cases</h3><p>Here’s where MdBin really shines:</p><h3>1. LLM Context Sharing</h3><p>When working with AI assistants, you often need to share large chunks of structured information. Instead of pasting raw markdown that looks like line noise, share a MdBin link. Recipients see beautifully formatted content they can actually read.</p><h3>2. Throwaway Documentation</h3><p>Got meeting notes? Onboarding instructions? Quick guides? Don’t pollute your GitHub repos with temporary docs — use MdBin instead.</p><h3>3. Cross-Platform Collaboration</h3><p>Working with clients or collaborators who aren’t on your Slack/Discord/Teams? MdBin links work anywhere, for anyone.</p><h3>4. Technical Troubleshooting</h3><p>Share formatted error logs, configuration examples, or debugging notes with proper syntax highlighting.</p><h3>5. Code Snippets</h3><p>Need to share code examples without creating a full gist? MdBin has you covered with multi-language syntax highlighting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*Z8H3OwLFpyhtLC7F.png" /></figure><h3>Check Out These Examples</h3><p>Here are some real pastes to see MdBin in action:</p><ul><li><a href="https://mdbin.vercel.app/p/hgt151cu">Express.js Documentation</a> — Shows table of contents and structured content</li><li><a href="https://mdbin.vercel.app/p/nkubcuqr">Trading Strategy Guide</a> — Complex formatting with blockquotes, badges, and headings</li><li><a href="https://mdbin.vercel.app/p/irvn2ix0">Google Account Setup</a> — Multi-level lists and step-by-step instructions</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*MZBI-k-snOrAw90_.png" /></figure><h3>Tech Stack</h3><p>For the curious developers out there, MdBin is built with:</p><ul><li><strong>Next.js 15</strong> (App Router + Turbopack) — Blazing fast performance</li><li><strong>PostgreSQL</strong> with Drizzle ORM — Reliable, type-safe data storage</li><li><strong>Tailwind CSS v4</strong> — Clean, responsive styling</li><li><strong>Vercel</strong> — Lightning-fast deployment and edge functions</li><li><strong>Railway</strong> — Managed PostgreSQL database</li><li><strong>Brotli Compression</strong> — Efficient storage for large pastes</li></ul><p>The entire stack is optimized for speed and simplicity, both for users and for maintainability.</p><h3>The Philosophy: Simple, Fast, Free</h3><p>I built MdBin with three core principles:</p><ol><li><strong>Simple</strong>: No accounts, no configuration, no complexity. Just paste and share.</li><li><strong>Fast</strong>: Optimized with Turbopack and edge functions for instant loading.</li><li><strong>Free</strong>: All features available to everyone. No freemium nonsense.</li></ol><p>The goal isn’t to replace GitHub Gists or create the next big SaaS platform. It’s to solve one problem exceptionally well: <strong>sharing rendered markdown quickly and beautifully</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*QzGimGnWEG5SVEgf.png" /></figure><h3>What’s Next?</h3><p>MdBin is live and working great, but there’s always room for improvement. Some ideas I’m considering:</p><ul><li><strong>Expiration options</strong> (1 hour, 1 day, 1 week, permanent)</li><li><strong>Password protection</strong> for sensitive content</li><li><strong>Edit links</strong> for updating pastes</li><li><strong>Download as .md</strong> for offline use</li><li><strong>View counters</strong> for analytics</li><li><strong>Custom themes</strong> (beyond dark mode)</li></ul><h3>Try It Out!</h3><p>Head over to <a href="https://mdbin.vercel.app/"><strong>mdbin.vercel.app</strong></a> and give it a spin. Paste some markdown, share a link, see how it feels.</p><p>I’d love to hear your feedback:</p><ul><li>What features would make this more useful for you?</li><li>What pain points does this solve (or not solve) in your workflow?</li><li>What edge cases am I missing?</li></ul><p>Drop a comment below or open an issue on GitHub (repo coming soon)!</p><p><strong>TL;DR</strong>: Built a free tool to share rendered markdown with GitHub-style formatting because Pastebin paywalls syntax highlighting and messaging apps destroy formatting. Check it out at <a href="https://mdbin.vercel.app/">mdbin.vercel.app</a>.</p><p>No signup required. No bullshit. Just markdown that actually looks good.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=319fbf3a235b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ERC404 — The chimera of ERC20 & ERC721]]></title>
            <link>https://sivarampg.medium.com/erc404-the-chimera-of-erc20-erc721-fd37a5add427?source=rss-e0b52f907876------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd37a5add427</guid>
            <category><![CDATA[erc721]]></category>
            <category><![CDATA[erc20]]></category>
            <category><![CDATA[nft]]></category>
            <category><![CDATA[etherum]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <dc:creator><![CDATA[Sivaram P]]></dc:creator>
            <pubDate>Thu, 08 Feb 2024 20:45:11 GMT</pubDate>
            <atom:updated>2024-02-09T12:07:17.038Z</atom:updated>
            <content:encoded><![CDATA[<h3>ERC404 — The chimera of ERC20 &amp; ERC721</h3><h4>A knowledge base on a new, experimental &amp; promising non-standard which combines both ERC20 &amp; ERC721 functionality to enable native liquidity &amp; fractionalization.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YOe3qoU0zEhG-z78yR_85w.jpeg" /><figcaption><a href="https://www.pexels.com/photo/mixture-of-colorful-paints-8754591/">https://www.pexels.com/photo/mixture-of-colorful-paints-8754591/</a></figcaption></figure><p>ERC404 as the name is meant to suggest is a protocol which is literally nowhere to be found!. It’s neither in the EIP (Ethereum Improvement Proposals) or ERC (Ethereum Request for Comments), say WHATTT 😅</p><p>This experiment is the brain child of github user <a href="https://github.com/0xacme">0xacme</a>. The repository link to his initial version can be found below.</p><ul><li><a href="https://github.com/0xacme/ERC404">GitHub - 0xacme/ERC404</a></li><li><a href="https://github.com/0xacme/ERC404/blob/main/src/ERC404.sol">ERC404/src/ERC404.sol at main · 0xacme/ERC404</a></li></ul><h4>The creator’s ideology &amp; intent behind the ERC404 standard</h4><blockquote>ERC404 is an experimental, mixed ERC20 / ERC721 implementation with native liquidity and fractionalization. While these two standards are not designed to be mixed, this implementation strives to do so in as robust a manner as possible while minimizing tradeoffs.</blockquote><blockquote>In it’s current implementation, ERC404 effectively isolates ERC20 / ERC721 standard logic or introduces pathing where possible. Pathing could best be described as a lossy encoding scheme in which token amount data and ids occupy shared space under the assumption that negligible token transfers occupying id space do not or do not need to occur.</blockquote><blockquote>This standard is entirely experimental and unaudited, while testing has been conducted in an effort to ensure execution is as accurate as possible. The nature of overlapping standards, however, does imply that integrating protocols will not fully understand their mixed function.</blockquote><h3><strong>Fxstreet breaks it down the best</strong></h3><p><a href="https://www.fxstreet.com/cryptocurrencies/news/erc-404-ethereums-new-experimental-token-standard-and-eth-implications-202402080729">ERC-404 - Ethereum&#39;s new experimental token standard and ETH implications</a></p><h4><strong>ERC-404 key features breakdown:</strong></h4><ul><li><strong>Hybrid functionality</strong>: ERC-404 tokens can represent both fungible and non-fungible assets, offering flexibility for various use cases.</li><li><strong>Native liquidity</strong>: Unlike traditional NFTs, ERC-404 tokens have built-in liquidity mechanisms, allowing for easier trading and fractional ownership.</li><li><strong>Programmable scarcity</strong>: The supply of ERC-404 tokens can be dynamically adjusted through code, enabling innovative tokenomics models.</li></ul><h4>How does ERC-404 work?</h4><p>One NFT of the underlying project is awarded to the wallet that has a full ERC-404 token. When the token is sold, the NFT is automatically burned. Both the tokens and NFTs can be traded independently.</p><h4>Is ERC-404 safe?</h4><p>ERC-404 is not vetted, hence an experimental standard. Its development has not followed the traditional route — Ethereum Improvement Proposal (EIPs). Additionally, it has not undergone a full external audit, but it has been tested extensively.</p><h3><strong>Since the publication of ERC404 standard, there have been 2 notable projects built</strong></h3><h3>1) Pandora</h3><p><a href="https://www.pandora.build/">Pandora</a></p><p><strong>Coingecko Listing</strong>:- <a href="https://www.coingecko.com/en/coins/pandora">https://www.coingecko.com/en/coins/pandora</a></p><p><strong>Etherscan Contract Address</strong>:- <a href="https://etherscan.io/token/0x9E9FbDE7C7a83c43913BddC8779158F1368F0413">https://etherscan.io/token/0x9E9FbDE7C7a83c43913BddC8779158F1368F0413</a></p><h3>2) DeFrogs</h3><p><a href="https://defrogs.com/">Defrogs</a></p><p><strong>Coingecko Listing</strong>:- <a href="https://www.coingecko.com/en/coins/defrogs">https://www.coingecko.com/en/coins/defrogs</a></p><p><strong>Etherscan Contract Address</strong>:- <a href="https://etherscan.io/token/0xd555498a524612c67f286df0e0a9a64a73a7cdc7">https://etherscan.io/token/0xd555498a524612c67f286df0e0a9a64a73a7cdc7</a></p><p><strong>There have been a plethora of articles published on ERC404 which you can explore to get more understanding of how the ERC404 standard functions.</strong></p><ul><li><a href="https://www.fxstreet.com/cryptocurrencies/news/erc-404-ethereums-new-experimental-token-standard-and-eth-implications-202402080729">ERC-404 - Ethereum&#39;s new experimental token standard and ETH implications</a></li><li><a href="https://bnnbreaking.com/tech/erc-404-ethereums-innovative-token-standard-fusing-fungibility-and-nfts">ERC-404: Ethereum&#39;s Innovative Token Standard Fusing Fungibility and NFTs</a></li><li><a href="https://www.theblock.co/post/276477/these-developers-are-mashing-erc-20-tokens-and-nfts-together-will-it-work">These developers are mashing ERC-20 tokens and NFTs together: Will it work?</a></li><li><a href="https://www.tekedia.com/erc-721-and-erc-20-standards-can-create-a-new-paradigm-for-tokenization/">ERC-721 and ERC-20 standards can Create a new Paradigm for Tokenization - Tekedia</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd37a5add427" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[desilog.sivaramp.com — CC0 Placeholder images & APIs in an Indian context]]></title>
            <link>https://sivarampg.medium.com/desilog-sivaramp-com-cc0-placeholder-images-apis-in-an-indian-context-86045e0b7c02?source=rss-e0b52f907876------2</link>
            <guid isPermaLink="false">https://medium.com/p/86045e0b7c02</guid>
            <category><![CDATA[cloudflare]]></category>
            <category><![CDATA[placeholder-image]]></category>
            <category><![CDATA[vercel]]></category>
            <category><![CDATA[dynamic-api]]></category>
            <category><![CDATA[nextjs-13]]></category>
            <dc:creator><![CDATA[Sivaram P]]></dc:creator>
            <pubDate>Fri, 08 Sep 2023 01:25:52 GMT</pubDate>
            <atom:updated>2023-10-05T19:38:09.646Z</atom:updated>
            <content:encoded><![CDATA[<h3>Anaek Desi Log — Free CC0 Indian Placeholder Images &amp; APIs</h3><p><a href="https://desilog.sivaramp.com/">Anaek Desi Log - Free CC0 Indian Placeholder Images &amp; APIs</a></p><h4>Free dynamic, optimized or raw placeholder Images &amp; APIs in an Indian context!. CC0 Desi/Indian placeholder APIs for dynamically sized Avatars, Colourful as well as Black &amp; White Characters! Lorem Picsum but for images.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*24V8T7jW9EdQLKfRfdM5Bg.png" /></figure><h3>Get Random Dynamic Images</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0LEayEJmL_5QEpVO857mwQ.png" /></figure><h4>USAGE:</h4><ul><li><strong>URL</strong>:<br><strong>https://desilog.sivaramp.com/r/&lt;ASSET_TYPE&gt;/&lt;ASSET_WIDTH&gt;?&lt;OPTIONAL_RANDOM_STRING&gt;</strong></li><li><strong>ASSET_TYPE</strong>:<br>‘avatars’ | ‘characters’ | ‘characters-bw’</li><li><strong>ASSET_WIDTH</strong>:<br>Min value 1. Max value ASSET_TYPE == ‘avatars’ ? 1000 : 2000</li><li><strong>OPTIONAL_RANDOM_STRING</strong>:<br>Pass a random unique string to de-duplicate src URL in browser context. Works without param in fetch context!</li></ul><h3>Get Dynamic Width Avatars</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sulQYzwPLfkGiosiYhjqUw.png" /></figure><h4>USAGE:</h4><ul><li><strong>URL</strong>:<br><strong>https://desilog.sivaramp.com/i/&lt;ASSET_TYPE&gt;/&lt;ASSET_ID&gt;/&lt;ASSET_WIDTH&gt;</strong></li><li><strong>ASSET_TYPE</strong>:<br>avatars</li><li><strong>ASSET_ID</strong>:<br>Integer between 1 &amp; 39</li><li><strong>ASSET_WIDTH</strong>:<br>Integer between 1 &amp; 1000</li></ul><h3>Get Dynamic Width Characters</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oQXvYeaP8MHZSEYsSiTKdA.png" /></figure><h4>USAGE:</h4><ul><li><strong>URL</strong>:<br><strong>https://desilog.sivaramp.com/i/&lt;ASSET_TYPE&gt;/&lt;ASSET_ID&gt;/&lt;ASSET_WIDTH&gt;</strong></li><li><strong>ASSET_TYPE</strong>:<br>characters</li><li><strong>ASSET_ID</strong>:<br>Integer between 1 &amp; 72</li><li><strong>ASSET_WIDTH</strong>:<br>Integer between 1 &amp; 2000</li></ul><h3><strong>Get Dynamic Width Black &amp; White Characters</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8NkwwwLQxY3UyYjWFfDPWA.png" /></figure><h4>USAGE:</h4><ul><li><strong>URL</strong>:<br><strong>https://desilog.sivaramp.com/i/&lt;ASSET_TYPE&gt;/&lt;ASSET_ID&gt;/&lt;ASSET_WIDTH&gt;</strong></li><li><strong>ASSET_TYPE</strong>:<br>characters-bw</li><li><strong>ASSET_ID</strong>:<br>Integer between 1 &amp; 70</li><li><strong>ASSET_WIDTH</strong>:<br>Integer between 1 &amp; 2000</li></ul><h3>Get Optimized High Resolution Characters as JPEGs</h3><h4>URL:<strong> https://desilog.sivaramp.com/static/characters/vibrant/&lt;1–72&gt;.jpg</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*brN5jzy2nXeJXbORk8LUDA.png" /></figure><h3>Get Optimized High Resolution Characters as PNGs</h3><h4>URL: https://desilog.sivaramp.com/static/characters/vibrant/&lt;1–72&gt;.png</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oTcUQ_aNc3puW9NDCpNRnA.png" /></figure><h3>Get Raw High Resolution &amp; High Fidelity Characters as PNGs</h3><h4>URL: https://desilog.sivaramp.com/raw/characters/vibrant/&lt;1–72&gt;.png</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kRqTaWuf649BXAQ3xtO_Yg.png" /></figure><h3>Get Raw High Resolution &amp; High Fidelity Characters as JPEGs</h3><h4>URL: https://desilog.sivaramp.com/raw/characters/vibrant/&lt;1–72&gt;.jpg</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pGV1glQd467KR0CI29t9Uw.png" /></figure><h3>Get Optimised High Resolution B/W Characters as JPEGs</h3><h4>URL: https://desilog.sivaramp.com/static/characters/mono/&lt;1–70&gt;.jpg</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ujclTz6uaKoz-ZujZxNL4w.png" /></figure><h3>Get Optimised High Resolution B/W Characters as PNGs</h3><h4>URL: https://desilog.sivaramp.com/static/characters/mono/&lt;1–70&gt;.png</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8i6pEtcb8QqhHg8UqPT19Q.png" /></figure><h3>Get Raw High Resolution &amp; High Fidelity B/W Characters as PNGs</h3><h4>URL: https://desilog.sivaramp.com/raw/characters/mono/&lt;1–70&gt;.png</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_FjYKkjpE5LCJftWVnflKA.png" /></figure><h3>Get Raw High Resolution &amp; High Fidelity B/W Characters as JPEGs</h3><h4>URL: https://desilog.sivaramp.com/raw/characters/mono/&lt;1–70&gt;.jpg</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wm44UujA_ggBpXIaq2LUgg.png" /></figure><p>Hope you enjoy my creation and happy hacking :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=86045e0b7c02" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>