@jup-ag/platform-list
v1.2.100
Published
A comprehensive registry of platforms in the Solana ecosystem. This package provides structured platform data including metadata, links, token(s) information, smart contracts and services.
Downloads
696
Readme
@jup-ag/platform-list
A comprehensive registry of platforms in the Solana ecosystem. This package provides structured platform data including metadata, links, token(s) information, smart contracts and services.
JSON endpoints
The latest generated JSON files are available via GitHub Releases:
Installation
npm install @jup-ag/platform-list
# or
yarn add @jup-ag/platform-listUsage
Get platforms locally
import { platforms } from "@jup-ag/platform-list";
console.log(platforms);Get platforms dynamically
import { fetchPlatforms } from "@jup-ag/platform-list";
fetchPlatforms()
.then((fetchedPlatforms) => {
console.log(fetchedPlatforms);
})
.catch((error) => {
console.error("Error fetching platforms:", error);
});Contributing
We welcome contributions from the community! If you want to add a new platform, smart contract, or service to the registry, please read our Contributing Guide.
Quick Start for Contributors
- Fork the repository
- Create a platform file in
src/platforms/yourplatform.ts - Add a 400x400
.webpimage inimg/yourplatform.webp - Follow the rules:
- Platform IDs must be lowercase
- Images must be
.webpformat, 400x400 pixels
- Submit a Pull Request
See CONTRIBUTING.md for detailed instructions and examples.
Publishing
To publish a new version:
npm run format
npm run build:index
npm run commit:index
npm version patch
git push origin main --tags
# or
npm version patch && git push origin main --tags