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

@jasonruan/eliza-plugin-0g

v0.25.9-patch.4

Published

A plugin for storing data using the 0G protocol within the ElizaOS ecosystem.

Readme

@elizaos/plugin-0g

A plugin for storing data using the 0G protocol within the ElizaOS ecosystem.

Description

The 0G plugin enables seamless integration with the Zero Gravity (0G) protocol for decentralized file storage. It provides functionality to upload files to the 0G network.

Installation

pnpm install @elizaos/plugin-0g

Configuration

The plugin requires the following environment variables to be set:

ZEROG_INDEXER_RPC=<0G indexer RPC endpoint>
ZEROG_EVM_RPC=<0G EVM RPC endpoint>
ZEROG_PRIVATE_KEY=<Private key for transactions>
ZEROG_FLOW_ADDRESS=<0G Flow contract address>

Usage

Basic Integration

import { zgPlugin } from "@eliza/plugin-0g";

File Upload Example

// The plugin automatically handles file uploads when triggered
// through natural language commands like:

"Upload my document.pdf";
"Store this image.png on 0G";
"Save my resume.docx to Zero Gravity";

API Reference

Actions

ZG_UPLOAD

Uploads files to the 0G network.

Aliases:

  • UPLOAD_FILE_TO_ZG
  • STORE_FILE_ON_ZG
  • SAVE_FILE_TO_ZG
  • UPLOAD_TO_ZERO_GRAVITY
  • STORE_ON_ZERO_GRAVITY
  • SHARE_FILE_ON_ZG
  • PUBLISH_FILE_TO_ZG

Input Content:

interface UploadContent {
    filePath: string;
}

Common Issues & Troubleshooting

  1. File Access Errors

    • Ensure the file exists at the specified path
    • Check file permissions
    • Verify the path is absolute or relative to the execution context
  2. Configuration Issues

    • Verify all required environment variables are set
    • Ensure RPC endpoints are accessible
    • Confirm private key has sufficient permissions

Security Best Practices

  1. Environment Variables
    • Never commit private keys to version control
    • Use secure environment variable management
    • Rotate private keys periodically

Development Guide

Setting Up Development Environment

  1. Clone the repository
  2. Install dependencies:
pnpm install
  1. Build the plugin:
pnpm run build
  1. Run the plugin:
pnpm run dev

Future Enhancements

  1. Storage Management

    • Multi-file upload optimization
    • Folder structure preservation
    • Automated file replication
    • Storage redundancy management
    • File versioning system
    • Archival storage options
  2. Content Distribution

    • CDN integration
    • Bandwidth optimization
    • Geographic replication
    • Edge caching support
    • P2P content delivery
    • Streaming optimization
  3. Data Security

    • Enhanced encryption options
    • Access control lists
    • Key management system
    • Data integrity verification
    • Secure sharing mechanisms
    • Privacy-preserving features
  4. Integration Features

    • Additional blockchain support
    • Cross-chain functionality
    • Smart contract integration
    • NFT storage optimization
    • DApp integration tools
    • API expansion
  5. Performance Optimization

    • Upload speed improvements
    • Parallel processing
    • Compression algorithms
    • Caching mechanisms
    • Network optimization
    • Resource management
  6. Developer Tools

    • Enhanced SDK features
    • CLI tool improvements
    • Testing framework
    • Monitoring dashboard
    • Analytics integration
    • Documentation generator
  7. Content Management

    • Metadata management
    • Search functionality
    • Content indexing
    • Tag system
    • Collection management
    • Batch operations
  8. Protocol Features

    • Model service deployment
    • KV store implementation
    • State persistence
    • Database integration
    • Enhanced file metadata
    • Protocol governance

We welcome community feedback and contributions to help prioritize these enhancements.

Contributing

Contributions are welcome! Please see the CONTRIBUTING.md file for more information.

Credits

This plugin integrates with and builds upon several key technologies:

Special thanks to:

  • The 0G Protocol development team
  • The Protocol Labs team for IPFS
  • The Filecoin Foundation
  • The Flow blockchain team
  • The decentralized storage community
  • The Eliza community for their contributions and feedback

For more information about 0G capabilities:

License

This plugin is part of the Eliza project. See the main project repository for license information.