Skip to content

Astro Integration Kit is an awesome community project that aims to provide higher-level tools for integration developers while abstracting the low-level details of interacting with Astro and Vite internals.

Inox Tools’ Inline Modules are available as an AIK plugin for a simpler ergonomics on Astro integrations.

Getting Started

Add the desired plugins (or all plugins) to your defineIntegration call:

your-integration.ts
import { defineMiddlewarePlugin } from '@inox-tools/aik-mod';
export default defineIntegration({
name: 'your-integration',
plugins: [defineMiddlewarePlugin],
setup: () => ({
'astro:config:setup': ({ defineMiddleware }) => {
defineMiddleware('pre', (context, next) => {
// Your inline middleware
return next();
});
},
}),
});