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

@danceroutine/tango-adapters-core

v1.10.1

Published

Core types and utilities for Tango adapters

Readme

@danceroutine/tango-adapters-core

@danceroutine/tango-adapters-core defines the contract that every Tango web-framework adapter implements.

Most Tango application developers will never need this package directly, because they will install a concrete adapter such as @danceroutine/tango-adapters-express or @danceroutine/tango-adapters-next. This package exists so that Tango can support multiple host frameworks while providing a sane standardization surface for Tango to integrate against. If you are building a new adapter for a currently-unsupported framework, this is the interface you'll implement against.

Install

pnpm add @danceroutine/tango-adapters-core

Adapter contract

Tango keeps its persistence and API layer independent of any one HTTP framework in order to enable the same API layer to run inside a given host framework. The adapter contract is the point where a framework-specific request lifecycle is translated into Tango's handler model.

That means an adapter is responsible for managing:

  • The handoff of requests and route params from the host framework to Tango
  • The translation of a Tango response back into the framework's response type

The contract stays narrow so that adapter authors can focus on translation, rather than having to reimplement Tango's higher-level behavior.

Quick example

import type { FrameworkAdapter } from '@danceroutine/tango-adapters-core';

function registerAdapter(adapter: FrameworkAdapter): FrameworkAdapter {
    return adapter;
}

In practice, you usually implement FrameworkAdapter in a package of your own and then expose framework-specific registration helpers on top of it.

Public API

The root export includes:

  • FrameworkAdapter, the main adapter contract
  • FrameworkAdapterOptions, the shared options type
  • FRAMEWORK_ADAPTER_BRAND and isFrameworkAdapter, which support runtime identification of adapter instances

You can import these from the package root or from the adapter subpath, if you're used to Django's domain-drill-down style import paths:

import type { FrameworkAdapter } from '@danceroutine/tango-adapters-core';
import { adapter } from '@danceroutine/tango-adapters-core';

Documentation

Development

pnpm --filter @danceroutine/tango-adapters-core build
pnpm --filter @danceroutine/tango-adapters-core typecheck
pnpm --filter @danceroutine/tango-adapters-core test

For the wider contributor workflow, use:

License

MIT