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

@tintmap/react

v0.1.0

Published

Official React component for Tint — drop a branded, on-brand map into any React app. A thin wrapper over the <tint-map> web component.

Readme

@tintmap/react

Official React component for Tint — drop a branded, on-brand map into any React app with one component.

It's a thin wrapper over the framework-agnostic <tint-map> web component served from the Tint embed CDN. MapLibre runs inside the embed iframe, so nothing heavy lands in your bundle and the map looks exactly like the Studio preview.

Install

npm install @tintmap/react

react >= 17 is a peer dependency.

Usage

Create and publish a map in the Tint Studio, copy its ID (e.g. m_ab12cd34), then:

import { TintMap } from '@tintmap/react';

export default function StoreLocator() {
  return <TintMap id="m_ab12cd34" height={420} />;
}

Runtime markers (Starter plan and up)

Push pins from your own data and react to clicks:

<TintMap
  id="m_ab12cd34"
  height={480}
  markers={stores.map((s) => ({ id: s.id, lat: s.lat, lng: s.lng, label: s.name, address: s.address }))}
  onMarkerClick={(m) => openDrawer(m.id)}
  onReady={({ jsApi }) => console.log('map ready', jsApi)}
/>

Props

| Prop | Type | Default | Notes | |------|------|---------|-------| | id / mapId | string | — | Published map ID (required) | | height | number \| string | 420 | px number or any CSS length | | radius | number \| string | 12 | corner radius | | markers | TintMarker[] | — | runtime pins; needs Starter+ | | onMarkerClick | (marker) => void | — | runtime marker click | | onReady | ({ jsApi }) => void | — | fired when the map loads | | origin | string | https://embed.tintmap.dev | embed origin override |

Without React

The same map works anywhere via the web component this package wraps:

<script type="module" src="https://embed.tintmap.dev/v1/tint-map.js"></script>
<tint-map id="m_ab12cd34" style="height:420px"></tint-map>

Notes

  • The site's domain must be added to the map's allow-list in the Tint dashboard, or the embed refuses to render.
  • OpenStreetMap attribution must stay visible.

Docs · llms.txt