AGG — Prediction Market Aggregator
AGG provides a suite of npm packages for integrating prediction market data into your application.Packages
| Package | Description | Size |
|---|---|---|
@agg-market/sdk | Thin fetch client, zero runtime deps | ~2KB |
@agg-market/hooks | React hooks wrapping the SDK | ~1-2KB + sdk |
@agg-market/ui | Ready-to-use UI components | Varies |
Quick Start
Install the packages you need:Using the SDK directly
Using React hooks
Using default UI theme tokens
Import@agg-market/ui/styles.css to use AGG UI defaults out of the box.Override theme tokens through namespaced CSS variables (for example
--agg-color-primary, --agg-color-foreground, --agg-radius-md, and --agg-font-family-sans) on your .agg-root container.
enableAnimations is kept as a config placeholder so you can wire your own animation behavior in UI components.