Skip to content

Installation

Install the core package with your preferred package manager:

Terminal window
# npm
npm install @notectl/core
# pnpm
pnpm add @notectl/core
# yarn
yarn add @notectl/core
# bun
bun add @notectl/core
  • Browser: Any modern browser with Custom Elements v1 support (Chrome 67+, Firefox 63+, Safari 12.1+, Edge 79+)
  • Node.js: 18+ (for build tooling only — notectl runs entirely in the browser)
  • TypeScript: 5.0+ recommended (optional but provides the best DX)

The @notectl/core package includes:

  • The <notectl-editor> Web Component
  • All 18 built-in plugins (text formatting, headings, lists, tables, fonts, etc.)
  • Full TypeScript type definitions
  • ESM and UMD builds

notectl ships as standard ESM. It works out of the box with modern bundlers:

No extra configuration needed:

import { createEditor } from '@notectl/core';

Ensure your config handles ESM:

webpack.config.js
module.exports = {
resolve: {
extensions: ['.ts', '.js'],
},
};

You can use notectl directly from a CDN for prototyping:

<script type="module">
import { createEditor } from 'https://esm.sh/@notectl/core';
const editor = await createEditor({
placeholder: 'Start typing...',
});
document.getElementById('editor').appendChild(editor);
</script>
<div id="editor"></div>

Now that notectl is installed, head to the Quick Start guide to create your first editor.