@waifusdk/providers
v0.0.8
Published
A collection of data providers which can be used to integrate with our SDK, designed to make integrating with different AI agent ecosystems easy and type-safe.
Downloads
11
Maintainers
Readme
W.A.I.F.U Providers
A collection of data providers which can be used to integrate with our SDK, designed to make integrating with different AI agent ecosystems easy and type-safe.
We believe in the open-source model and any contributions, suggestions, issues, or improvements, are welcome!. Contributions are rewarded with $WAIFU tokens. Please refer to our github issues for more details.
Features
- 🔒 Type-safe API integrations
- 🚀 Easy to use providers
- 🛠 Consistent error handling
- 📦 Modern TypeScript/JavaScript support
Available Providers
- Generics
- Weather
- Headlines
- Token
- LunarCrush
- Dexscreener
- Whitepaper
- Networks
- Solana
- Ethereum
Setup
- Install dependencies:
pnpm install- Create a
.envfile in the root directory with your API keys:
WEATHER_API_KEY=your_openweathermap_key
LUNAR_CRUSH_API_KEY=your_lunarcrush_key
TWITTER_API_KEY=your_twitter_key- Import and use the providers in your code:
import {
WeatherProvider,
LunarCrushProvider,
TwitterProvider,
} from "./providers";
// Initialize providers with your API keys
const lunar = new LunarCrushProvider({
apiKey: process.env.LUNAR_CRUSH_API_KEY,
});Running Tests
pnpm testError Handling
All providers implement consistent error handling:
try {
const data = await provider.someMethod();
} catch (error) {
// Errors include the provider name and specific error message
// e.g., "Weather API Error: City not found"
}Contributing
Take a look at our open issues for ideas of providers to be added.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-provider) - Commit your changes (
git commit -m 'Adding amapriv provider') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
MIT
Support
For support, please open an issue in the GitHub repository.
