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

@tmakit/core

v0.1.0

Published

Shared foundation for tmakit: SDK-agnostic bridge protocol types, event map and transport adapters

Readme

@tmakit/core

The SDK-agnostic mock engine and bridge-protocol types that power tma-devtools and @tmakit/testing.

Part of tmakit. Pure TypeScript, no React, tree-shakeable. Reach for this directly only when building your own tooling — most apps use tma-devtools / @tmakit/testing instead.

Install

npm i @tmakit/core

What it does

The bridge is injected (never imported), so a single mock works for an app built on any SDK sharing the Telegram protocol:

import { mockTelegramEnv, emitEvent } from '@telegram-apps/bridge'; // or @tma.js/bridge
import { createMock } from '@tmakit/core';

const mock = createMock({
  bridge: { mockTelegramEnv, emitEvent },
  defaults: { platform: 'ios', version: '8.0' },
});

mock.logger.subscribe((entries) => { /* live "network tab" for the bridge */ });
mock.emit('theme_changed', { theme_params: {} });        // push an event into the app
mock.requests.pending();                                  // stateful async flows to resolve

createMock handles:

  • Interception + logging of every outgoing postEvent (normalizing the differing onEvent signatures of @telegram-apps/bridge and @tma.js/bridge).
  • Auto-responses to instant request events (request_themetheme_changed, etc.).
  • Pending requests for stateful flows (popup, invoice, QR, clipboard, biometry) via a RequestManager.
  • In-memory CloudStorage simulation, so storage works end-to-end in dev.

Also exported

  • isMethodSupported(method, version) + compareVersions + METHOD_MIN_VERSION — the changelog-sourced version map used for feature-gating.
  • Protocol types: BridgeCall, BridgeLogEntry, MockLaunchParams, BridgePort, …

License

MIT