@collabchron/notiq
v1.5.0
Published
Notion AI + Figma + Excalidraw + 3D + Code Editor + Markdown Editor + Real-time Collaboration + Embeds + More = Notiq
Maintainers
Readme

⚔️ Why Notiq over Tiptap & Other Editors?
| Capability | Notiq | Tiptap | Raw Lexical | Novel / BlockNote |
| :--- | :---: | :---: | :---: | :---: |
| Underlying Engine | Modern Lexical (Meta) | ProseMirror (2015) | Lexical (Meta) | ProseMirror |
| Headless Extension API | ✅ headless: true, custom render & renderers | ✅ editor.chain()... | ❌ Complex boilerplate | ⚠️ Limited |
| Drop-in Battery-Included UI | ✅ <Editor /> & <NotiqEditor /> | ❌ DIY | ❌ DIY | ⚠️ Rigid Opinionated |
| Inline AI Command Bar (⌘K) | ✅ Think Mode, Web Research & Excalidraw Hydration | ❌ Paid / DIY | ❌ DIY | ⚠️ Basic Streaming |
| Notion Block Drag Handles | ✅ Gutter Handle (⠿) + Quick Add (+) + Turn Into | ⚠️ Extension required | ❌ DIY | ⚠️ Basic |
| Multi-Column Snapping | ✅ 2 & 3 Column Layouts Built-in | ⚠️ Complex setup | ❌ DIY | ❌ |
| Document-to-Canvas Hybrid | ✅ Infinite Spatial Whiteboard Mode | ❌ | ❌ | ❌ |
| Subpath Exports | ✅ @notiq, /core, /react, /styles.css | ✅ | ❌ | ⚠️ |
| Real-time Collaboration | ✅ Yjs + IndexedDB Offline Persistence | ⚠️ Pro Extension | ⚠️ Complex | ⚠️ |
📸 Screenshots
✨ Core Highlights
⚡ 1. 100% Headless Architecture & Custom Node Renderers (v1.2.0)
Use Notiq completely headless—supply your own UI for slash menus, block drag handles, AI command bars, inline ghost text, and rich decorator nodes (hint, excalidraw, poll, image, inlineImage):
import { StarterKit, BlocksKit, AICopilot } from "@collabchron/notiq";
import { useNotiq, NotiqContent, BubbleMenu } from "@collabchron/notiq/react";
export default function CustomEditor() {
const editor = useNotiq({
extensions: [
StarterKit.configure({ heading: { levels: [1, 2, 3] } }),
BlocksKit.configure({
headless: true,
slashMenu: { render: (menu) => <MySlashMenu {...menu} /> },
handles: { render: (handle) => <MyBlockHandle {...handle} /> },
renderers: { hint: MyCallout, poll: MyPoll },
}),
AICopilot.configure({
headless: true,
apiEndpoint: "/api/ai",
commandBar: { headless: true, render: (ai) => <MyAICommandBar {...ai} /> },
}),
],
content: "<p>Hello world from Notiq!</p>",
});
return (
<div>
<BubbleMenu editor={editor} showAskAI={true} />
<NotiqContent editor={editor} />
</div>
);
}🤖 2. AI Copilot, Think Mode, Web Research & Excalidraw Hydration (Cmd+K / Ctrl+K)
Select text or hover over any block and trigger ⌘K to open the AI Command Bar:
- Think Mode: Streams
<thinking>...</thinking>into a collapsible AI Reasoning drawer without cluttering the document. - Topic-Aware Web Research: Queries Wikipedia & DuckDuckGo in parallel with relevance filtering and surfaces clickable Research Sources pills.
- Rich Block Hydration: Streams Markdown into native Lexical nodes—including interactive Excalidraw diagrams, Hint callouts, Tables, KaTeX Math, and Images.
- Review & Refine: Accept (
Cmd/Ctrl+Enter), Discard (Esc), or refine in place.
⠿ 3. Notion-Style Block Drag Handles & Multi-Columns
- Gutter Handle (
⠿): Hover over any block to drag-and-drop reorder. - Quick Add (
+): Click the plus icon to instantly spawn an empty paragraph below. - Block Action Menu: Transform any block via Turn Into (H1-H3, bullet/numbered lists, quotes, code block), duplicate, delete, or invoke AI directly on that block.
- Multi-Column Snapping: Split blocks into responsive 2-column (
1fr 1fr) or 3-column (1fr 1fr 1fr) layouts witheditor.commands.setColumns(2 | 3).
🎨 4. Document-to-Canvas Hybrid Mode
Switch any document into an infinite spatial whiteboard view with <CanvasMode />:
- Smooth Pan & Zoom canvas (40% to 250% zoom).
- Movable, resizable cards: Primary Editor, Color-coded Sticky Notes (Yellow, Blue, Emerald, Purple, Rose), and Excalidraw whiteboards.
- Dot-grid spatial layout with dark/light theme awareness.
🚀 Installation & Usage
1. Installation
npm install @collabchron/notiq
# or
pnpm add @collabchron/notiq
# or
yarn add @collabchron/notiq2. Import Styles
Import the CSS file in your root layout file (e.g. app/layout.tsx or pages/_app.tsx):
import "@collabchron/notiq/styles.css";3. Usage Approaches
Option A: Batteries-Included Drop-In Component
If you want a full-featured Notion-like editor with toolbars, slash commands, drag handles, and AI out of the box:
"use client";
import { Editor } from "@collabchron/notiq";
export default function MyEditorPage() {
return (
<Editor
isEditable={true}
aiConfig={{
apiEndpoint: "/api/ai", // Your AI completion endpoint
}}
uploadConfig={{
uploadHandler: async (file) => {
return { url: "https://your-storage.com/file.png" };
}
}}
/>
);
}Option B: Headless Framework (Tiptap Alternative)
If you want complete control over your UI and state using chained commands:
"use client";
import { useEditor, EditorContent, StarterKit, BlocksKit } from "@collabchron/notiq";
export default function HeadlessEditor() {
const editor = useEditor({
extensions: [StarterKit, BlocksKit],
content: "<h1>Headless Lexical Power</h1>",
});
if (!editor) return null;
return (
<div className="border rounded-lg p-4">
<div className="flex gap-2 mb-4 border-b pb-2">
<button
onClick={() => editor.chain().focus().toggleBold().run()}
className={editor.isActive("bold") ? "font-bold text-blue-500" : ""}
>
Bold
</button>
<button onClick={() => editor.commands.setColumns(2)}>
2 Columns
</button>
<button onClick={() => editor.commands.openAICommandBar()}>
Ask AI (⌘K)
</button>
</div>
<EditorContent editor={editor} className="prose max-w-none" />
</div>
);
}Option C: Document-to-Canvas Whiteboard View
Embed the infinite canvas mode:
"use client";
import { useState } from "react";
import { Editor, CanvasMode } from "@collabchron/notiq";
export default function HybridPage() {
const [isCanvas, setIsCanvas] = useState(false);
return (
<div>
<button onClick={() => setIsCanvas(!isCanvas)}>
{isCanvas ? "Switch to Document View" : "Switch to Spatial Canvas View"}
</button>
{isCanvas ? (
<CanvasMode onExit={() => setIsCanvas(false)} />
) : (
<Editor isEditable={true} />
)}
</div>
);
}📦 Package Subpath Exports
Notiq provides tree-shakeable modern ES and CommonJS subpath exports:
@collabchron/notiq— Drop-in<Editor />,<CanvasMode />, UI components, and all framework exports.@collabchron/notiq/core— Headless engine:Editor,Extension,NodeExtension,MarkExtension,CommandChain, and extensions (StarterKit,AIKit,CollaborationKit,BlocksKit).@collabchron/notiq/react— React hooks and components:useEditor,EditorContent,BubbleMenu,FloatingMenu.@collabchron/notiq/styles.css— Production CSS bundle containing all editor theme tokens, dot grid utilities, and KaTeX fonts.
🛠️ Local Development
Installation
git clone https://github.com/chinonsochikelue/notiq.git
cd notiq
pnpm installEnvironment Setup
Create .env.local:
OPENAI_API_KEY=your_openai_api_key_here
NEXT_PUBLIC_EDGESTORE_ACCESS_KEY=your_edgestore_key
NEXT_PUBLIC_EDGESTORE_SECRET_KEY=your_edgestore_secretDevelopment Server
npm run dev
# or
pnpm devVisit http://localhost:3000 for the main editor and http://localhost:3000/framework for the interactive framework playground.
Running Tests
npm run test
# or
npx vitest runBuilding the Package
npm run build:lib🤝 Contributing
We welcome contributions! Please see our Contributing Guidelines for details on how to get started, submitting bug reports, and suggesting enhancements.
📄 License
MIT License - see the LICENSE file for details.
Built with ❤️ by Chinonso Chikelue (fluantiX) and the CollabChron community.
