A beautiful, Notion-inspired template editor for creating and customizing Anki flashcard templates. Features Monaco Editor with Copilot-style AI assistance, live preview, and comprehensive Anki note type support.
- Clean, modern sidebar navigation
- Organized sections for Private, Shared, and Marketplace templates
- Intuitive project management
- Syntax highlighting for HTML, CSS, and Anki template syntax
- Copilot-style inline suggestions (Ctrl+Space)
- Auto-completion for Anki field references
- Comment-style prompts (
// Generate...or<!-- Generate...) - Live preview with split-view toggle
- All standard Anki note types (Basic, Cloze, etc.)
- Custom field management
- Card type templates (Front/Back)
- CSS styling editor
- Field placeholder previews
- Auto-save functionality
- Live preview updates
- Field data binding
- Export to Anki format
- Node.js 16+
- pnpm (recommended) or npm
- Clone the repository:
git clone <repository-url>
cd templates- Install dependencies:
pnpm install- Start the development server:
pnpm dev- Open your browser to
http://localhost:3000
- Start a New Template: Click "Add new template" in the sidebar
- Configure Fields: Add and modify fields for your note type in the Fields section
- Edit Templates: Use the Monaco Editor to write HTML templates for card fronts and backs
- Style Your Cards: Switch to the Styling tab to customize CSS
- Preview: Toggle split view to see live preview with your test data
- Export: Download your template as Anki-compatible JSON
- Trigger AI: Press
Ctrl+Spaceor click the β¨ Generate button - Comment Prompts: Type
// Generate a flashcard templatefor automatic suggestions - Multiple Options: Browse AI suggestions in the side panel
The editor provides auto-completion for:
{{FieldName}}- Display field content{{FrontSide}}- Show front side (back template only){{#Field}}...{{/Field}}- Conditional display{{^Field}}...{{/Field}}- Show when field is empty{{cloze:Field}}- Cloze deletion
The editor is built with a modular architecture supporting extensible Anki note types and AI assistance.
TemplateEditor (Main App)
βββ Sidebar (Navigation)
βββ MonacoEditorWrapper (Editor + AI)
βββ Preview System
src/
βββ components/
β βββ Sidebar/ # Navigation sidebar
β βββ MonacoEditorWrapper/ # Monaco editor with AI
β βββ TemplateEditor/ # Main editor component
βββ services/
β βββ TemplateApiService.ts # API service layer
βββ types/
β βββ AnkiNoteType.ts # Type definitions
βββ monaco-setup.ts # Monaco configuration
To get started developing, see the Development.
