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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@feiyangl1020/metaid-create-buzz

v1.0.1

Published

[![npm version](https://img.shields.io/npm/v/@feiyangl1020/metaid-create-buzz)](https://www.npmjs.com/package/@feiyangl1020/metaid-create-buzz) [![License: ISC](https://img.shields.io/badge/License-ISC-blue.svg)](https://opensource.org/licenses/ISC) [![Gi

Readme

@feiyangl1020/metaid-create-buzz 🐝

npm version License: ISC GitHub Repository

A TypeScript library for creating and managing Buzz content on the MetaID protocol. Buzz is a decentralized social media post format that supports both public and pay-to-view content with media attachments.

Table of Contents

Features

  • Create normal Buzz posts with text and media attachments
  • Create pay-to-view Buzz posts with encrypted content
  • Support both BTC and MVC chains
  • Handle image and video uploads
  • Support NFT attachments
  • Configurable fee rates and network settings

Installation

npm install @feiyangl1020/metaid-create-buzz
# or
yarn add @feiyangl1020/metaid-create-buzz
# or
pnpm add @feiyangl1020/metaid-create-buzz

Usage

Basic Setup

import { createBuzz, createNormalBuzz } from '@feiyangl1020/metaid-create-buzz';

// Initialize with your connector and network settings
const params = {
  buzz: {
    content: "Hello MetaID!",
    publicImages: [], 
    encryptContent: "",
    encryptImages: [],
    nfts: []
  },
  host: "https://api.metaid.io",
  feeRate: 1,
  chain: "btc",
  btcConnector: yourBtcConnector,
  mvcConnector: yourMvcConnector,
  network: "testnet"
};

// Create a normal buzz
const txId = await createNormalBuzz(params);

// Create a pay-to-view buzz
const payParams = {
  ...params,
  isPayBuzz: true,
  payInfo: {
    manPubKey: "your_pubkey",
    payType: "btc",
    payAmount: 1000,
    manDomain: "your.domain"
  }
};
const payTxId = await createBuzz(payParams);

API Reference

createBuzz(params: Props)

Creates a pay-to-view Buzz post with encrypted content.

Parameters

  • params: Configuration object containing:
    • buzz: Buzz content details
    • host: MetaID API host
    • feeRate: Transaction fee rate
    • chain: Blockchain ("btc" or "mvc")
    • btcConnector: BTC wallet connector
    • mvcConnector: MVC wallet connector
    • network: Network ("mainnet" or "testnet")
    • isPayBuzz: Whether this is a pay-to-view buzz
    • payInfo: Payment configuration

createNormalBuzz(params: Props)

Creates a normal public Buzz post.

Dependencies

  • @feiyangl1020/metaid
  • browser-image-compression
  • compressorjs
  • crypto-js
  • uuid

Development

To set up the development environment:

git clone https://github.com/feiyang1020/metaid-create-buzz.git
cd metaid-create-buzz
pnpm install

Building

npm run build

Builds the project to the dist folder using TypeScript.

Testing

Run unit tests with Jest:

npm test

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/your-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin feature/your-feature)
  5. Open a pull request

License

ISC © feiyang1020