Package Exports
- ampless
- ampless/media
Readme
ampless
CMS core library for AWS Amplify.
Pre-release / alpha. Breaking changes possible in any minor version until v1.0. See the root README for full docs.
Overview
ampless is the core library that powers the ampless CMS. It exposes:
defineConfig()— the user-facingcms.config.tsschemadefineSchema()— content type definitions (full custom-content-type system in v0.2)- The
Post/Page/Media/AuthContextshared types - The plugin contract (
definePlugin,AmplessPlugin, hooks,PluginRuntimeContext, event types,escapeXml/formatPublicAssetUrl) - A DI-style
setPostsProvider()that the templates' Amplify-data wrapper plugs into; without one the API serves built-in dummy posts so users can prototype before wiring AWS
You usually don't depend on ampless directly — it's pulled in transitively by create-ampless's blog template and by every @ampless/plugin-*. Install it directly only if you're writing your own plugin or theme.
Installation
npm install ampless@alphaUsage
import { defineConfig } from 'ampless'
export default defineConfig({
site: {
name: 'My Blog',
url: 'https://example.com',
},
plugins: [],
})Requirements
- Node.js >= 20
- AWS Amplify Gen 2