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

magnetar-quill

v0.10.4

Published

> **The Next-Gen Universe-Inspired WYSIWYG Editor - Built with Angular** πŸš€πŸ’«

Readme

MagnetarQuill πŸ–‹βœ¨

The Next-Gen Universe-Inspired WYSIWYG Editor - Built with Angular πŸš€πŸ’«

MagnetarQuill

MagnetarQuill is a versatile, extensible, and powerful WYSIWYG editor component built with Angular, designed to streamline content creation.

Inspired by the most extreme phenomena in the universe, the Magnetar, and combined with the elegance of a quill, this editor aims to take your text editing experience beyond the ordinary.


Current view 🌟

(Assuming magnetar-quill-example.png shows the current state based on completed features) MagnetarQuill


Table of Contents πŸ“š


Status πŸ—οΈ

MagnetarQuill is currently under active development. See the Project Progress section for detailed status.


Features 🌟

Based on the current completed progress, MagnetarQuill offers:

  • πŸ–‹ Basic Text Formatting: Support for bold, italic, underline, strikethrough.
  • 🎨 Font Options: Change font family and font size via dropdowns.
  • 🎨 Color Selection: Apply text and background colors using color pickers.
  • πŸ“ Text Alignment & Spacing: Includes options for text alignment and line spacing.
  • πŸ“ Lists: Support for ordered and unordered lists.
  • πŸ“„ Headers: Support for custom headers (H1-H6).

(More features like image support, tables, clipboard enhancements, file export/import, and the plugin system are planned or in progress - see Roadmap and Progress below).


Installation πŸ› 

To install the MagnetarQuill library from npm, run the following command in your project's terminal:

npm i --save magnetar-quill

(Note: Ensure the package is published to npm for this command to work.)

Prerequisites for Using the Library

  • An existing Angular project compatible with the current peer dependency range.
  • Angular peer dependencies currently target @angular/common and @angular/core ^22.0.0.

Quick Start (Usage in Angular) πŸš€

  1. Import the standalone LibMagnetarQuillComponent into your Angular component or module where you want to use the editor:

    // Example in a standalone Angular component
    import { Component } from '@angular/core';
    import { LibMagnetarQuillComponent } from 'magnetar-quill'; // Adjust path if needed after install
    import { FormsModule } from '@angular/forms'; // Needed for ngModel
    
    @Component({
      selector: 'app-my-editor-page',
      standalone: true,
      imports: [ LibMagnetarQuillComponent, FormsModule ], // Import the component
      template: `
        <h2>My Editor</h2>
        <lib-magnetar-quill [(ngModel)]="documentContent"></lib-magnetar-quill>
        <hr>
        <h3>Content Preview:</h3>
        <div [innerHTML]="documentContent | safeHtml"></div>
      ` // safeHtml pipe would be needed for rendering raw HTML
    })
    export class MyEditorPageComponent {
      documentContent: string = '<p>Start editing here...</p>';
    }

    (Note: You must use a pipe like safeHtml to securely render the HTML output from the editor to prevent XSS attacks.)

  2. Add the component tag to your template and use [(ngModel)] for two-way binding of the editor's HTML content:

    <lib-magnetar-quill [(ngModel)]="documentContent"></lib-magnetar-quill>
  3. You can now use the editor in your application!


Build Specification 🏭

This section is the practical contract for how MagnetarQuill is built, verified, and prepared for distribution.

Build Targets

MagnetarQuill is maintained as an Angular library under:

projects/lib-magnetar-quill

The distributable package is generated into:

dist/lib-magnetar-quill

That output directory is the canonical packaged artifact. If the version, README, typings, or bundles in dist/ do not match the source library, the build is not considered ready.

Environment Specification

To build the library reliably, use:

  • Node.js: v22.22.3 or v24.15.0 and later for Angular 22 compatibility
  • npm: version bundled with the selected Node.js LTS
  • Angular CLI: repository-local CLI via npm scripts
  • TypeScript: version pinned by the workspace lockfile

The library currently declares:

  • Angular peer dependencies: ^22.0.0
  • Library package version: 0.10.4

Repository Structure Relevant to the Build

Important library build inputs:

Important workspace-level build inputs:

Install Dependencies

From the repository root:

npm install

This installs the Angular toolchain, ng-packagr, test tooling, and lint tooling used by the library build pipeline.

Primary Library Build Command

Build the library from the repository root with:

npm run build-lib

This is the preferred build entrypoint because it uses the workspace-local Angular CLI and keeps the command stable for contributors and CI.

Watch Mode for Library Development

If you are iterating on the library itself and want rebuilds on file changes:

npm run build-lib-watch

This is the correct mode when you need continuous bundle regeneration into dist/lib-magnetar-quill.

Demo Application + Library Workflow

If you want to validate the editor through the demo application while keeping the library build current:

npm run serve-with-lib

or on Linux:

npm run serve-with-lib-linux

Use this when you need to verify real UI/editor behavior rather than only checking that the library compiles.

