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/core

v1.0.0

Published

The durable operation lifecycle for Flare: intent, quote, unsigned plan, execution, evidence and recovery. Headless, no React.

Readme

@flarekit-dev/core

npm license

The durable operation lifecycle for Flare: intent, quote, unsigned plan, execution, evidence and recovery. Headless — no React, no DOM.

Community-built. Not an official Flare Networks product.

Install

npm i @flarekit-dev/core viem

Usage

This example runs with no wallet, no key and no network. createMockKit reproduces the real state machine, including its waits.

import { createMockKit } from '@flarekit-dev/core'

const kit = createMockKit()
kit.isMock // true — mock surfaces are always labelled, never a silent fallback

const intent = {
  amountXrp: '25', // an exact decimal string, never a float
  recipient: '0xA4b05cdB545FA7CA12Be9f866d64E8A843A31Bd9',
  xrplAccount: 'rDYeq...',
}

const quote = kit.quote(intent)
quote.mintedEstimate // every term carries its asset and full precision
quote.minimumPayment

let operation = kit.start(intent)
operation.state // 'draft'

operation = await kit.reconcile(operation)
operation.state // e.g. 'awaiting_external' — the XRP Ledger has not answered yet

reconcile reads the chain and returns the operation's real state. It is safe to call at any time, including after a reload — operations persist and reconcile themselves, so there is no resume step.

The lifecycle

Every surface in flare-kit — headless, hooks, widgets and agent tools — reports exactly these sixteen states:

draft · discovering · quoting · awaiting_input · awaiting_approval · ready
executing · submitted · confirming · awaiting_external · action_required
partially_succeeded · succeeded · failed · cancelled · expired

Four of them exist because the alternative is a lie. submitted is never rendered as succeeded. awaiting_external means the answer is genuinely not known yet, and is never rendered as failed. action_required means the protocol is waiting on the user — an XRPL payment inside a deadline, say. partially_succeeded means exactly that.

Going live

The live kit satisfies the same contract, so nothing downstream branches on it:

import { createPublicClient, http } from 'viem'
import { chainFor } from '@flarekit-dev/contracts'
import { createFlareKit } from '@flarekit-dev/core'

const chainId = 114 // Coston2
const kit = await createFlareKit({
  client: createPublicClient({ transport: http(chainFor(chainId).rpcUrl) }),
  chainId,
})
kit.isMock // false

Mock mode is explicit and labelled. It is never entered as a fallback when something fails — a failure reports the failure.

Documentation

Full documentation at flare-kit.xyz.

License

MIT