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

middesk-view-component

v0.1.3

Published

A React component library for displaying Middesk business verification data with a clean, customizable UI.

Downloads

16

Readme

Middesk View Component

A React component library for displaying Middesk business verification data with a clean, customizable UI.

Features

  • Display business verification data from Middesk API
  • Pre-built cards for different data sections (Business Details, People, Watchlists, etc.)
  • Fully typed TypeScript support
  • Tailwind CSS styling
  • Integration with safeturf-ui-kit theme system

Installation

Option 1: Install from npm (if published)

npm install middesk-view-component

Option 2: Install locally

# In your project
npm install /path/to/middeskViewComponent-main

Option 3: Link for development

# In this component directory
npm link

# In your project directory
npm link middesk-view-component

Usage

Basic Example

import React from 'react';
import { MiddeskBusinessView } from 'middesk-view-component';
import { ThemeProvider } from 'safeturf-ui-kit';
import 'middesk-view-component/style.css';

function App() {
  const [businessData, setBusinessData] = useState(null);

  // Fetch your Middesk data
  useEffect(() => {
    fetch('https://api.middesk.com/v1/businesses/YOUR_BUSINESS_ID', {
      headers: {
        'Authorization': 'Bearer YOUR_API_KEY'
      }
    })
      .then(res => res.json())
      .then(data => setBusinessData(data));
  }, []);

  return (
    <ThemeProvider theme="light">
      <div className="p-6">
        <MiddeskBusinessView data={businessData} />
      </div>
    </ThemeProvider>
  );
}

Using Individual Cards

You can also import and use individual cards:

import {
  BusinessDetailsCard,
  PeopleCard,
  WatchlistsCard,
  extractMiddeskData
} from 'middesk-view-component';

function MyCustomView({ data }) {
  const middeskData = extractMiddeskData(data);

  return (
    <div>
      <BusinessDetailsCard data={middeskData?.businessDetails} />
      <PeopleCard data={middeskData?.people} />
    </div>
  );
}

Available Components

  • MiddeskBusinessView - Main component that displays all sections
  • BusinessDetailsCard - Business information, TIN, addresses, etc.
  • PeopleCard - Associated people and their details
  • WatchlistsCard - Watchlist screening results
  • IndustryClassificationCard - Industry classification data
  • VerificationSummary - Overview of verification status

Available Functions

  • extractMiddeskData(data) - Utility function to map Middesk API response to component props

Development

Run Demo

npm run dev

This will start a development server at http://localhost:3000 showing the demo with sample data.

Build Library

npm run build:lib

This creates the distributable library files in the dist/ folder.

Build Regular App

npm run build

Dependencies

This component requires the following peer dependencies:

  • react >= 18.2.0
  • react-dom >= 18.2.0
  • safeturf-ui-kit >= 1.0.2

Props

MiddeskBusinessView

| Prop | Type | Required | Description | |------|------|----------|-------------| | data | any | No | The Middesk API response object |

Styling

The component uses Tailwind CSS. Make sure to:

  1. Import the component's styles: import 'middesk-view-component/style.css'
  2. Wrap your app with ThemeProvider from safeturf-ui-kit

License

MIT