Integration · Astroroadmap

AHTML for Astro — Vite plugin today, native integration v0.2

Astro is on Vite, so @ahtmljs/vite works in content-heavy Astro sites today. A native @ahtmljs/astro integration with content-collection auto-extraction is on the v0.2 roadmap.

Step 1 · Install
npm install @ahtmljs/vite @ahtmljs/schema
Step 2 · Wire it up
// astro.config.mjs
import { defineConfig } from 'astro/config';
import { ahtml } from '@ahtmljs/vite';

export default defineConfig({
  vite: {
    plugins: [ahtml({ manifest: ..., snapshot: ... })],
  },
});
Step 3 · Verify

Deploy. Then:

curl https://your-site.com/.well-known/ahtml.json
curl https://your-site.com/ahtml
curl https://your-site.com/llms.txt
Notes for Astro
  • Works with hybrid SSR and static output.
  • Native @ahtmljs/astro will auto-extract from content collections (v0.2).
  • Track progress at github.com/DibbayajyotiRoy/AHTML/blob/main/PLAN.md.

Three files. Three minutes.

npm: @ahtmljs/viteGitHubScore your site