Skip to content

Getting started

NovaProse runs entirely in the browser. Install it from npm, or load a single script from a CDN.

Terminal window
npm install @novaprose/core
import { createEditor } from '@novaprose/core';
import '@novaprose/core/style.css';
const editor = createEditor({
element: document.querySelector('#editor')!,
content: '<p>Hello, world</p>',
});
editor.on('change', () => console.log(editor.getHTML()));
<div id="editor"></div>
Framework Package Guide
React 18, 19 (Next.js, Remix) @novaprose/react React
Vue 3 (Nuxt) @novaprose/vue Vue
Angular 19+ @novaprose/angular Angular
Plain HTML, Svelte, Astro, Lit @novaprose/web-component Web Component
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@novaprose/web-component@0.1/dist/novaprose.css"
/>
<script src="https://cdn.jsdelivr.net/npm/@novaprose/web-component@0.1/dist/novaprose.global.js"></script>
<form method="post" action="/posts">
<novaprose-editor name="body">
<p>Hello, world</p>
</novaprose-editor>
<button>Save</button>
</form>

The script registers the <novaprose-editor> element and exposes a global NovaProse object with the full API (NovaProse.createEditor(...)).

editor.getHTML() returns clean HTML: every URL has passed the allowlist and only elements and styles known to the editor remain. Still treat it as user input on your server: validate its size and sanitize again if you render it somewhere the editor rules don’t apply.

await fetch('/api/posts/42', {
method: 'PUT',
headers: { 'content-type': 'application/json' },
body: JSON.stringify({ html: editor.getHTML() }),
});