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

@myrmidon/cadmus-refs-mufi-lookup

v3.0.0

Published

Cadmus - MUFI lookup.

Readme

CadmusRefsMufiLookup

📦 @myrmidon/cadmus-refs-mufi-lookup

This project was generated using Angular CLI version 20.0.0.

A simple MUFI (Medieval Unicode Font Initiative) lookup service.

Requirements

⚠️ As MUFI does not currently provide any API services, you will need to add the MUFI API service to your Cadmus API using the corresponding package (Mufi.Api.Controllers).

In this workspace, the demo page for this service assumes that the endpoints for this controller are reachable at http://localhost:5113/api/. You can change the base address from the app's env.js file.

Usage

  1. npm i @myrmidon/cadmus-refs-mufi-lookup.

  2. if you want to use the MUFI icon in a set of lookup providers, add to your public/img folder the corresponding image you can find here in the demo app at the same location.

  3. add to your env.js the root URL for the MUFI service, e.g. (change the URL to reflect your configuration):

    // MUFI
    window.__env.mufiUrl = 'http://localhost:5113/';
  4. inject MufiRefLookupService in your controller and bind it to the lookup component used in your component.

💡 The service also provides (when available) the SVG code to visualize the corresponding glyph of a character. So, you can add to this lookup also the visualization similarly to what is done in the demo app page. Should you want to change colors in the SVG, use a replace pipe like in the demo and replace the hardcoded color with your desired color.

Sample template using SVG and comment, assuming that the MUFI lookup item is named item in component's code:

<div class="form-row">
  <!-- MUFI lookup -->
  <cadmus-refs-lookup
    [service]="service"
    [item]="item"
    [required]="true"
    label="MUFI"
    (itemChange)="onItemChange($event)"
    (moreRequest)="onMoreRequest()"
  />
  <!-- svg -->
  @if (item?.svg) {
  <div id="glyph-box">
    <div
      [innerHTML]="
        item?.svg || ''
          | replaceString : 'rgb(64,101,101)' : 'rgb(68,76,255)' : false
          | safeHtml
      "
    ></div>
  </div>
  }
</div>
<!-- comment -->
@if (item?.comment) {
<div id="comment">{{ item!.comment }}</div>
}

The replaceString pipe is from @myrmidon/ngx-tools.

The corresponding code in the component is:

import { ReplaceStringPipe, SafeHtmlPipe } from '@myrmidon/ngx-tools';
import { RefLookupComponent } from '@myrmidon/cadmus-refs-lookup';
import {
  MufiRefLookupService,
  MufiChar,
} from '@myrmidon/cadmus-refs-mufi-lookup';

@Component({
  selector: 'app-mufi-ref-lookup-pg',
  imports: [
    CommonModule,
    MatCardModule,
    MatFormFieldModule,
    MatInputModule,
    MatProgressBarModule,
    RefLookupComponent,
    SafeHtmlPipe,
    ReplaceStringPipe,
  ],
  templateUrl: './mufi-ref-lookup-pg.component.html',
  styleUrl: './mufi-ref-lookup-pg.component.scss',
})
export class MufiRefLookupPgComponent {
  public item?: MufiChar;

  constructor(public service: MufiRefLookupService) {}

  public onItemChange(item: any | undefined): void {
    this.item = item;
  }
}

Styles:

.form-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.form-row * {
  flex: 0 0 auto;
}
div#glyph-box {
  margin: 0 8px;
  border: 1px solid var(--mat-sys-on-surface-variant);
  border-radius: 6px;
  padding: 4px;
  background-color: white;
  display: inline-block;
  width: fit-content;
  height: fit-content;
}
div#glyph-box svg {
  display: block;
}
div#comment {
  margin: 8px 0;
  max-width: 600px;
  font-size: 90%;
  color: #a0a0a0;
  border: 1px solid var(--mat-sys-on-surface-variant);
  border-radius: 6px;
  padding: 4px;
}

History

  • 2025-03-12: fixed URL in service.