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

@lucawahlen/human-muscle

v1.0.0

Published

A framework-independent human muscle anatomy SVG renderer with per-muscle styling.

Readme

Human Muscle Anatomy

A framework-independent human muscle anatomy component with per-muscle styling.

Screenshot of the muscle anatomy component

Features

  • Works in plain HTML, React, Vue, Svelte, and other frameworks.
  • Male and female anatomy models.
  • Per-muscle colors with optional opacity.
  • Responsive SVG output.
  • TypeScript support.
  • No runtime dependencies.

Install

npm install @lucawahlen/human-muscle

or

pnpm add @lucawahlen/human-muscle

Use

Import the package once to register the custom element.

import "@lucawahlen/human-muscle";

Then place the tag anywhere in your app:

<human-muscle
  gender="female"
  background-color="#0b1020"
  default-muscle-color="#1f2937"
  muscle-styles='{"chest":"#ef4444","biceps":{"fill":"#f59e0b"},"triceps":{"fill":"#22c55e","opacity":0.9},"quads":"#3b82f6"}'
></human-muscle>

React / Next.js

Do not import HumanMuscleAnatomyElement as a React component. Use the custom element tag in a client component:

// app/components/muscle-chart.tsx
"use client";

import "@lucawahlen/human-muscle";

export default function MuscleChart() {
  return (
    <human-muscle
      gender="female"
      background-color="#0b1020"
      default-muscle-color="#1f2937"
      muscle-styles='{"chest":"#ef4444","biceps":{"fill":"#f59e0b"}}'
    ></human-muscle>
  );
}
// app/login/page.tsx (Server Component)
import MuscleChart from "@/app/components/muscle-chart";

export default async function LoginPage() {
  return <MuscleChart />;
}

Vue

Register once in your app entry and use the tag directly:

// main.ts
import { createApp } from "vue";
import App from "./App.vue";
import "@lucawahlen/human-muscle";

createApp(App).mount("#app");
<template>
  <human-muscle
    gender="female"
    background-color="#0b1020"
    default-muscle-color="#1f2937"
    :muscle-styles='JSON.stringify({ chest: "#ef4444", quads: { fill: "#3b82f6", opacity: 0.85 } })'
  />
</template>

Svelte

Import once in a top-level component and use the custom element:

<script lang="ts">
  import "@lucawahlen/human-muscle";

  const styles = JSON.stringify({
    chest: "#ef4444",
    biceps: { fill: "#f59e0b", opacity: 0.9 }
  });
</script>

<human-muscle
  gender="female"
  background-color="#0b1020"
  default-muscle-color="#1f2937"
  muscle-styles={styles}
/>

Options

| Attribute | Type | Default | Description | | --- | --- | --- | --- | | gender | "male" | "female" | "male" | Chooses the anatomy model. | | default-muscle-color | string | "#1f1f1f" | Fallback color for muscles without a custom style. | | background-color | string | "#000000" | Color for the outer silhouette. | | muscle-styles | JSON string | {} | Per-muscle colors and optional opacity. |

Muscle groups

chest, lats, traps, rotatorCuffs, lowerBack, frontDelts, sideDelts, rearDelts, triceps, biceps, forearms, abs, obliques, glutes, quads, hamstrings, adductors, abductors, calves, neck

Example

<human-muscle
  gender="male"
  default-muscle-color="#202020"
  muscle-styles='{"chest":"#ef4444","abs":"#22c55e","quads":{"fill":"#3b82f6","opacity":0.85}}'
></human-muscle>

License

MIT. See LICENSE.