Your editor.
Up and running.
About 10 minutes.
Connect your Eddyter license, install the package, and make your first edit inside your app.
$ npm install eddyterOne package. Your next chapter.
Make room for
something great.
A space to think, write, and turn a first draft into what comes next.
Start writing │
See what you’re
bringing to the table.
Meet the editing experience before you start building. Watch the overview, then follow the guide at your own pace.
Explore the companion guidePaste this into Claude Code, Cursor, Codex or any AI coding tool. It works in a new or an existing project. Connecting the Eddyter MCP makes it smoother, but isn't required.
Get your browser license.
Sign in to Eddyter, copy your license key, and configure the domain where your editor will run.
Open license dashboardInstall Eddyter.
Add the editor to your existing React + Vite project.
npm install eddyterConnect your environment.
Create .env.local in your project root. Add your browser license, keep the file out of version control, then restart the dev server.
VITE_EDDYTER_LICENSE_KEY=your_browser_license_hereThis public environment value is included in the browser bundle. Use a domain-restricted browser license here.
Render your first editor.
Import the stylesheet, wrap the editor in its provider, and capture document HTML.
import { useState } from 'react';
import { ConfigurableEditorWithAuth, EditorProvider } from 'eddyter';
import 'eddyter/style.css';
export default function Editor() {
const apiKey = import.meta.env.VITE_EDDYTER_LICENSE_KEY || '';
const [initialContent] = useState(() => {
try { return localStorage.getItem('eddyter-example-draft') || '<p>Start writing.</p>'; }
catch { return '<p>Start writing.</p>'; }
});
const [html, setHtml] = useState(initialContent);
const [status, setStatus] = useState('Connect your license to begin.');
function saveDraft() {
try {
localStorage.setItem('eddyter-example-draft', html);
setStatus('Draft saved in this browser.');
} catch { setStatus('Browser storage is unavailable. Draft was not saved.'); }
}
if (!apiKey) return <p>Add your Eddyter license to .env.local and restart the dev server.</p>;
return (
<main>
<p role="status">{status}</p>
<EditorProvider>
<ConfigurableEditorWithAuth
apiKey={apiKey}
documentId="example-draft"
initialContent={initialContent}
onChange={(next, meta) => { if (meta?.mode !== 'email') setHtml(next); }}
onAuthSuccess={() => setStatus('License verified. Make your first edit.')}
onAuthError={() => setStatus('License verification failed. Check your key and allowed domain.')}
/>
</EditorProvider>
<button onClick={saveDraft}>Save browser draft</button>
<p>This starter stores document HTML locally. Connect your own backend for production.</p>
</main>
);
}The starter saves HTML in this browser. Connect your app’s backend and access controls for production documents.
Paste this into Claude Code, Cursor, Codex or any AI coding tool. It works in a new or an existing project. Connecting the Eddyter MCP makes it smoother, but isn't required.
Get your browser license.
Sign in to Eddyter, copy your license key, and configure the domain where your editor will run.
Open license dashboardInstall Eddyter.
Add the editor to your existing Next.js App Router project.
npm install eddyterConnect your environment.
Create .env.local in your project root. Add your browser license, keep the file out of version control, then restart the dev server.
NEXT_PUBLIC_EDDYTER_LICENSE_KEY=your_browser_license_hereThis public environment value is included in the browser bundle. Use a domain-restricted browser license here.
Render your first editor.
Load the SDK on the client with SSR disabled, and import its stylesheet in your root layout.
'use client';
import dynamic from 'next/dynamic';
const Editor = dynamic(() => import('./editor'), { ssr: false, loading: () => <p>Loading editor…</p> });
export default function Page() { return <Editor />; }import 'eddyter/style.css';'use client';
import { useState } from 'react';
import { ConfigurableEditorWithAuth, EditorProvider } from 'eddyter';
export default function Editor() {
const apiKey = process.env.NEXT_PUBLIC_EDDYTER_LICENSE_KEY || '';
const [initialContent] = useState(() => {
try { return localStorage.getItem('eddyter-example-draft') || '<p>Start writing.</p>'; }
catch { return '<p>Start writing.</p>'; }
});
const [html, setHtml] = useState(initialContent);
const [status, setStatus] = useState('Connect your license to begin.');
function saveDraft() {
try {
localStorage.setItem('eddyter-example-draft', html);
setStatus('Draft saved in this browser.');
} catch { setStatus('Browser storage is unavailable. Draft was not saved.'); }
}
if (!apiKey) return <p>Add your Eddyter license to .env.local and restart the dev server.</p>;
return (
<main>
<p role="status">{status}</p>
<EditorProvider>
<ConfigurableEditorWithAuth
apiKey={apiKey}
documentId="example-draft"
initialContent={initialContent}
onChange={(next, meta) => { if (meta?.mode !== 'email') setHtml(next); }}
onAuthSuccess={() => setStatus('License verified. Make your first edit.')}
onAuthError={() => setStatus('License verification failed. Check your key and allowed domain.')}
/>
</EditorProvider>
<button onClick={saveDraft}>Save browser draft</button>
<p>This starter stores document HTML locally. Connect your own backend for production.</p>
</main>
);
}The starter saves HTML in this browser. Connect your app’s backend and access controls for production documents.
Prefer to watch
it come together?
Follow the integration walkthrough with Cursor, Claude, and Lovable, from your project to the editor on screen.
Watch on YouTubeYour first editor is just the start.
Make it fit
your product.
Configuration, theming, authentication, and your content workflow.
Explore the docs02 / The package ↗Know what
you’re shipping.
Package details, versions, and dependencies on the npm registry.
Open npm03 / Your plan ↗Find room
to grow.
Compare editor plans, AI options, and media storage for your app.
Compare plansStuck on a step?
Let’s get you moving.
Find the answer in the docs, or tell our team where you’re getting stuck.
Get integration helpOpen documentation