npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

solar-sdk

v0.2.8

Published

An SDK for building applications on top of Solar Dex.

Readme

SOLAR SDK

An SDK for building applications on top of Solar .

Usage Guide

Installation

$ yarn add solar-sdk

Trade API

Solar trade API is the fastest and easiest way to interact with solar liquidity. It allows you to swap for any asset with 2 requests and a signature.

Get quote parameters

| Parameter | Type | Required | Description | |--------------|--------|----------|-----------------------------------------------------------| | inputMint | string | yes | Input token mint address | | outputMint | string | yes | Output token mint address | | amount | number | yes | Either inputAmount or outputAmount depending on the swap mode. | | slippageBps | number | yes | Slippage tolerance in base points (0.01%). |

Post parameters

| Parameter | Type | Required | Description | |-------------------------------|---------|----------|-----------------------------------------------------------------------------------------------------------------------------------| | version | string | yes | Use 'V0' for versioned transaction, and 'LEGACY' for legacy transaction (for now only supports 'LEGACY'). | | wrapSol | boolean | no | Set to true to accept ETH as inputToken. | | unwrapSol | boolean | no | Set to true to unwrap wETH received as outputToken. | | computeUnitPriceMicroLamports | string | yes | You can manually set this or use Solar priority fee API to set an automatic amount with String(data.data.default.h). The 'h' stands for high priority. 'vh' for very high and 'm' for medium are also accepted values. | | wallet | string | yes | Public key of the wallet. | | inputTokenAccount | string | no | Defaults to ATA (Associated Token Account). | | outputTokenAccount | string | no | Defaults to ATA (Associated Token Account). |

Get quote (https://api.solarstudios.co/compute/$) & and define the swap type.

Serialize (https://api.solarstudios.co/transaction/$)

Our apis schema and working is same as raydium's api. For now our api only supports LEGACY tx.

Raydium Trade api guide - https://docs.raydium.io/raydium/traders/trade-api

Demo Implimentations - https://github.com/raydium-io/raydium-sdk-V2-demo/blob/master/src/api/swap.ts#L21

BASE API URL - https://api.solarstudios.co

API Endpoints

Main

Main API endpoints for general information and configuration.

| Method | Endpoint | Description | |--------|-------------------------|------------------------------------| | GET | /main/version | UI V3 current version | | GET | /main/rpcs | UI RPCs | | GET | /main/chain-time | Chain Time | | GET | /main/info | Total Value Locked (TVL) and 24-hour volume | | GET | /main/auto-fee | Transaction auto fee | | GET | /main/clmm-config | CLMM Config | | GET | /main/cpmm-config | CPMM Config |

Mint

Endpoints related to mint information.

| Method | Endpoint | Description | |--------|-------------------------|------------------------------------| | GET | /mint/list | Default Mint List | | GET | /mint/ids | Mint Info | | GET | /mint/price | Mint Price |

Pools

Endpoints for pool information, keys, and historical data.

| Method | Endpoint | Description | |--------|-------------------------|------------------------------------| | GET | /pools/info/ids | Pool Info | | GET | /pools/info/lps | Pool Info by LP Mint | | GET | /pools/info/list | Pool Info List | | GET | /pools/info/mint | Pool Info by Token Mint | | GET | /pools/key/ids | Pool Key |

For query parameters refer - https://api-v3.raydium.io/docs/#/