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

@flarekit-dev/contracts

v1.0.0

Published

Typed ABIs and the single address registry for Flare networks. Every address in flare-kit comes from here.

Downloads

59

Readme

@flarekit-dev/contracts

npm license

Typed ABIs and the single address registry for the Flare network. Every address flare-kit uses is resolved from here, and from nowhere else.

Community-built. Not an official Flare Networks product.

Install

npm i @flarekit-dev/contracts

No required dependencies. viem is an optional peer — install it only if you want the ABIs typed as viem Abi values.

Usage

import { chainFor, registryFor, fassetFor, explorerTxUrl } from '@flarekit-dev/contracts'

const COSTON2 = 114

const chain = chainFor(COSTON2)
chain.name //         'Flare Testnet Coston2'
chain.rpcUrl //       'https://coston2-api.flare.network/ext/C/rpc'
chain.underlying //   the XRP Ledger this network settles against

const registry = registryFor(COSTON2)
registry.contractRegistry // Flare's own registry, from which the rest resolve
registry.fdcHub

// On Coston2 the deployed symbol is FTestXRP, not FXRP. The registry reports
// what the chain actually deploys; rendering it as FXRP would be a lie.
const asset = fassetFor(COSTON2, 'XRP')
asset.symbol //                'FTestXRP'
asset.supportsDirectMinting // true

explorerTxUrl(COSTON2, '0x68d6bb35…') // a real link, never a template in a component

Networks

Network is configuration. Both entries are public constants — there is no environment variable to set, and no source change to switch between them.

| Key | Chain ID | Native | Underlying | Explorer | | --- | --- | --- | --- | --- | | coston2 | 114 | C2FLR | XRP Ledger Testnet | coston2-explorer.flare.network | | flare | 14 | FLR | XRP Ledger | flare-explorer.flare.network |

chainFor(id) throws UnsupportedNetworkError for anything else, naming the ids it does support. It never guesses.

What is exported

| | | | --- | --- | | FLARE_NETWORKS, chainFor | chain ids, RPC and explorer roots, the underlying XRPL chain | | registryFor | per-network contract addresses — FDC hub, relay, asset manager controller, registry | | fassetFor | the FAsset deployed for an underlying symbol, with its real on-chain symbol | | explorerTxUrl, explorerAddressUrl, explorerBlockUrl | Flare-side links | | underlyingExplorerTxUrl, …AccountUrl, …LedgerUrl | XRPL-side links | | BRIDGE_ROUTES, routesFor, routeByKey | LayerZero OFT routes, per route | | vaultsFor, vaultByKey | vault registry | | STAKING, stakingFor | P-chain staking deployment and endpoint | | encodeFeedId, decodeFeedId, FEED_CATEGORY | FTSO feed identifiers | | *Abis | typed ABIs per protocol — FDC, FTSO, bridge, delegation, rewards, staking, gasless, x402 |

Capability flags

Every registry entry that describes a write carries a *Verified boolean. It is true only where a full round trip has been driven on chain and read back — never because the code exists, and never because a simulation passed.

import { STAKING, stakingFor } from '@flarekit-dev/contracts'

stakingFor(114).stakeVerified // false

Today, on Coston2:

| Flag | Value | Meaning | | --- | --- | --- | | bridgeVerified | true | a bridge landed and was confirmed by reading the destination chain | | gaslessVerified | true | a payment landed with the payer's gas balance unchanged | | delegationVerified | true | delegate → delegatesOf read → undelegate, confirmed | | addLiquidityVerified | true | a real add and remove against the live pool | | stakeVerified | false | reads are live; the value-locking broadcast has not been made | | rewardsVerified | false | the account has earned no reward yet, so no claim has settled | | withdrawVerified | false | held false deliberately — a safe under-claim |

Consumers are expected to gate on these. @flarekit-dev/core refuses to build a signable plan against an unverified capability, so a mainnet call cannot silently sign approvals and then revert. A false here means "we have not proven this," which is not the same as "this is broken."

Documentation

Full documentation at flare-kit.xyz.

License

MIT