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

@gkucmierz/bitcoin-logo

v1.0.3

Published

Premium 3D SVG rotating Bitcoin logo

Readme

@gkucmierz/bitcoin-logo

NPM Version License

A premium, customizable, and interactive 3D-style Bitcoin logo component for Vue 3.

Live Demo: https://bitcoin-logo.7u.pl/

🚀 Features

  • 3 Rotation Modes: Auto-rotate, Interactive (drag & throw), and Controlled.
  • Physics-based Inertia: Smooth deceleration in interactive mode.
  • Fully Customizable: Adjust size, colors, stroke, animation speed, and more.
  • Lightweight: Built with Vue 3 and SVG, no heavy 3D libraries.
  • Responsive: Centers perfectly in any container.

📦 Installation

npm install @gkucmierz/bitcoin-logo

🛠 Usage

Import the component and its styles.

<script setup>
import BitcoinLogo from '@gkucmierz/bitcoin-logo'
import '@gkucmierz/bitcoin-logo/style.css' // Import CSS!
</script>

<template>
  <BitcoinLogo
    mode="interactive"
    :size="250"
    symbolColor="#f7931a"
  />
</template>

📖 API

Props

| Prop | Type | Default | Description | | --- | --- | --- | --- | | mode | String | 'interactive' | Operation mode: 'auto', 'interactive', or 'controlled'. | | size | Number | 200 | Size of the logo in pixels. | | symbolColor | String | '#fff' | Color of the Bitcoin symbol (B) and stroke. | | strokeWidth | Number | 5 | Thickness of the outer stroke. | | duration | Number | 4 | (Auto mode) Duration of one full rotation in seconds. | | easing | String | 'linear' | (Auto mode) CSS easing function (e.g. 'ease-in-out'). | | friction | Number | 0.98 | (Interactive mode) Inertia friction factor (0.0 - 1.0). | | rotation | Number | 0 | (Controlled mode) The rotation angle in degrees. Can be used with v-model:rotation. |

Modes

1. interactive (Default)

The user can drag the logo to rotate it. Releasing it with velocity triggers inertia.

  • Emits update:rotation event with the current angle.
  • friction prop controls how fast it stops spinning.

2. auto

The logo rotates continuously using CSS animations.

  • duration controls speed.
  • easing controls animation curve.
  • Note: Does not emit rotation events.
  • Easing Options: linear, ease, ease-in, ease-out, ease-in-out.

3. controlled

The rotation is strictly determined by the rotation prop.

  • Use this to link rotation to scroll position, mouse movement elsewhere, or other external state.

Events

| Event | Payload | Description | | --- | --- | --- | | update:rotation | Number | Emitted when rotation changes in 'interactive' mode. |

💡 Examples

Interactive Mode (with v-model)

<script setup>
import { ref } from 'vue'
import BitcoinLogo from '@gkucmierz/bitcoin-logo'

const currentRotation = ref(0)
</script>

<template>
  <BitcoinLogo
    mode="interactive"
    v-model:rotation="currentRotation"
  />
  <p>Current Angle: {{ currentRotation.toFixed(0) }}°</p>
</template>

Auto Mode

<template>
  <BitcoinLogo
    mode="auto"
    :duration="2"
    easing="ease-in-out"
  />
</template>

Controlled Mode

<script setup>
import { ref } from 'vue'
import BitcoinLogo from '@gkucmierz/bitcoin-logo'

const angle = ref(0)
</script>

<template>
  <input type="range" v-model.number="angle" min="0" max="360" />
  <BitcoinLogo
    mode="controlled"
    :rotation="angle"
  />
</template>

📄 License

MIT