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

semi-circle-progress-bar-react

v1.0.0

Published

Semi circular progress bar

Downloads

6

Readme

Semi Circle Progress Bar React

A lightweight and customizable semi-circular progress bar React component built with React + TypeScript.
Ideal for dashboards, analytics, and any UI where you need to visualize percentage-based progress.


✨ Features

  • Semi-circular (180°) progress bar
  • Fully customizable via props
  • Smooth SVG-based rendering
  • Written in TypeScript
  • Easy to integrate with React / Vite / Next.js

📦 Installation

Using npm:

npm install semi-circle-progress-bar-react

Using yarn:

yarn add semi-circle-progress-bar-react

🚀 Usage

Basic Example

import SemiCircleProgressBar from "semi-circle-progress-bar";

function App() {
  return <SemiCircleProgressBar percentage={65} />;
}

export default App;

🎛 Props

SemiCircularProgressProps

| Prop | Type | Default | Description | | ------------------- | ------------------ | ------- | --------------------------------------------------- | | size | string \| number | 200 | Width of the progress bar (e.g. 200 or "12rem") | | strokeWidth | number | 12 | Thickness of the progress arc | | max | number | 100 | Maximum value for progress calculation | | progress | number | 0 | Current progress value | | animationDuration | number | 500 | Animation duration in milliseconds | | showPercentage | boolean | true | Toggle percentage text visibility |


🎨 Track

Controls the background arc.

| Prop | Type | Description | | ------------- | -------- | -------------------- | | track.color | string | Background arc color |

track={{ color: "#E5E7EB" }}

🟢 Bar

Controls the filled progress arc.

| Prop | Type | Description | | ----------- | -------- | ------------------ | | bar.color | string | Progress arc color |

bar={{ color: "#22c55e" }}

🔤 Label

Controls the main label inside the progress bar.

| Prop | Type | Description | | ------------------ | ------------------ | ------------------------- | | label.color | string | Label text color | | label.fontSize | string \| number | Label font size | | label.padding | number | Spacing around the label | | label.steps | number | Number of animation steps | | label.fontFamily | string | Font family |

label={{
  color: "#111827",
  fontSize: 14,
  fontFamily: "Inter",
}}

⚪ Dot

Controls decorative dots around the arc.

| Prop | Type | Description | | ------------- | -------- | ------------------ | | dot.color | string | Dot color | | dot.radius | number | Dot radius | | dot.padding | number | Space between dots | | dot.count | number | Number of dots |

dot={{ count: 12, radius: 3 }}

📝 Text

Wrapper for custom text styles.

| Prop | Type | Description | | ---------------- | -------- | ----------------------------- | | text.className | string | Custom class for text wrapper |

text={{ className: "font-medium" }}

📊 Percentage

Controls percentage text appearance.

| Prop | Type | Description | | ----------------------- | ------------------ | --------------------- | | percentage.color | string | Percentage text color | | percentage.fontSize | string \| number | Percentage font size | | percentage.className | string | Custom class | | percentage.fontFamily | string | Font family |

percentage={{
  color: "#16a34a",
  fontSize: 18,
  fontFamily: "Inter",
}}

🧪 Example Usage

<SemiCircleProgressBar
  size={240}
  strokeWidth={14}
  progress={75}
  animationDuration={600}
  bar={{ color: "#22c55e" }}
  track={{ color: "#e5e7eb" }}
  showPercentage
  percentage={{ fontSize: 20 }}
/>

📌 Example with Custom Styling

<SemiCircleProgressBar
  percentage={80}
  size={240}
  strokeWidth={16}
  progressColor="#22c55e"
  backgroundColor="#e5e7eb"
  labelColor="#16a34a"
/>

⚠️ Notes

  • percentage values outside 0–100 should be clamped by the consumer
  • Component is client-side only (safe for Vite & Next.js use client)

🧪 Development

npm install
npm run dev

Build package:

npm run build

🤝 Contributing

Contributions are welcome!

  1. Fork the repo
  2. Create your feature branch
  3. Commit your changes
  4. Open a Pull Request

📄 License

MIT © Hosein Doroud