An unofficial JavaScript SDK for the Wynncraft API, providing easy access to Wynncraft game data with built-in caching support.
npm install wynnsdk- 🚀 Easy-to-use wrapper for the Wynncraft API
- 💾 Built-in caching system to respect API rate limits
- ⚡ Promise-based async/await support
import { WynnSDK } from 'wynnsdk';
// Initialize the SDK
const sdk = new WynnSDK();
// Get player information
const playerInfo = await sdk.getPlayer('PlayerName');
// Get guild information
const guildInfo = await sdk.getGuild('GuildName');
// Get item information
const itemInfo = await sdk.searchItem('Legendary Spear');
// Get live player and guild, party, friend locations
const playerLiveData = await sdk.getPlayerLocations();WynnSDK implements an intelligent caching system to:
- Respect Wynncraft API rate limits
- Reduce API calls for frequently requested data
- Improve response times
Cache durations:
The cache duration is automaticly determinate with header of the request.
Full documentation will be available soon.
Contributions are welcome! Feel free to:
- Fork the project
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Sebastien Moraz
If you encounter any problems or have questions, please:
- Open an issue
- Contact the author through GitHub
