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

@intuition-bends/crisp-blocks

v1.0.1

Published

Core components and community blocks for the Crisp prediction market dashboard

Downloads

55

Readme

Crisp Blocks

Community-built data blocks for the Crisp prediction market terminal.

npm version License: MIT PRs Welcome


What is this?

Crisp has a modular dashboard with drag-and-drop data blocks. This repo lets you:

  • Build custom blocks using our SDK
  • Test blocks locally in the playground
  • Share blocks with the Crisp community

Installation

npm install @intuition-bends/crisp-blocks

Quick Start

import {
  Block,
  CrispProvider,
  FederalStatusBlock
} from "@intuition-bends/crisp-blocks";

// Wrap your app with CrispProvider
function App() {
  return (
    <CrispProvider config={{
      navigation: {
        openMarket: (id, name) => console.log('Open market:', name),
        openTrader: (id, name) => console.log('Open trader:', name),
      }
    }}>
      <FederalStatusBlock onRemove={() => {}} />
    </CrispProvider>
  );
}

What's Included

Core Components

  • Block - Base block wrapper with header, fullscreen toggle, and drag handle
  • CrispProvider - React context for block configuration
  • useCrisp / useCrispOptional - Hooks to access context

Community Blocks

  • FederalStatusBlock - Live federal government operating status from OPM.gov

Types

import type {
  BlockMetadata,
  BlockProps,
  BlockComponent,
  Market,
  Position,
  Order,
  Trade,
  Trader,
} from "@intuition-bends/crisp-blocks";

Utilities

import { matchBlockToEvent, getBlocksForEvent } from "@intuition-bends/crisp-blocks";

Creating a Block

import { Block, BlockComponent, BlockProps } from "@intuition-bends/crisp-blocks";
import { Star } from "lucide-react";

interface MyBlockProps extends BlockProps {
  title?: string;
}

export const MyBlock: BlockComponent<MyBlockProps> = ({ onRemove, title = "Hello" }) => {
  return (
    <Block title="My Block" icon={<Star size={14} />} onRemove={onRemove}>
      <div className="p-4 rounded-lg bg-surface-secondary text-primary">
        {title}
      </div>
    </Block>
  );
};

MyBlock.metadata = {
  id: "my-block",
  name: "My Block",
  description: "Does something cool",
  author: "your-username",
  version: "1.0.0",
  category: "community",
  tags: ["example"],
  dependencies: { dataProviders: [], features: [] },
  layout: { minWidth: 2, minHeight: 2, defaultWidth: 4, defaultHeight: 3 },
};

Tailwind v4 Setup

This package uses Tailwind v4 semantic color classes. Add the package to your Tailwind sources:

/* In your global.css or tailwind entry file */
@import "tailwindcss";

/* Scan the package for class names */
@source "../node_modules/@intuition-bends/crisp-blocks/dist/*.mjs";

/* Define semantic colors */
@theme inline {
  --color-accent-red: #f87171;
  --color-accent-green: #4ade80;
  --color-accent-yellow: #facc15;
  --color-accent-cyan: #22d3ee;
  --color-accent-pink: #f472b6;
  --color-accent-blue: #3b82f6;

  --color-primary: var(--crisp-text-primary, #ffffff);
  --color-secondary: var(--crisp-text-secondary, #a0a0a0);
  --color-muted: var(--crisp-text-muted, #666666);

  --color-surface-primary: var(--crisp-surface-primary, #0a0a0a);
  --color-surface-secondary: var(--crisp-surface-secondary, #141414);
  --color-surface-hover: var(--crisp-surface-hover, #1a1a1a);

  --color-border-primary: var(--crisp-border-primary, #262626);
  --color-border-secondary: var(--crisp-border-secondary, #333333);
}

Semantic Color Classes

| Class | Use | | ----------------------- | ------------------------ | | bg-surface-primary | Block background | | bg-surface-secondary | Nested sections | | bg-surface-hover | Hover states | | text-primary | Headings, important text | | text-secondary | Body text | | text-muted | Labels, hints | | border-border-primary | Borders | | text-accent-green | Success, positive values | | text-accent-red | Errors, negative values | | text-accent-cyan | Links, primary actions | | text-accent-yellow | Warnings | | text-accent-pink | Highlights |

Opacity Modifiers

<div className="bg-accent-green/10 text-accent-green">Success</div>
<div className="bg-accent-red/10 text-accent-red">Error</div>

Contributing

# Clone and setup
git clone https://github.com/crisp-markets/crisp-blocks.git
cd crisp-blocks
pnpm install
pnpm build

# Start the playground
pnpm playground

Open http://localhost:3333 to preview blocks with theme switching.

See the full guide: CONTRIBUTING.md


Links


MIT License