npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@domternal/angular

v0.12.1

Published

Angular components for Domternal editor

Readme

@domternal/angular

Version MIT License

Angular components for the Domternal editor: six standalone, signals-driven, OnPush, zoneless-ready components that wrap the headless core with Angular-native APIs. DomternalEditorComponent implements ControlValueAccessor, so it drops into ngModel and reactive forms. The toolbar, bubble menu, floating menu, emoji picker, and Notion color picker auto-render from the extensions you load.

Links

Website    •    Documentation    •    Live examples

Install

pnpm add @domternal/angular @domternal/core @domternal/theme

@angular/core (>=17.1), @angular/forms (>=17.1), and @domternal/core (>=0.11.0) are peer dependencies. Add the theme (@domternal/theme) to your global stylesheet (e.g. styles.scss):

@use '@domternal/theme';

Usage

import { Component, signal } from '@angular/core';
import {
  DomternalEditorComponent,
  DomternalToolbarComponent,
  DomternalBubbleMenuComponent,
} from '@domternal/angular';
import { Editor, StarterKit, BubbleMenu } from '@domternal/core';

@Component({
  selector: 'app-editor',
  imports: [
    DomternalEditorComponent,
    DomternalToolbarComponent,
    DomternalBubbleMenuComponent,
  ],
  template: `
    @if (editor(); as ed) {
      <domternal-toolbar [editor]="ed" />
    }
    <domternal-editor
      [extensions]="extensions"
      [content]="content"
      (editorCreated)="editor.set($event)"
    />
    @if (editor(); as ed) {
      <domternal-bubble-menu [editor]="ed" />
    }
  `,
})
export class EditorComponent {
  editor = signal<Editor | null>(null);
  extensions = [StarterKit, BubbleMenu];
  content = '<p>Hello from Angular!</p>';
}

The toolbar and bubble menu render their buttons from the loaded extensions, so no manual button wiring is needed.

Reactive forms

DomternalEditorComponent is a ControlValueAccessor, so it binds directly to ngModel or a FormControl. Set outputFormat="json" to emit JSON instead of HTML; calling disable()/enable() on the bound FormControl toggles the editor's editable state.

import { Component } from '@angular/core';
import { FormControl, ReactiveFormsModule } from '@angular/forms';
import { DomternalEditorComponent } from '@domternal/angular';
import { StarterKit } from '@domternal/core';

@Component({
  selector: 'app-form-editor',
  imports: [ReactiveFormsModule, DomternalEditorComponent],
  template: `
    <domternal-editor [extensions]="extensions" [formControl]="editorControl" />
  `,
})
export class FormEditorComponent {
  extensions = [StarterKit];
  editorControl = new FormControl('<p>Initial content</p>');
}

Components

All components are standalone (no NgModule). Import them directly from @domternal/angular:

  • DomternalEditorComponent (<domternal-editor>): the editor, with reactive extensions / content / editable / autofocus / outputFormat inputs, editorCreated and content/selection/focus outputs, and read-only htmlContent, jsonContent, isEmpty, isFocused, isEditable signals.
  • DomternalToolbarComponent (<domternal-toolbar>): auto-rendered formatting toolbar with keyboard navigation, custom icons, and layout overrides.
  • DomternalBubbleMenuComponent (<domternal-bubble-menu>): inline selection menu with items / contexts / shouldShow controls and content projection.
  • DomternalFloatingMenuComponent (<domternal-floating-menu>): insert menu shown on empty lines.
  • DomternalEmojiPickerComponent (<domternal-emoji-picker>): searchable emoji panel, driven by an emojis: EmojiPickerItem[] input.
  • DomternalNotionColorPickerComponent (<domternal-notion-color-picker>): Notion-style text and background color palette.

DEFAULT_EXTENSIONS ([Document, Paragraph, Text, BaseKeymap, History]) and the core Editor class plus Content, AnyExtension, FocusPosition, and JSONContent types are re-exported for convenience.