DocsStart hereGetting started
Quick install
Your next great build starts here

Get started with Eddyter.

A thoughtful editing experience, built into your product. Pick your framework and go from first install to a working editor.

Last updated

Choose your frameworkOne editor. Your stack.

Compatibility

@eddyter/astro supports Astro 4, 5, 6 and 7 in static and on-demand (SSR) output. It is a server-rendered component backed by a custom element, so you don't need @astrojs/react or a client:* directive.

Use the server-rendered <Eddyter /> component in any Astro site. It needs no UI framework integration and no client:* directive, because a small custom element mounts the editor in the browser.

Set up with AI

Let your AI add Eddyter to your Astro app

Pick your AI tool and get a request written for your exact setup. Paste it, and your assistant writes the integration.

CursorClaude CodeCodexChatGPT or Claude
request for Astro
# Add the Eddyter editor to my Astro project My setup: Astro 4–7 $ npm install @eddyter/astro
1

Install the package

Add @eddyter/astro to your project with your preferred package manager.

npm install @eddyter/astro
2

Configure the API key

Add your key to .env. The PUBLIC_ prefix exposes it to the browser, where the editor validates it:

.env
PUBLIC_EDDYTER_API_KEY=your-api-key

Production note

Styles are imported automatically by the component, so you don't need to import @eddyter/core/style.css. Only editors created from client code with document.createElement('eddyter-editor') need the stylesheet imported on that page.

3

Get your license key

  1. 1Create an account at eddyter.com.
  2. 2Open License Keys in your dashboard.
  3. 3Copy your API key.

Free trial

Every paid plan starts with a free trial, and the Free plan has no time limit. Choose an AI plan to try the AI features.

4

Use the component

Add the editor and pass your key. That is the whole integration.

src/pages/editor.astro
---
import { Eddyter } from '@eddyter/astro';

const apiKey = import.meta.env.PUBLIC_EDDYTER_API_KEY;

// Current logged-in user for comments feature
const currentUser = {
  id: 'user-123',
  name: 'John Doe',
  email: 'john@example.com',
  avatar: 'https://example.com/avatar.jpg', // optional
};
---

<Eddyter
  id="editor"
  apiKey={apiKey}
  value="<p>Start writing...</p>"
  user={currentUser}
  mentionUserList={['Alice', 'Bob', 'Charlie']}
/>

<script>
  import type { EddyterEditorElement } from '@eddyter/astro';

  const editor = document.getElementById('editor') as EddyterEditorElement;

  editor.addEventListener('eddyter:ready', () => console.log('Editor ready!'));
  editor.addEventListener('eddyter:change', (event) => {
    console.log('HTML:', event.detail.html);
  });
  editor.addEventListener('eddyter:auth-error', (event) => {
    console.error('Auth failed:', event.detail.error);
  });
</script>

Environment variable

Store your API key in environment variables. Never commit API keys to version control.

Props must be JSON-safe

Props are serialized into the page, so functions are dropped. Listen for eddyter:* DOM events instead of callback props, and don't add a client:* directive. The component hydrates itself.

Integrate with AI

Prefer to let your AI tools do the wiring? Watch Eddyter go from install to a working editor with Cursor, Claude and Lovable.

Make it feel like yours.

A working editor is just the beginning. Shape the details around your product.

Was this page useful?