JSPM

plugin-intern-market

0.1.1
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 4
    • Score
      100M100P100Q20511F
    • License MIT

    Starter template for creating Eliza plugins with examples for Tavily and Exa search

    Package Exports

      This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (plugin-intern-market) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

      Readme

      Eliza Plugin Starter Template

      This repository provides a starter template for creating plugins for the Eliza AI agent framework. It includes example implementations for search functionality using Tavily and Exa APIs.

      Prerequisites

      • Node.js 23+
      • pnpm
      • TypeScript knowledge

      Getting Started

      1. Clone this repository:
      git clone https://github.com/yourusername/eliza-plugin-starter.git
      cd eliza-plugin-starter
      1. Install dependencies:
      pnpm install
      1. Compile the TypeScript code:
      pnpm tsc
      1. Run the project using the 'direct' client:
      pnpm exec node --loader ts-node/esm ./src/scripts/load-with-plugin.ts --characters=./characters/eternalai.character.json

      Note: Only the 'direct' client will work within this repo since it uses mocked capabilities of the real client. Plugins developed here can be directly transposed into the main Eliza repository.

      Project Overview

      This starter template is designed to work with the 'direct' client within this repository due to the mocked capabilities of the real client. Plugins developed here are fully compatible with the main Eliza repository and can be directly transposed.

      Project Structure

      src/
        ├── plugins/
        │   ├── tavily/     # Tavily search plugin implementation
        │   └── exa/        # Exa search plugin implementation
        ├── common/         # Shared utilities and types
        └── index.ts        # Main entry point

      Creating a Plugin

      See the Plugin Development Guide for detailed instructions on creating your own plugin.

      Running the Project

      You can run the project using the following command:

      pnpm exec node --loader ts-node/esm ./src/scripts/load-with-plugin.ts --characters=./characters/eternalai.character.json

      Alternatively, to simplify this process, use the predefined script:

      pnpm mock-eliza --characters=./characters/eternalai.character.json

      This script will prompt for a comma-separated list of character files to load.

      Note: The 'mock-eliza' script uses the 'direct' client because the project contains mocked capabilities of the real client.

      Example Plugins

      This template includes two example plugin implementations:

      1. Tavily Search Plugin: Demonstrates web search capabilities using the Tavily API
      2. Exa Search Plugin: Shows how to integrate with the Exa search API

      Check the individual plugin directories for specific documentation and usage instructions.

      Contributing

      Contributions are welcome! Please read our Contributing Guide for details.

      License

      MIT