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

@ashqking/web3-avatar-forge

v0.1.0

Published

A developer-friendly playground for trait-based SVG avatars, AI-powered suggestions, and simulated NFT minting.

Readme

✨ Features

  • 🎨 Avatar Builder UI: A clean, intuitive, and responsive interface for customizing avatars based on various traits.
  • 🤖 AI-Powered Suggestions: Utilizes Genkit to connect to the Gemini API, providing creative avatar variations.
  • 🔗 Web3 Integration: Seamless wallet connection using wagmi, supporting MetaMask and other wallets.
  • 💾 Simulated Decentralized Storage: Includes a simulated flow to upload metadata to IPFS, preparing it for decentralized storage.
  • 🖼️ Simulated NFT Minting: A complete, simulated end-to-end flow for minting the configured avatar as an ERC-721 NFT.
  • 🚀 Developer Playground:
    • Copy JSON: Instantly copy the avatar's trait configuration as a JSON object.
    • Copy JSX: Copy a pre-formatted React <AvatarViewer /> component snippet to easily integrate the avatar.

🛠️ Tech Stack

🚀 Getting Started

Prerequisites

  • Node.js (v18 or later)
  • npm or yarn
  • A Web3 wallet (e.g., MetaMask) configured for the Sepolia testnet.

Installation & Setup

  1. Clone the repository:

    git clone https://github.com/iamaanahmad/web3-avatar-forge.git
    cd web3-avatar-forge
  2. Install dependencies:

    npm install
  3. Run the development server:

    npm run dev

    The application will be available at http://localhost:9002.

  4. Run the Genkit development server (in a separate terminal): This enables the AI suggestion functionality.

    npm run genkit:watch

🧩 How to Integrate the Avatar into Your dApp

One of the key features of this project is the ability to easily reuse the generated avatars.

Using the "Copy JSX" Feature

  1. Customize your desired avatar in the Web3 Avatar Forge application.
  2. Click the "Copy JSX" button.
  3. This copies a React component snippet to your clipboard, which looks like this:
    <AvatarViewer traits={{
      "hair": "hair2",
      "eyes": "eyes3",
      "accessories": "acc1",
      "background": "bg4"
    }} />
  4. Paste this code into your React application. You will also need to copy over the AvatarViewer component and its dependencies (/src/components/avatar-viewer.tsx, src/components/icons.tsx, /src/lib/constants.ts, and /src/lib/types.ts).

Example: Profile Card

Here's how you could use the copied JSX in a simple user profile card component:

// YourProfilePage.jsx
import { AvatarViewer } from './path/to/AvatarViewer';

const UserProfileCard = ({ userAddress, avatarTraits }) => {
  return (
    <div className="profile-card">
      <div className="avatar-container">
        {/* Paste the copied JSX here, using props */}
        <AvatarViewer traits={avatarTraits} />
      </div>
      <h3>{userAddress}</h3>
      {/* ...other profile info */}
    </div>
  );
};

export default UserProfileCard;

🤝 Contributing

This project is open-source and we welcome contributions! Whether you're a developer, designer, or just have ideas, feel free to get involved.

  • Report Bugs: If you find a bug, please open an issue.
  • Suggest Features: Have an idea for a new feature or improvement? Open an issue to start a discussion.
  • Submit Pull Requests: We're happy to review and merge pull requests that improve the project.

❤️ Contributors

A huge thanks to all the people who have contributed to this project.