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

@virtuals-protocol/game-elfa-ai-plugin

v0.1.0

Published

Elfa AI Plugin for Virtuals GAME

Downloads

3

Readme

Elfa AI Plugin for Virtuals Game

Elfa AI is an AI x social product designed for crypto traders who struggle to keep up with rapidly changing trading opportunities. By cutting through the noise, Elfa curates actionable insights and signals from thousands of industry insiders, influencers, and smart traders. This plugin seamlessly integrates the Elfa AI API into your Virtuals Game environment, allowing your agents to access real‑time data and intelligence on crypto tokens, projects, and smart accounts.

Available Functions

The ElfaAiPlugin provides several functions that can be used by the agent:

  • pingFunction: Pings the Elfa AI API to check connectivity and health.
  • keyStatusFunction: Retrieves the current status, usage, and limits for your API key.
  • mentionsFunction: Fetches mentions with smart engagement, providing insights into trending discussions.
  • topMentionsFunction: Retrieves top mentions for a specified ticker symbol, ranked by engagement.
  • trendingTokensFunction: Retrieves tokens that are most discussed over a particular time window.
  • accountSmartStatsFunction: Retrieves social metrics and smart stats for a given username.

Installation

To install the plugin, use npm or yarn:

npm install @virtuals-protocol/game-elfa-ai-plugin

or

yarn add @virtuals-protocol/game-elfa-ai-plugin

Usage

Prerequisites

Generate an API key from the Elfa AI dashboard.

Importing the Plugin

First, import the ElfaAiPlugin class from the plugin:

import ElfaAiPlugin from "@virtuals-protocol/game-elfa-ai-plugin";

Creating a Worker

Create a worker with the necessary Elfa AI credentials:

const elfaAiPlugin = new ElfaAiPlugin({
    credentials: {
        apiKey: "<ELFA_AI_API_KEY>",
    },
});

Creating an Agent

Create an agent and add the worker to it:

import { GameAgent } from "@virtuals-protocol/game";

const elfaAgent = new GameAgent("<AGENT_API_TOKEN>", {
    name: "Elfa AI Agent",
    goal: "Demonstrate integration with the Elfa AI API",
    description:
        "An agent that interacts with the Elfa AI API to discover alpha from industry insiders, influencers & traders.",
    workers: [elfaWorker],
});

Running the Agent

Initialize and run the agent:

(async () => {
  await agent.init();

  while (true) {
    await agent.step({
      verbose: true,
    });
  }
})();

License

This project is licensed under the MIT License.