What a Successful Build Must Produce

A valid build should produce, at minimum:

  • a generated dist/lib-magnetar-quill/package.json
  • ESM/FESM bundles
  • generated type declarations
  • copied library assets and README

At the end of a good build, confirm:

  • dist/lib-magnetar-quill/package.json has the intended library version
  • dist/lib-magnetar-quill/README.md reflects the current documented feature/version state
  • projects/lib-magnetar-quill/src/public-api.ts exports everything intended for consumers

Quality Gates Before Treating a Build as Release-Ready

At a minimum, run:

npm run build-lib
npm run lint:info-docs

Recommended additional checks:

npm test

If the test environment is flaky or blocked by local browser/Karma issues, call that out explicitly instead of silently assuming the build is good.

Documentation Gate

This repository now includes an info-doc generator and validator for TypeScript production sources.

Generate/update the required generated docs with:

npm run docs:generate:info-docs

Validate them with:

npm run lint:info-docs

The main lint script now runs the info-doc validator before Angular linting. If the generated documentation falls below the required volume threshold relative to implementation size, lint must fail.

Versioning Rules for the Library

When a feature version is considered complete:

  1. Update projects/lib-magnetar-quill/package.json with the new library version.
  2. Update projects/lib-magnetar-quill/README.md so roadmap/progress status matches reality.
  3. Rebuild the library so dist/lib-magnetar-quill/package.json and copied docs match source state.

Version changes are incomplete until the built output reflects them.

Release Interpretation

For this repository, β€œthe library is on version X” means all of the following are true:

  • source library package metadata says version X
  • the built package in dist/lib-magnetar-quill also says version X
  • the README and roadmap do not materially contradict that claim

If only the branch name or roadmap row changed, but the packaged library metadata did not, then the version has not truly been shipped.

Failure Modes to Watch

Common reasons a build should not be trusted:

  • source package version and dist/ package version differ
  • public API exports were removed or drifted unintentionally
  • README status says a version is complete while the package metadata still points to an older version
  • editor behavior was changed in the demo but the library package was not rebuilt
  • generated documentation was changed manually but not regenerated/validated

Practical Maintainer Sequence

For a normal implementation cycle on the library, use this order:

npm install
npm run docs:generate:info-docs
npm run build-lib
npm run lint:info-docs

Then use the demo app or tests to validate runtime behavior. After that, check dist/lib-magnetar-quill before considering the work ready.


Contributing & Local Development πŸ§‘β€πŸ’»

If you want to contribute to MagnetarQuill or run the demo application locally:

Prerequisites for Development

  • Node.js v22.22.3 or v24.15.0 and later for Angular 22 compatibility
  • npm available on your path
  • No global Angular CLI is required if you use the repository scripts

Step 1: Clone the Repository

