The Astro with Nano Stores template showcases Astro's built-in support for nanostores to provide a shared state between components of any framework. This template demonstrates how to implement a lightweight, framework-agnostic state management solution that works seamlessly across different UI frameworks while maintaining optimal performance.

ItemDetails
RepositoryAzion Samples
FrameworkAstro
Use CaseE-commerce
Astro markdown with shiki

About this template

This template is built with Astro and integrates Nano Stores, a tiny state management library that keeps data in sync across components written in any framework. It’s a great fit for interactive features like shopping carts, where the same state must be shared between separate islands. Deployed on Azion, it’s served via a distributed architecture for fast, globally distributed delivery.

Key features

  • Framework-agnostic shared state powered by Nano Stores
  • Tiny runtime footprint that keeps client bundles small
  • Reactive stores that stay in sync across independent Astro islands
  • Edge-optimized delivery through Azion for low-latency access worldwide