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

@mcarlssen/opentowork-badge

v1.0.0

Published

A customizable React component for displaying a professional headshot with an '#opentowork' badge overlay

Readme

@mcarlssen/opentowork-badge

A customizable React component for displaying a professional headshot with an '#opentowork' badge overlay, perfect for LinkedIn profiles and portfolio sites.

Installation

npm install @mcarlssen/opentowork-badge
# or
yarn add @mcarlssen/opentowork-badge
# or
pnpm add @mcarlssen/opentowork-badge

Basic Usage

import OpenToWorkBadge from '@mcarlssen/opentowork-badge';
import '@mcarlssen/opentowork-badge/styles';

function App() {
  return (
    <OpenToWorkBadge
      imageSrc="/path/to/your/headshot.jpg"
      imageAlt="Your Name"
    />
  );
}

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | imageSrc | string | required | URL or path to the headshot image | | imageAlt | string | required | Alt text for accessibility | | badgeText | string | "#opentowork" | Text to display on the badge | | size | number | 200 | Size of the circular badge in pixels | | borderColor | string | "#d4ad00" | Border color (supports CSS variables) | | borderWidth | number | 4 | Border width in pixels | | gradientColor | { r: number, g: number, b: number } | { r: 0, g: 102, b: 53 } | RGB values for gradient color | | gradientAngle | number | 200 | Gradient angle in degrees | | gradientOpacity | number | 1 | Maximum opacity of gradient (0-1) | | textOffset | number | 8 | Text position along curve (percentage) | | textPath | string | undefined | Custom SVG path for text curve | | className | string | "" | Additional CSS class names | | style | React.CSSProperties | undefined | Inline styles for container | | animate | boolean | false | Enable fade-in animation | | position | { left?, top?, right?, bottom? } | undefined | Absolute positioning |

Examples

Basic Usage

<OpenToWorkBadge
  imageSrc="/images/profile.jpg"
  imageAlt="John Doe"
/>

Custom Size and Colors

<OpenToWorkBadge
  imageSrc="/images/profile.jpg"
  imageAlt="Jane Smith"
  size={300}
  borderColor="#0077b5"
  gradientColor={{ r: 0, g: 119, b: 181 }}
/>

With Custom Positioning

<OpenToWorkBadge
  imageSrc="/images/profile.jpg"
  imageAlt="Alex Johnson"
  position={{ left: -225, top: -60 }}
/>

Custom Badge Text

<OpenToWorkBadge
  imageSrc="/images/profile.jpg"
  imageAlt="Sam Wilson"
  badgeText="#available"
/>

With Animation

<OpenToWorkBadge
  imageSrc="/images/profile.jpg"
  imageAlt="Taylor Brown"
  animate={true}
/>

Using CSS Variables

<OpenToWorkBadge
  imageSrc="/images/profile.jpg"
  imageAlt="Casey Davis"
  borderColor="var(--accent-color)"
  gradientColor={{ r: 0, g: 102, b: 53 }}
/>

Styling

The component includes its own CSS, but you can override styles using the className and style props, or by targeting the component's CSS classes:

  • .opentowork-badge-container - Main container
  • .opentowork-badge-wrapper - Circular wrapper
  • .opentowork-badge-image - Image element
  • .opentowork-badge-overlay - Overlay container
  • .opentowork-badge-gradient - Gradient overlay
  • .opentowork-badge-text - Text element

Advanced: Custom Text Path

For fine control over the text curve, you can provide a custom SVG path:

<OpenToWorkBadge
  imageSrc="/images/profile.jpg"
  imageAlt="Custom Path Example"
  textPath="M 48 185 A 100 100 0 0 0 152 185"
/>

The path uses SVG arc syntax: M x1 y1 A rx ry rotation large-arc sweep x2 y2

License

MIT

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.