git clone [https://github.com/scherenhaenden/MagnetarQuill.git](https://github.com/scherenhaenden/MagnetarQuill.git)
cd MagnetarQuill

Step 2: Install Dependencies

npm install
npm run docs:generate:info-docs

Step 3: Run the Development Server

npm run serve-with-lib

Open your browser at http://localhost:4200 to see the MagnetarQuill demo application.


Available Commands (for Development) πŸ“œ

Inside the cloned project directory:

  • npm run build-lib: Build the Angular library into dist/lib-magnetar-quill.
  • npm run build-lib-watch: Rebuild the library on change.
  • npm run serve-with-lib: Build the library, then run the demo application.
  • npm run serve-with-lib-linux: Watch the library build and run the demo app together.
  • npm test: Run the workspace test suite.
  • npm run test-lib-magnetar-quill: Run the library-focused test target.
  • npm run docs:generate:info-docs: Regenerate required long-form generated TypeScript info-doc blocks.
  • npm run lint:info-docs: Validate generated info-doc coverage rules.
  • npm run lint: Run documentation validation plus Angular linting.

Roadmap πŸ›£

πŸ”­ Planned & In-Progress Features:

  • πŸ“· Image Insertion, Editing, and Clipboard Support
  • πŸ“Š Table Insertion and Editing
  • ✨ Object Context Menu & Drag-and-Drop Repositioning
  • βœ‚ Rich Text Copy-Paste Support & Sanitization
  • πŸ”„ Undo/Redo Functionality with Multi-Step History
  • πŸ’Ύ HTML and Markdown Export/Import
  • πŸ–₯ Full-Screen Mode
  • 🎨 Light/Dark Theme Support & Customization
  • πŸ”Œ Plugin System for Custom Toolbar Tools & Extensions
  • 🀝 Advanced collaborative editing tools (Potential Future Enhancement)
  • βœ… Enhanced accessibility features (Potential Future Enhancement)
  • πŸ“± Mobile optimization for touch devices (Potential Future Enhancement)

(See the detailed progress table below for current status)


Project Progress πŸ“Š

Here’s the updated table with the latest progress:

| Step | Feature Description | Status | Version Name | |-------|-------------------------------------------------------|--------------|----------------------| | 1 | Project Setup and Angular Initialization | βœ… Completed | Version 0.1 - Setup | | 2 | Implement Bold, Italic, Underline, Strikethrough | βœ… Completed | Version 0.2 - Basic Text Formatting | | 3 | Font Family and Font Size Dropdowns | βœ… Completed | Version 0.3 - Font Options | | 4 | Text & Background Color Pickers | βœ… Completed | Version 0.4 - Color Selection | | 5 | Text Alignment & Line Spacing | βœ… Completed | Version 0.5 - Text Alignment & Spacing | | 6 | Ordered and Unordered Lists | βœ… Completed | Version 0.6 - Lists | | 7 | Custom Headers (H1-H6) | βœ… Completed | Version 0.7 - Headers | | 8 | Image Insertion and Editing | πŸ”„ In Progress| Version 0.8 - Image Support | | 9 | Copy-Paste Image Support | βœ… Completed | Version 0.9 - Image Clipboard | | 10 | Table Insertion and Editing | πŸ”„ In Progress| Version 0.10 - Table Management | | 11 | Object Context Menu | πŸ”„ In Progress| Version 0.11 - Object Management | | 12 | Drag-and-Drop Object Repositioning | πŸ”„ In Progress| Version 0.12 - Object Repositioning | | 13 | Rich Text Copy-Paste Support | πŸ”΄ Not Started| Version 0.13 - Rich Text Clipboard | | 14 | Text Sanitization on Paste | πŸ”΄ Not Started| Version 0.14 - Paste Sanitization | | 15 | Undo/Redo Functionality | πŸ”΄ Not Started| Version 0.15 - Undo/Redo | | 16 | Multi-Step History Support | πŸ”΄ Not Started| Version 0.16 - History Features | | 17 | HTML and Markdown Export | πŸ”΄ Not Started| Version 0.17 - File Export | | 18 | File Loading (HTML & RTF) | πŸ”΄ Not Started| Version 0.18 - File Import | | 19 | Full-Screen Mode | πŸ”΄ Not Started| Version 0.19 - Full-Screen | | 20 | Light and Dark Theme Support | βœ… Completed | Version 0.20 - Theme Customization | | 21 | Plugin System for Custom Toolbar Tools | πŸ”΄ Not Started| Version 0.21 - Plugin Support |

(Status Key: βœ… Completed | πŸ”„ In Progress | πŸ”΄ Not Started)


Theme Customization Guide 🎨

magnetar-quill supports dynamic theme toggling and deep customization using standard CSS Custom Properties (Variables).

Theme API

You can bind the theme input property and listen to changes:

<magnetar-quill [(theme)]="editorTheme"></magnetar-quill>

Supported values for theme are:

  • 'light' (Default)
  • 'dark'
  • 'custom'
  • Any custom string matching your CSS classes (e.g. 'theme-ocean').

Theme Overrides via CSS Variables

To customize any color palette (especially the 'custom' theme), you can override the target CSS custom properties globally or scoped to the editor element:

/* Customizing the theme-custom class on the editor */
magnetar-quill.theme-custom {
  --mq-bg-color: #f0fdf4;       /* Container background */
  --mq-text-color: #14532d;     /* Default text color */
  --mq-border-color: #166534;   /* Component border */
  --mq-toolbar-bg: #dcfce7;     /* Toolbar background */
  --mq-toolbar-border: #15803d; /* Toolbar borders */
  --mq-editor-bg: #ffffff;      /* Editor editing area */
  --mq-primary-color: #15803d;  /* Active button/outline highlights */
}

List of Available CSS Variables:

| Variable Name | Description | Default (Light) | |---|---|---| | --mq-bg-color | Container overall background | #ffffff | | --mq-text-color | Base text color | #212529 | | --mq-border-color | Border color for editor and inputs | #dee2e6 | | --mq-toolbar-bg | Toolbar background color | #f8f9fa | | --mq-toolbar-border | Toolbar divider/border color | #dee2e6 | | --mq-editor-bg | Editing canvas background color | #ffffff | | --mq-blockquote-border| Quote sidebar accent | #6c757d | | --mq-primary-color | Main highlight / active state color | #4f46e5 |


Contributing 🀝

We welcome contributions! Here's how you can help:

  1. Fork the repository (https://github.com/scherenhaenden/MagnetarQuill.git).
  2. Create a new branch for your feature or bug fix:
    git checkout -b feature/my-awesome-feature
  3. Commit your changes and open a pull request against the main repository.
  4. We’ll review your PR and merge it!

Please read our Contributing Guidelines (if available) for more details.


License πŸ“„

MagnetarQuill is licensed under the Creative Commons Attribution 4.0 International (CC BY 4.0) License. You are free to use, distribute, and build upon this work, as long as proper attribution is given. See the LICENSE file for more details.


Stay Connected πŸ’¬

Follow development progress or ask questions: