惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
B
Blog RSS Feed
宝玉的分享
宝玉的分享
腾讯CDC
博客园_首页
T
Tailwind CSS Blog
月光博客
月光博客
博客园 - 司徒正美
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
M
MIT News - Artificial intelligence
A
About on SuperTechFans
云风的 BLOG
云风的 BLOG
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
有赞技术团队
有赞技术团队
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
大猫的无限游戏
大猫的无限游戏
MongoDB | Blog
MongoDB | Blog
博客园 - 聂微东
V
Visual Studio Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
SecWiki News
SecWiki News
美团技术团队
P
Privacy International News Feed
H
Help Net Security
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Microsoft Security Blog
Microsoft Security Blog
Know Your Adversary
Know Your Adversary
Y
Y Combinator Blog
D
DataBreaches.Net
Project Zero
Project Zero
T
The Blog of Author Tim Ferriss
Cyberwarzone
Cyberwarzone
C
Cybersecurity and Infrastructure Security Agency CISA
C
Cisco Blogs
S
Schneier on Security
G
GRAHAM CLULEY
博客园 - 三生石上(FineUI控件)
Cisco Talos Blog
Cisco Talos Blog
小众软件
小众软件
Forbes - Security
Forbes - Security
D
Docker
T
Tenable Blog
S
Secure Thoughts
雷峰网
雷峰网
S
Security @ Cisco Blogs
T
The Exploit Database - CXSecurity.com
The Cloudflare Blog
博客园 - 【当耐特】
Spread Privacy
Spread Privacy
阮一峰的网络日志
阮一峰的网络日志

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
I Built the Zimnovate Agency Site With Astro and Google PageSpeed Gave It a Perfect Score Here's Why You Should Learn Astro
vincent mugondora · 2026-06-03 · via DEV Community

I'll be honest, when I first heard about Astro, I was skeptical. Another JavaScript framework? I already had React, Next.js was doing fine. Why bother?

Then I actually used it. I built the website for Zimnovate, my AI-native digital product studio based in Harare, Zimbabwe, with Astro, ran it through Google PageSpeed Insights, and got scores I'd never seen before on a site I actually built myself. That changed everything for me.

Let me tell you what Astro is, why it's architecturally different, and why it's worth learning, especially if you care about performance and SEO.


What Even Is Astro?

Astro is a web framework built around one radical idea: ship zero JavaScript by default.

Most modern frameworks (React, Vue, Svelte) are component-based and hydrate the entire page on the client. Even if your page is mostly static content, the user's browser still downloads and runs JavaScript to render it.

Astro flips this. It renders your components to pure HTML at build time. JavaScript only runs in the browser when you explicitly need it, and only for the specific components that need it.

This isn't just a config option. It's the core architecture.


The Architecture: Islands

Astro uses a pattern called Islands Architecture.

Think of your page as a static ocean with interactive "islands" floating in it. The ocean (static content, headings, text, images) ships as plain HTML. The islands (a navbar with a dropdown, a contact form, a live counter) are the only parts that hydrate with JavaScript.

---
// This runs only at build time zero runtime cost
const services = await fetch('/api/services').then(r => r.json())
---

<html>
  <body>
    <!-- Pure static HTML, no JS needed -->
    <h1>Zimnovate</h1>
    {services.map(service => <ServiceCard service={service} />)}

    <!-- This island hydrates only when visible -->
    <ContactForm client:visible />
  </body>
</html>

Enter fullscreen mode Exit fullscreen mode

The client:visible directive tells Astro: "only load this component's JavaScript when it scrolls into the viewport." You get full interactivity where you need it and zero overhead where you don't.

Other hydration directives include:

  • client:load — hydrate immediately on page load
  • client:idle — hydrate when the browser is idle
  • client:media — hydrate only on certain screen sizes

This level of control is something no other framework gives you out of the box.


What Google PageSpeed Actually Measures

Before I show you my scores, let me quickly explain what PageSpeed Insights tests, because it matters for understanding why Astro excels.

PageSpeed uses Core Web Vitals:

Metric What It Measures Good Score
LCP (Largest Contentful Paint) How fast the main content loads < 2.5s
FID / INP (Interaction to Next Paint) How fast the page responds to input < 200ms
CLS (Cumulative Layout Shift) Visual stability (no content jumping) < 0.1
FCP (First Contentful Paint) First pixel painted on screen < 1.8s
TTFB (Time to First Byte) Server response speed < 800ms

These metrics directly impact your Google search ranking. A slow site isn't just a bad user experience — it's an SEO penalty.


The Zimnovate Site: Astro + Tailwind CSS + Supabase

I built zimnovate.co.zw using Astro 4.x with Tailwind CSS and Supabase as the backend for blog content. No heavy UI library. Just Astro components, a clean layout, and a simple data layer.

The site has:

  • A landing page with the studio's positioning and services
  • A projects/case studies section
  • A blog powered by Supabase fetched at build time and rendered as static HTML
  • A contact section

Fetching Supabase Data at Build Time

This is where Astro really shines for a CMS-backed site. Instead of fetching blog posts on the client (slow, bad for SEO), the Supabase query runs once at build time. Every blog post page is pre-rendered to pure HTML before it ever reaches a user.

---
// src/pages/blog/index.astro
import { createClient } from '@supabase/supabase-js'

const supabase = createClient(
  import.meta.env.SUPABASE_URL,
  import.meta.env.SUPABASE_ANON_KEY
)

const { data: posts, error } = await supabase
  .from('posts')
  .select('id, title, slug, excerpt, published_at')
  .eq('published', true)
  .order('published_at', { ascending: false })
---

<html>
  <body>
    <h1>Blog</h1>
    <ul>
      {posts.map(post => (
        <li>
          <a href={`/blog/${post.slug}`}>
            <h2>{post.title}</h2>
            <p>{post.excerpt}</p>
            <time>{new Date(post.published_at).toLocaleDateString()}</time>
          </a>
        </li>
      ))}
    </ul>
  </body>
</html>

Enter fullscreen mode Exit fullscreen mode

And for individual post pages using dynamic routes:

---
// src/pages/blog/[slug].astro
import { createClient } from '@supabase/supabase-js'

const supabase = createClient(
  import.meta.env.SUPABASE_URL,
  import.meta.env.SUPABASE_ANON_KEY
)

// getStaticPaths tells Astro to pre-render a page for every post
export async function getStaticPaths() {
  const { data: posts } = await supabase
    .from('posts')
    .select('slug')
    .eq('published', true)

  return posts.map(post => ({ params: { slug: post.slug } }))
}

const { slug } = Astro.params
const { data: post } = await supabase
  .from('posts')
  .select('*')
  .eq('slug', slug)
  .single()
---

<html>
  <head>
    <title>{post.title}</title>
    <meta name="description" content={post.excerpt} />
  </head>
  <body>
    <article>
      <h1>{post.title}</h1>
      <div set:html={post.content} />
    </article>
  </body>
</html>

Enter fullscreen mode Exit fullscreen mode

At build time, Astro calls getStaticPaths, gets every post slug from Supabase, and pre-renders a fully static HTML page for each one. When a user visits /blog/my-post, they get a cached HTML file — no database query, no JavaScript, instant load.

This is the best of both worlds: a dynamic CMS (Supabase) with the performance of a static site.


Why Astro Is Good for SEO Beyond the Scores

Performance is one part of SEO. But Astro helps in other ways too.

1. Server-side rendering by default

Content is in the HTML when the page loads. Crawlers don't have to wait for JavaScript to render your page they read it immediately. This is a massive advantage over React SPAs where content often depends on client-side fetching. With Supabase content pre-rendered at build time, every blog post is fully indexable the moment it's deployed.

2. Built-in sitemap support

npx astro add sitemap

Enter fullscreen mode Exit fullscreen mode

One command. Astro generates your sitemap automatically based on your routes — including every dynamically generated blog post page from Supabase.

3. Structured metadata is first-class

---
const { title, description, image } = Astro.props
---
<head>
  <title>{title}</title>
  <meta name="description" content={description} />
  <meta property="og:image" content={image} />
  <meta name="twitter:card" content="summary_large_image" />
</head>

Enter fullscreen mode Exit fullscreen mode

You're writing HTML. There's no abstraction layer hiding what goes into your <head>. What you write is what the crawler sees.

4. Automatic static optimization

Every page Astro can pre-render, it will no configuration needed. Your Supabase-backed blog posts are no exception. They're cached at the CDN edge, load instantly worldwide, and the crawler reads fully-formed HTML on the first request.


Framework Agnostic — Bring What You Know

One of Astro's most underrated features: you can use React, Vue, Svelte, Solid, and even plain web components all in the same project.

---
import ReactComponent from './ReactComponent.jsx'
import VueWidget from './VueWidget.vue'
---

<ReactComponent client:load />
<VueWidget client:idle />

Enter fullscreen mode Exit fullscreen mode

If you're learning Astro coming from React, you don't have to throw away everything. You can migrate gradually, use what you know, and let Astro handle the performance layer.


When Should You Use Astro?

Astro is a great fit for:

  • Agency and company websites - exactly what I used it for
  • Marketing and landing pages - static, fast, SEO-critical
  • CMS-backed blogs — pair it with Supabase, Sanity, or any headless CMS
  • Portfolios and personal sites - where first impressions matter
  • Documentation sites - content-heavy, mostly static

Astro is not the right tool for:

  • Highly interactive apps (dashboards, real-time tools) - Next.js or SvelteKit fits better
  • Apps that need complex client state across many routes - React + a state manager makes more sense

But for content-driven, public-facing sites? Astro is the best tool I've used.


Getting Started (It's Simpler Than You Think)

npm create astro@latest my-site
cd my-site
npm install @supabase/supabase-js
npm run dev

Enter fullscreen mode Exit fullscreen mode

The CLI walks you through setup, starter templates, TypeScript options, and whether to add Tailwind. You're running locally in under two minutes.

From there:

  1. Edit src/pages/index.astro this is your homepage
  2. Add your Supabase credentials to .env
  3. Fetch your data in the frontmatter (it runs at build time, not in the browser)
  4. Run npm run build and deploy to Vercel or Netlify

Final Thoughts

The web got bloated. We started shipping entire application runtimes to render a paragraph of text. Astro is a course correction a framework that takes performance seriously at the architectural level, not as an afterthought.

The Supabase + Astro combination hits a sweet spot I haven't found elsewhere: a proper relational database for content management, with the performance profile of a fully static site. You write to Supabase, trigger a rebuild, and every page is pre-rendered HTML at the edge. No client-side data fetching. No hydration penalty. Nothing for crawlers to wait on.

For me, building zimnovate.co.zw in Astro wasn't just a project. It changed how I think about what I ship to users. Every kilobyte of JavaScript has a cost. Astro just makes it very easy to not pay that cost unless you have to.


Vincent Mugondora — Software Engineer & Founder of Zimnovate, an AI-native digital product studio based in Harare, Zimbabwe. Building Africa-optimized software products.

Have questions about the Astro + Supabase setup? Drop them in the comments.