Loading...
Loading...
Astro static site builder with islands architecture and content collections. Use for content sites.
npx skill4agent add g1joshi/agent-skills astro---
// Server-side code (Frontmatter) runs at build/request time
const data = await fetch('https://api.myjson.com').then(r => r.json());
---
<html>
<body>
<h1>{data.title}</h1>
<!-- Client Directive: This React component hydrates on load -->
<MyReactComponent client:load />
<!-- This Svelte component hydrates only when visible -->
<MySvelteComponent client:visible />
</body>
</html>const blogCollection = defineCollection({
schema: z.object({ title: z.string(), date: z.date() }),
});<Image />