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

@stake-sdk/ui

v1.0.6

Published

Credit Builder Tracker widget for React Native (Expo) with Material Design 3 theming

Readme

@stake-sdk/ui

Stake UI SDK for React Native (Expo): Credit Builder flow, Credit Builder Tracker, and shared Stake runtime helpers. Theming uses Material Design 3 via react-native-paper.

Installation

npm install @stake-sdk/ui react-native-paper @tanstack/react-query axios
# or
yarn add @stake-sdk/ui react-native-paper @tanstack/react-query axios

Peer dependencies (must be present in your app): react (≥18), react-native (≥0.70), react-native-paper (≥5).

Other runtime deps used by this package: @tanstack/react-query, axios. The CreditBuilder entry point also uses @expo/vector-icons (standard in Expo apps).

Setup

Call Stake.open once (e.g. in a root layout or screen useEffect) before widgets that hit Stake APIs:

import { Stake } from "@stake-sdk/ui";

await Stake.open({
  environment: "development", // or your supported environment key
  clientId: "<client-id>",
  clientSecret: "<client-secret>",
});

Usage

Credit Builder Tracker

import { CreditBuilderTracker } from "@stake-sdk/ui";
import { useTheme } from "react-native-paper";

function MyScreen() {
  const theme = useTheme();
  return (
    <CreditBuilderTracker theme={theme} residentId="<resident-id>" />
  );
}

Or with withTheme:

import { CreditBuilderTracker } from "@stake-sdk/ui";
import { withTheme } from "react-native-paper";
import type { MD3Theme } from "react-native-paper";

function MyScreen({ theme }: { theme: MD3Theme }) {
  return <CreditBuilderTracker theme={theme} residentId="<resident-id>" />;
}

export default withTheme(MyScreen);

Credit Builder (full flow)

import { CreditBuilder } from "@stake-sdk/ui";

<CreditBuilder residentId="<resident-id>" />

Theming helpers

import { StakeLightTheme, StakeDarkTheme } from "@stake-sdk/ui";

Exports

| Export | Description | |--------|-------------| | Stake | Stake.open(config) — initialize SDK / auth for the session | | StakeConfig | Type for Stake.open configuration | | CreditBuilderTracker | Tracker UI (requires theme, residentId) | | CreditBuilder | Full credit-builder flow UI | | StakeLightTheme / StakeDarkTheme | Paper-compatible theme objects |

Props

CreditBuilderTracker

| Prop | Type | Required | Description | |------------|------------|----------|-------------| | theme | MD3Theme | Yes | Material Design 3 theme from react-native-paper | | residentId | string | Yes | Resident identifier for API calls |

CreditBuilder

| Prop | Type | Required | Description | |--------------|----------|----------|-------------| | residentId | string | Yes | Resident identifier for API calls |

Publishing (for maintainers)

Package name: @stake-sdk/ui. Source lives under packages/stake-sdk/.

From the monorepo root:

| Script | Description | |--------|-------------| | npm run build:packages | Build the UI package (output in packages/stake-sdk/dist/). | | npm run version:tracker:patch | Bump patch version. Creates a git commit and tag in the workspace package. | | npm run version:tracker:minor | Bump minor version. | | npm run version:tracker:major | Bump major version. | | npm run publish:tracker | Build and publish the current version to npm. | | npm run release:tracker:patch | Build, bump patch, then publish. | | npm run release:tracker:minor | Build, bump minor, then publish. | | npm run release:tracker:major | Build, bump major, then publish. |

From packages/stake-sdk:

npm run build
npm run publish:package   # npm publish --access public

One-step release from root (example — patch):

npm run release:tracker:patch

Ensure you are logged in (npm login) with publish access to the @stake-sdk scope, and use --access public for the first scoped publish. To change the npm name or scope, edit name in packages/stake-sdk/package.json.