@coherent.js/adapters
v1.0.0-beta.5
Published
Framework adapters for Coherent.js (Astro, Remix, SvelteKit)
Maintainers
Readme
@coherent.js/adapters
Framework adapters for Coherent.js, providing seamless integration with popular web frameworks.
Supported Frameworks
- Astro - Full SSR integration
- Remix - Loader and component adapters
- SvelteKit - Adapter and preprocessor
Installation
npm install @coherent.js/adaptersExports
Framework adapters
Modular Imports (Tree-Shakable)
- Adapter utilities:
@coherent.js/adapters
Example Usage
import { createAdapter } from '@coherent.js/adapters';Note: All exports are tree-shakable. Import only what you need for optimal bundle size.
Usage
Astro Integration
import { createAstroIntegration } from '@coherent.js/adapters/astro';
export default {
integrations: [
createAstroIntegration()
]
};Remix Adapter
import { createRemixAdapter } from '@coherent.js/adapters/remix';
const adapter = createRemixAdapter();SvelteKit Adapter
import { createSvelteKitAdapter } from '@coherent.js/adapters/sveltekit';
export default {
kit: {
adapter: createSvelteKitAdapter()
}
};