Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Articles by Tony Spiro
Best Headless CMS for Astro in 2026: 4 Options Compared
Astro builds static HTML by default, which changes what you should want from a CMS. The content fetch runs once at build time, not on every request, so raw API latency matters far less than it does on a server-rendered stack. What matters instead is whether the SDK works cleanly inside Astro frontmatter, whether getStaticPaths can hydrate every page from a single query, and whether a rebuild gets triggered when an editor publishes. This guide compares four headless CMS platforms on those terms.
Connect Claude to Your CMS: A 5-Minute Guide to the Cosmic MCP Server
If you already run Claude every day, the next obvious question is whether it can touch your content. Not summarize it. Not draft copy in a chat window you then paste somewhere. Actually read your content model, query it, and write back to it. Cosmic answers that with an MCP server. This guide gets you connected in about five minutes, then covers the part most people skip: what Claude is allowed to do once it is connected.
Medusa.js + Next.js: How to Add a Content Layer to Your Storefront
Medusa is a strong commerce engine. It owns products, variants, pricing, inventory, carts, orders, and fulfillment, and it exposes all of it through a clean Store API. Once you have the Next.js Starter Storefront running, the commerce half of your site is basically solved. Then marketing asks for a buying guide on every category page, a founder story block on the product detail page, a seasonal landing page that goes live Friday at 9am, and an FAQ section that changes weekly.
Claude Sonnet 5 vs Opus 5: A Real-World Comparison (2026)
Originally published on the Cosmic blog. Anthropic shipped Claude Sonnet 5 on June 30, 2026 and Claude Opus 5 on July 24, 2026. Both are excellent. The expensive mistake is picking one, wiring it into every code path, and then either overpaying on trivial work or under-resourcing the work that actually matters. This is the practical breakdown: what each model is measurably good at, what the same job costs on each once you account for tokenization, and a routing rule you can ship this week.
How to Connect Claude Code to Your CMS with MCP
Claude Code is fluent in your repository and blind to your content. It can refactor the component that renders your blog, but ask it to publish the post that component displays and it has nowhere to look. The Model Context Protocol (MCP) closes that gap. It gives Claude Code a set of tools it can call against your CMS directly, so reading and writing content happens in the same conversation as the code. This guide connects Claude Code to a Cosmic bucket.
Let Your Marketing Team Edit Content Without Touching Code (2026)
Every content team has a version of this story. The marketing manager has copy ready. The changes are simple: swap a headline, update a product description, publish a new blog post. But the CMS is tangled with custom fields only a developer can navigate, or worse, the content lives directly in the codebase. So she opens a Jira ticket. The developer, mid-sprint, adds it to the queue. Three days later, the change goes live. Three days for a headline swap.
MCP Server Security: What Zero-Touch OAuth Means for Your Content Stack
The Model Context Protocol community just shipped a significant security update: Enterprise-Managed Authorization (EMA) is now stable. The official announcement landed on the MCP blog this week and is already the #1 story in developer circles, with Anthropic, Microsoft, Okta, Figma, Asana, Atlassian, Linear, and Supabase all adding support at launch. If your team uses MCP servers to connect AI agents to content, code, or data, this changes how you think about access control.
Cosmic as Agent Memory: Structured, Versioned, and Queryable
This is a refreshing take on the agent memory bottleneck. Everyone jumps straight to vector DBs for semantic retrieval, but they completely neglect the operational reality of running agents in production: debugging, human-in-the-loop validation, and prompt regression. Treating a headless CMS/structured API store as the episodic memory layer is brilliant for one major reason: human observability.
Why We Don't Call Cosmic an "AI CMS"
A new report from WordPress VIP landed on Hacker News this week. The headline: 60% of US consumers say seeing 'AI' in brand messaging makes them less likely to trust a product. 61% can't name a single brand that uses AI well in its messaging. And 7 in 10 say the internet feels less human than it did ten years ago. The comment section was mostly developers nodding along. We've been thinking about this for a while at Cosmic, and it's a good moment to explain a deliberate choice we made. We ship AI.
SpaceX Is Buying Cursor for $60B: What Developers Should Know Right Now
SpaceX has agreed to acquire Anysphere, the company behind Cursor, for $60 billion in stock. The deal was announced June 16, 2026, days after SpaceX's blockbuster IPO. It is the largest acquisition in AI developer tooling history. Cursor has roughly 4 million active developer users. If you are one of them, here is what to think through right now.
Answer Engine Optimization (AEO) for Headless CMS: How Structured Content Wins AI Search
Search behavior is shifting. A growing share of information queries now resolve inside AI-powered answer engines: ChatGPT, Perplexity, Google AI Overviews, Claude, and Bing Copilot. These systems don't rank ten blue links. They synthesize an answer from sources they trust, cite those sources inline, and move on. For content teams, this creates a new optimization discipline: Answer Engine Optimization (AEO), sometimes called Generative Engine Optimization (GEO).
Fable 5 and Mythos 5 Are Gone: What Developers Should Do Right Now
At 5:21pm ET on June 12, 2026, Anthropic received a US government export control directive requiring them to suspend all access to Fable 5 and Mythos 5 for every customer worldwide. No warning. No transition window. Just off. If you were building on Fable 5 via API, your integrations were at risk overnight. On Cosmic, they weren't. Here's what happened and what it means for you.
How to Give Your AI Agent a Budget (Before It Gives Itself One)
An AI agent running on behalf of a developer named JertLinc recently joined a hobbyist networking community called DN42 with one goal: scan the entire network and index it. Within 24 hours, it had provisioned five AWS m8g.12xlarge instances with 20 Gbps of bandwidth each, spun up load balancers, deployed Lambda functions, joined an IRC channel to collect opt-out requests, published a website, and racked up a verified AWS bill of $6,531.30.
When AI Agents Go Wrong: How Cosmic Keeps Them Scoped
Recently, a rogue AI agent hijacked a developer's Fedora account and spent weeks submitting pull requests, reassigning bugs, and generating LLM-fabricated responses to maintainer feedback, convincingly enough that one questionable PR made it into the Anaconda installer's 45.5 release before being caught and reverted. The full incident writeup on LWN is worth reading in full.
Build a DevOps Slack Agent with Cosmic: From "What Broke?" to PR in One Conversation
If you've ever been paged at 2am, opened Slack, typed 'what broke?' and then spent 20 minutes switching between terminals, dashboards, and GitHub tabs to figure out the answer, this tutorial is for you. We're going to build a DevOps agent that lives in your Slack channel.
Building a Static Site with Astro and Cosmic CMS
Astro's HTML-first philosophy is having a moment. A post on Hacker News this week about doubling user growth by going HTML-first cracked the top 10 with 383 points, and the replies were full of developers reconsidering their stacks. The short version: ship less JavaScript, get faster sites, keep more visitors. Astro is purpose-built for exactly this.
Claude Fable 5: What It Is and What It Means for Developers
Anthropic launched Claude Fable 5 today, June 9, 2026. It is the most capable model Anthropic has ever made generally available, and it lands at a price point below half of what Claude Mythos Preview costs. If you build on Claude, or if you are evaluating which frontier model to put at the center of your stack, this release changes the calculus. Here is everything you need to know, sourced directly from Anthropic's announcement. What Is Claude Fable 5?
How to Migrate from Contentful to Cosmic in 30 Minutes
Originally published on the Cosmic blog. Since Salesforce completed its acquisition of Contentful, teams across the industry have been re-evaluating their CMS stack. Pricing changes, roadmap uncertainty, and enterprise-first repositioning are pushing developers and content teams to look for a more focused alternative. If you've already decided to move on, this guide covers the practical how-to.
60% of New Databases Are Launched by AI: What It Means for Your Stack
This article was originally published on the Cosmic blog. Supabase recently shared a number that stopped a lot of developers mid-scroll: 60% of new databases on their platform are now launched by AI tools, with year-over-year growth in AI-initiated provisioning running at roughly 600%. That is a measurement of what is already happening in production. The database layer is one of the most consequential parts of any application.
Astro 6.4 + Cosmic: The Fastest Content Stack in 2026
Originally published on the Cosmic blog. Astro 6.4 landed recently, and the headline feature is hard to ignore: a brand-new Rust-based Markdown processor called Sätteri that shaved over a minute off build times for both the Astro and Cloudflare docs sites. Combine that with Cosmic's sub-100ms REST API responses and you have a content pipeline that nothing else on the market can touch right now.
Why Digital Agencies Are Moving Client Sites to Headless CMS in 2026
Originally published on the Cosmic blog. If you run a digital agency, you have probably lived this scenario: a client calls because they need to update a hero image on their homepage. The request goes to your dev team, sits in a queue, gets deployed two days later. The client is frustrated. Your developers are annoyed at the interruption. And you just spent real engineering time on a task that should have taken a content editor 90 seconds. Headless CMS changes this dynamic entirely.
Building with Bun and Cosmic: The Fastest JavaScript Stack in 2026
Originally published on the Cosmic blog. Bun v1.3 is the fastest JavaScript runtime you can use right now. Cosmic's REST API returns content in under 100ms. Put them together and you get a full-stack setup that's faster at every layer: cold starts, package installation, HTTP requests, and content delivery. This is a practical tutorial.
Claude Sonnet 4.5 vs 4.6: What Changed and Which Should You Use?
Anthropic shipped Claude Sonnet 4.6 in February 2026, roughly five months after Sonnet 4.5 launched in September 2025. Both carry the same API pricing ($3 input / $15 output per million tokens), but the gap in capability is meaningful. If you're picking a model to build on right now, the choice matters. This post breaks down exactly what changed, which use cases favor each model, and how to connect either one to a real content layer using the Cosmic JavaScript SDK.
Why Bun is Rewriting in Rust (And What It Means for JavaScript Developers)
Bun started as a bet that JavaScript tooling could be much faster. That bet paid off. Now, Bun is making another one: rewriting its runtime in Rust. Here's everything you need to know about why, where things stand, and what it means if you're building JavaScript applications today. What Is Bun and Why It Matters Bun is an all-in-one JavaScript toolkit. It combines a fast JavaScript runtime, a bundler, a package manager, a test runner, and a transpiler into a single binary.
How to Build a React Blog with Next.js and Cosmic
Building a blog with React and Next.js is one of the most common use cases for modern web development. But where you store and manage your content matters just as much as the frontend you choose. In this tutorial, you'll learn how to build a fast, production-ready React blog using the Next.js App Router and Cosmic as your headless CMS. Want to skip ahead? Grab the free Simple React Blog template and deploy in minutes. Why Use a Headless CMS for a React Blog?
MCP vs Agent Skills: What's the Difference and Which Do You Need?
Originally published at cosmicjs.com Two terms keep coming up in every AI developer conversation right now: MCP (Model Context Protocol) and Agent Skills. They sound similar. They're not the same thing. Here's a clear breakdown of what each is, when to use which, and how Cosmic implements both. What Is MCP? MCP (Model Context Protocol) is an open protocol developed by Anthropic that lets AI models connect to external tools and data sources in a standardized way.
Astro vs Next.js: Which Framework Should You Use in 2026?
Originally published at cosmicjs.com Choosing between Astro and Next.js in 2026? Both are excellent frameworks, but they solve different problems. This guide breaks down the real tradeoffs so you can make the right call for your project. The Short Answer Use Astro when your site is content-heavy and you want maximum performance with minimal JavaScript. Use Next.js when you need a full-stack React application with dynamic data, auth, and API routes.
AI as Coordinator: Why SaaS Must Bundle or Die
For most of the last decade, the conventional wisdom in software was simple: use the best tool for every job. The CRM that wins on contact management. The CMS that wins on editor experience. The analytics platform that wins on dashboards. The best-of-breed stack, stitched together by integrations and held together by the humans navigating between them. That era is over. I don't think this is coming. I think it has already happened. And I don't think most SaaS companies understand the implications yet.
What Agent-Native Means for Your Content Infrastructure
"Agent-native" is being claimed by a lot of companies right now. Here's what it actually means at the content infrastructure layer — where agents read, write, and publish the content that everything else depends on. Every Layer Is Being Redesigned Every layer of the software stack is being redesigned for AI agents. The frontend layer, the code layer, the deployment layer. But there's one layer getting less attention — and it's the one agents depend on most: the content infrastructure layer.
Why Cosmic Uses REST (and Why That's the Right Call in 2026)
Every few years, a new API paradigm gets declared the future. GraphQL had its moment. And it's genuinely good — for certain use cases. But "good for certain use cases" and "better default for most teams" are different claims. REST is still the right default, and in 2026 there's a new reason it matters: AI agents. Here's an honest breakdown of the tradeoffs, and why Cosmic is REST-first by design. The Honest GraphQL vs REST Comparison Let's be direct about where each one wins.
How We Built AI Agents Into a Headless CMS
Most AI features in a CMS are cosmetic. Autocomplete here. A "generate with AI" button there. Useful, sure, but they don't change how teams actually work. We wanted to go further. We wanted the CMS to have its own team. This post is a technical walkthrough of how we built four specialized AI agents directly into Cosmic, how they communicate, what they can actually do, and how you can chain them together into fully automated workflows.
Cosmic Agents vs Sanity Agent Context vs Hygraph AI: A Real Comparison
The phrase "AI-powered CMS" has become meaningless. Every headless CMS vendor is using it. The real question is: what does the AI actually do? Cosmic, Sanity, and Hygraph are three of the most actively developed headless CMS platforms in 2026. All three are investing in AI. But their approaches are categorically different, and the distinction matters for how you build. This comparison looks at what each platform's AI actually does, where it stops, and which approach fits what kind of team.
How to Migrate from Storyblok to Cosmic
A step-by-step guide for developers migrating from Storyblok to Cosmic: content model mapping, component-to-metafield conversion, media migration, API migration, and webhooks — with real TypeScript code examples. Why Developers Are Migrating from Storyblok to Cosmic Storyblok was a smart choice for teams who wanted a visual editor baked into their CMS. But as applications grow in complexity and AI becomes central to content operations, its limitations become harder to work around.
Why Headless CMS Is the Wrong Category
The term "headless CMS" made sense in 2015. It was a genuine breakthrough: decouple your content from your presentation layer, expose it through an API, and let developers build whatever frontend they wanted. It solved a real problem. In 2026, calling a platform like Cosmic a "headless CMS" is like calling Vercel a "file host." Technically not wrong. Strategically, completely wrong. The category has moved. The label hasn't. It's time to name what comes next. 1.
Headless CMS for TanStack Start: Build a Blog with Cosmic
You want SSR, fast routing, and a CMS your whole team can edit without touching code. Here's how to build that stack in under an hour. TanStack Start pairs naturally with Cosmic: Start handles full-document SSR, streaming, and type-safe routing via Vite and TanStack Router, while Cosmic gives you a structured, API-first content layer your editors can use without a developer in the room. The result is a modern content stack that's fast to build, easy to maintain, and genuinely pleasant to work with.
The CMS is Dead. Long Live the CMS.
I've spent decades working in web development, watching dev teams and content teams try to work together. They both want the same thing: ship faster, break less, keep the business moving. But somewhere between the content editor's request and the developer's deploy, everything slows down. The bottleneck was never really the software. It was people. Not bad people. Just people with competing priorities, full backlogs, and a finite number of hours.
How to Migrate from Drupal to Cosmic
Drupal served a generation of content teams well. But between the PHP overhead, major-version upgrade cycles, and the complete absence of native AI capabilities, many teams are now making the move to a modern headless CMS. This guide walks you through migrating from Drupal to Cosmic step by step, with real TypeScript code you can run today. Why Teams Are Leaving Drupal Now Drupal 7 reached end-of-life in January 2025.
Cosmic: AI-first app development, deployment, and content management | Product Hunt
Hey PH, I'm Tony, CEO at Cosmic. We're excited to announce the launch of the Cosmic AI Platform, a revolutionary system that transforms how you create content, build, and deploy applications. The Cosmic AI Platform reinvents what a CMS can be - it's now a complete AI-enabled application development and deployment platform. Build and deploy anything you can imagine using natural language, in minutes.
Build and deploy a Next.js ecommerce website in 5 steps
In this article, I'm going to show you how to build and deploy an ecommerce website in 5 steps. By leveraging the Cosmic React component library Blocks, we can build a high performance ecommerce website ready to accept product purchases in a matter of minutes. Let's go. 1. Install the Cosmic ecommerce Block Start by installing a new Next.js app. Run the following command in your terminal application.
How to Upload Media to Your Bucket Using the Cosmic JS API
Tony Spiro is the Co-Founder of Cosmic JS, an API-first Content Management Platform for building content-powered apps. In this short tutorial I’m going to show you how to: Upload an image to your Cosmic JS Bucket via the Cosmic JS API. Alter your image using the powerful Imgix processing service (free with every Cosmic JS Bucket) Add the uploaded image as a Metafield to an Object in your Bucket Getting Started Sign up for Cosmic JS to create your own Bucket or just follow along with the examples.
In Defense of the Cloud
The cloud has taken a PR beating recently. Two systems seemingly too big to fail did: CloudFlare and AWS S3. The former was a security issue that caused sensitive data to show up in search results, the latter brought nearly the entire Internet down for the better part of a day on February 28, 2017. Who Do You Trust? AWS S3 has been the standard in static file storage for years and many websites and apps are dependent on it for JavaScript, CSS, images and other files.
Integrating API-first Optimized Video Using a Headless CMS
Video is hard. Encoding, serving the right version to the right browser, device optimization, bandwidth consideration, it’s all pretty daunting. Thankfully there’s Mux and the new Mux Videos Extension, which allow you to add best-in-class video delivery to your application without the headache. In this overview, I’m going to show you how to use the Mux Videos Extension to power video content in your application in just a few clicks using the Cosmic JS Headless CMS.
Install a Cosmic-powered Nuxt.js App on Digital Ocean in 5 minutes
Digital Ocean, a hosting provider beloved by developers, provides a highly intuitive interface for deploying and managing application infrastructure. In this tutorial I’m going to show you how to install and deploy a Cosmic-powered Nuxt.js app on Digital Ocean. In just a few commands, and a few minutes, you’ll be up and running with a Cosmic-powered app on a scalable Digital Ocean Droplet, ready for team collaboration.
Nuxt.js Website Boilerplate
Check out this website boilerplate built on Nuxt.js and Cosmic JS. It satisfies some common website requirements including dynamic pages, blog articles, author management, SEO ability, contact form and website search. TL;DR Download the GitHub repo Check out the demo.
Next.js Website Boilerplate
Check out this website boilerplate built on Next.js and Cosmic JS. It satisfies some common website requirements including dynamic pages, blog articles, author management, SEO ability, contact form and website search. TL;DR Download the Next.js Website Boilerplate GitHub repo. Check out the demo.
Sending Emails with the SendGrid Cosmic Function
We recently released Cosmic Functions (public beta). We’re excited to help teams build amazing modern products together with new serverless solutions. In this short tutorial, I’m going to show you how to get up and running with the SendGrid Email Function to send emails via SendGrid (to view more example functions login and go to Your Bucket > Settings > Functions). Deploying the Function 1.
Powering a React + Next.js Blog With Cosmic JS
TLDR; Cosmic JS provides an excellent backend for blogs. It is a fully-featured content management system (CMS) with an intuitive user interface that a non-technical client can use to manage their site content. Follow the links below for code and demo: TL;DR: React + Next.js Blog App React + Next.js Blog Demo React + Next.js Blog Codebase Intro Every blog needs a solid CMS.
How to Build a Simple Blog Using Node.js
In this tutorial I’m going to show you how to create a simple blog using Node.js and Cosmic JS. This is going to be the fastest and most light-weight blog you have ever created. Let’s get started. TL;DR View the demo Install the Simple Blog App on Cosmic JS View the codebase on GitHub Getting Started Make sure that you have Node.js and NPM installed on your machine, if not, visit the Node.js website to install the latest version.
Build Your Own React Universal Blog App
A practical walkthrough of building a flexible and reactive app with React. You’ll start with a local server, create a production bundle, progress to components and finally render your app.
How We Built the Story Licensing App using Next.js, Algolia and Cosmic JS
We recently built the Story Licensing application using some of the most powerful development tools available. By offloading the non-core development functionality onto available API services, we were able to build this application faster than I ever could have imagined. I’m excited to share with you how we did it. TL;DR Check out the live Story Licensing app The Requirements Every application starts with a goal and requirements.
Show More
loading
Actions
Is this you?
As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.Get in touch with Tony
Contact Tony, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack