@sperax/community-tool-portfolio-analytics
v0.2.2
Published
Example: portfolio analytics plugin with React renderer using @sperax/plugin-sdk
Maintainers
Readme
@sperax/community-tool-portfolio-analytics
Install
npm install @sperax/community-tool-portfolio-analytics@sperax/community-tool-portfolio-analytics
Example: portfolio analytics plugin with React renderer using @sperax/plugin-sdk
Example Plugin: Portfolio Analytics
Demonstrates the renderer pattern — rich React UI for displaying portfolio performance data. Shows how to:
- Define APIs with complex Zod schemas
- Return structured
statefrom the executor - Render the state as a visual table in the chat UI
Usage
Source-first workspace package — there is no build step. TypeScript resolves it through
workspace:*, so importing it is all that is required:
import { manifest, portfolioAnalyticsTool } from '@sperax/community-tool-portfolio-analytics';Exports
@sperax/community-tool-portfolio-analytics
manifest · portfolioAnalyticsTool
@sperax/community-tool-portfolio-analytics/client
renderer
@sperax/community-tool-portfolio-analytics/executor
executor
Development
This package has no tests yet. New tests go in packages/example-plugin-portfolio-analytics/src/__tests__/, with the basename matching the source file.
Source: packages/example-plugin-portfolio-analytics
Part of SperaxOS — the open-source AI agent workspace for DeFi. See CONTRIBUTING.md before opening a pull request.
License
example-plugin-portfolio-analytics is released under the Apache-2.0 license.
