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

react-odontogram-3d

v1.0.7

Published

Interactive 3D dental chart component for React with TypeScript support

Downloads

22

Readme

React Odontogram 3D

npm version License: MIT TypeScript

Interactive 3D dental chart component for React applications with full TypeScript support. Perfect for dental software, educational tools, and patient management systems.

Features

  • 🦷 Complete Adult Dentition: All 32 teeth with proper anatomical positioning
  • 🎨 3D Visualization: Realistic tooth geometry using Three.js
  • 📊 Condition Tracking: Support for multiple dental conditions (caries, fillings, crowns, etc.)
  • 🖱️ Interactive Controls: Click, hover, and zoom interactions
  • 📱 Responsive Design: Works on desktop and mobile devices
  • 🎯 TypeScript Support: Full type definitions included
  • 🎨 Customizable: Themes, sizes, and styling options
  • Performance Optimized: Efficient rendering and animations

Installation

npm install react-odontogram-3d
# or
yarn add react-odontogram-3d

Quick Start

import React from 'react';
import { Odontogram3D } from 'react-odontogram-3d';

function App() {
  const handleToothClick = (tooth) => {
    console.log('Tooth clicked:', tooth);
  };

  return (
    <div style={{ width: '100%', height: '400px' }}>
      <Odontogram3D
        onToothClick={handleToothClick}
        interactive={true}
        theme="light"
        size="medium"
      />
    </div>
  );
}

API Reference

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | teeth | ToothData[] | defaultTeeth | Array of tooth data | | onToothClick | (tooth: ToothData) => void | undefined | Callback when tooth is clicked | | onToothHover | (tooth: ToothData \| null) => void | undefined | Callback when tooth is hovered | | showLabels | boolean | true | Show tooth labels | | interactive | boolean | true | Enable interactions | | theme | 'light' \| 'dark' | 'light' | Color theme | | size | 'small' \| 'medium' \| 'large' | 'medium' | Component size |

Types

interface ToothData {
  number: number;
  name: string;
  type: 'incisor' | 'canine' | 'premolar' | 'molar';
  quadrant: 1 | 2 | 3 | 4;
  conditions: ToothCondition[];
  notes?: string;
}

interface ToothCondition {
  id: string;
  type: 'caries' | 'filling' | 'crown' | 'extraction' | 'implant' | 'root_canal' | 'bridge';
  surface?: 'occlusal' | 'buccal' | 'lingual' | 'mesial' | 'distal' | 'incisal';
  color: string;
  description?: string;
}

Advanced Usage

Custom Tooth Data

import { Odontogram3D, ToothData } from 'react-odontogram-3d';

const customTeeth: ToothData[] = [
  {
    number: 16,
    name: 'First Molar',
    type: 'molar',
    quadrant: 1,
    conditions: [
      {
        id: '1',
        type: 'caries',
        surface: 'occlusal',
        color: '#ff4444',
        description: 'Small cavity on occlusal surface'
      }
    ],
    notes: 'Patient reports sensitivity'
  },
  // ... more teeth
];

function MyComponent() {
  return (
    <Odontogram3D
      teeth={customTeeth}
      onToothClick={(tooth) => {
        // Handle tooth selection
        console.log('Selected tooth:', tooth);
      }}
    />
  );
}

Styling

The component uses Tailwind CSS for styling. You can customize the appearance by:

  1. Theme: Use theme prop for light/dark modes
  2. Size: Use size prop for different component sizes
  3. CSS Classes: Override default styles with custom CSS
<Odontogram3D
  theme="dark"
  size="large"
  className="custom-odontogram"
/>

Development

Setup

git clone https://github.com/yourusername/react-odontogram-3d.git
cd react-odontogram-3d
npm install

Scripts

npm run dev          # Start development server
npm run build        # Build for production
npm run test         # Run tests
npm run lint         # Lint code
npm run type-check   # Type checking

Building

npm run build

This creates:

  • dist/index.js - CommonJS build
  • dist/index.esm.js - ES modules build
  • dist/index.d.ts - TypeScript definitions

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

MIT © Dea Alverina

Support

Changelog

1.0.0

  • Initial release
  • 3D tooth visualization
  • Interactive controls
  • TypeScript support
  • Responsive design