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

@juspay/rescript-blend

v1.0.0

Published

ReScript bindings for @juspay/blend-design-system

Readme

ReScript Blend Design System

Fully typed, production-ready ReScript 11 bindings for the @juspay/blend-design-system.

This package bridges the gap between the Blend Design System created in React/TS and your ReScript-based architecture by exposing strict, type-safe interfaces for the components. Best of all, these bindings are maintained autonomically!

📦 Installation

npm install @juspay/rescript-blend

The core design system (@juspay/blend-design-system) is bundled as a regular dependency and pinned per release — you don't need to install it separately.

Versioning
Starting at 1.0.0, this package follows its own SemVer cadence under the @juspay/rescript-blend name. Each release pins the @juspay/blend-design-system version it was generated against in dependencies; check the CHANGELOG to see which upstream version any given release ships with.

Note: This package ships ReScript source files (.res/.resi) only. Your project must have the ReScript compiler (rescript >= 12.0.0) installed to compile the bindings.

⚙️ Configuration

In your project's rescript.json, add @juspay/rescript-blend to the dependencies:

{
  "dependencies": [
    "@rescript/react",
    "@juspay/rescript-blend"
  ]
}

🚀 Usage

All components are namespaced under RescriptBlend to avoid module name collisions. Access them with qualified names or open the module:

@react.component
let make = () => {
  // Qualified access
  <RescriptBlend.Accordion 
    isMultiple=true 
    defaultValue={RescriptBlend.Accordion.Value.fromArray(["panel-1"])}
  >
    <RescriptBlend.Button ariaLabel="Submit Form" disabled=false> 
      {React.string("Continue")} 
    </RescriptBlend.Button>
  </RescriptBlend.Accordion>
}

// Or use `open` for cleaner syntax
@react.component
let make = () => {
  open RescriptBlend
  
  <Accordion isMultiple=true defaultValue={Accordion.Value.fromArray(["panel-1"])}>
    <Button ariaLabel="Submit Form" disabled=false> 
      {React.string("Continue")} 
    </Button>
  </Accordion>
}

Sub-components

Sub-components are accessed via the parent module namespace:

open RescriptBlend

// Accordion.Item
<Accordion>
  <Accordion.Item value="1" title={React.string("Title")}>
    {React.string("Content")}
  </Accordion.Item>
</Accordion>

// Modal with helper function
<Modal
  primaryAction={Modal.makeButtonAction(~text="Confirm", ~buttonType=#Primary, ())}
/>

(All React types, Polymorphic Variants, and callback Uncurries map 1:1 with ReScript 11 standards).

🧠 Autonomic Generation

To maintain 100% interoperability without manual intervention, this library employs an LLM-powered autonomous feedback loop that connects strictly to the external node_modules TS declarations files.

If you are a maintainer looking to generate new bindings directly:

  1. Provide a .env file holding your LITELLM_BASE_URL, TEST_KEY, and LITELLM_API_KEY.
  2. Generate an individual missing component:
    npm run generate -- --component Button
  3. Or synchronize the entire design system at once:
    npm run generate -- --all

The script natively compiles your ReScript code on generation and features an auto-correction feedback loop up to 3 times per component! Failures are pruned into .failed.res so downstream configurations are never broken.