Installation
Package Manager
Section titled “Package Manager”Install the core package with your preferred package manager:
# npmnpm install @notectl/core
# pnpmpnpm add @notectl/core
# yarnyarn add @notectl/core
# bunbun add @notectl/coreRequirements
Section titled “Requirements”- 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)
What’s Included
Section titled “What’s Included”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
Bundler Setup
Section titled “Bundler Setup”notectl ships as standard ESM. It works out of the box with modern bundlers:
No extra configuration needed:
import { createEditor } from '@notectl/core';Webpack 5
Section titled “Webpack 5”Ensure your config handles ESM:
module.exports = { resolve: { extensions: ['.ts', '.js'], },};CDN (No Bundler)
Section titled “CDN (No Bundler)”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>Next Steps
Section titled “Next Steps”Now that notectl is installed, head to the Quick Start guide to create your first editor.