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

@momo_vision/dental-chart

v0.0.8

Published

Interactive dental chart components and utilities for FDI adult tooth selection.

Readme

@momo_vision/dental-chart

Interactive dental chart components and utilities for FDI adult tooth selection.

Momo Dental Chart preview

The first release provides:

  • A framework-agnostic TypeScript core.
  • An Angular standalone component.
  • A React controlled component.
  • Multi-tooth selection.
  • Adult permanent teeth using FDI / ISO 3950 codes.
  • Disabled tooth support.
  • Reactive Forms integration through ControlValueAccessor.
  • CSS variables for visual customization.

Install

npm install @momo_vision/dental-chart

Demo

This repository includes two local demos:

# React demo
npx vite apps/react-demo --config apps/react-demo/vite.config.ts --host 127.0.0.1 --port 5173

Open:

http://127.0.0.1:5173/
# Angular demo
npm start -- --host 127.0.0.1 --port 4201

Open:

http://127.0.0.1:4201/

The demos show:

  • Adult FDI dental arch rendering.
  • Multi-tooth selection.
  • Disabled teeth.
  • Selected tooth state.
  • Angular Reactive Forms integration.
  • React controlled component integration.

Angular Usage

For Angular 20+ standalone applications, use:

import { Component } from '@angular/core';
import { FormControl, ReactiveFormsModule } from '@angular/forms';
import { DentalChartComponent } from '@momo_vision/dental-chart/angular';

@Component({
  selector: 'app-dental-act-form',
  imports: [DentalChartComponent, ReactiveFormsModule],
  template: `
    <momo-dental-chart
      [formControl]="dentalTeeth"
      [disabledTeeth]="disabledTeeth"
      ariaLabel="Selection des dents"
    />
  `,
})
export class DentalActFormComponent {
  readonly dentalTeeth = new FormControl<string[]>([], { nonNullable: true });
  readonly disabledTeeth = ['18', '28'];
}

For Angular 10 to 15 applications using classic NgModule, install the legacy package:

npm install @momo_vision/dental-chart-angular
import { MomoDentalChartModule } from '@momo_vision/dental-chart-angular';

@NgModule({
  imports: [
    ReactiveFormsModule,
    MomoDentalChartModule,
  ],
})
export class DentalActModule {}

React Usage

import { useState } from 'react';
import { DentalChart } from '@momo_vision/dental-chart/react';

export function DentalActForm() {
  const [dentalTeeth, setDentalTeeth] = useState<string[]>([]);

  return (
    <DentalChart
      value={dentalTeeth}
      onChange={setDentalTeeth}
      disabledTeeth={['18', '28']}
      ariaLabel="Selection des dents"
    />
  );
}

Core Usage

import { getAdultFdiTeeth, toggleToothSelection } from '@momo_vision/dental-chart/core';

const teeth = getAdultFdiTeeth();
const selectedTeeth = toggleToothSelection(['11'], '12');

Value Model

The Angular component value is a string[] of FDI tooth codes:

['11', '12', '46']

Supported Teeth

The MVP supports adult permanent teeth only:

18 17 16 15 14 13 12 11 | 21 22 23 24 25 26 27 28
48 47 46 45 44 43 42 41 | 31 32 33 34 35 36 37 38

Styling

The component ships with default styles and exposes CSS variables:

momo-dental-chart {
  --momo-dental-tooth-selected-fill: #e85b5b;
  --momo-dental-tooth-disabled-fill: #d9d9d9;
  --momo-dental-focus-ring: #16a34a;
}