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

@global-torque/domain-types

v0.4.0

Published

Pure investment domain contracts for the Torque framework.

Readme

@global-torque/domain-types

Pure investment-domain TypeScript contracts shared by apps and packages.

Ownership

This package owns DTOs, status constants, request/response shapes, and data-shape contracts that are safe to consume from any TypeScript runtime.

Allowed Dependencies

  • TypeScript standard library types.
  • Other pure type packages, after dependency direction is reviewed.

Forbidden Dependencies

  • Vue, Pinia, Vue Router, or browser-only globals.
  • import.meta.env or application runtime config.
  • @global-torque/ui-kit, @global-torque/ui-primitives, or investment runtime/data packages.
  • App route names unless they are explicitly accepted as cross-app contracts.

Public Exports

  • accreditationTypes: accreditation status constants and raw accreditation response shapes.
  • analyticsTypes: analytics DTOs, log levels, client contracts, frontend service labels, and client error context shapes.
  • authConstants: Ory self-service API endpoint path constants and AAL2 query contract.
  • authTypes: Ory session, flow, logout, native auth, schema, and error DTOs; identity traits allow flat first_name/last_name and optional nested name.
  • blogTypes: public invest content metadata contracts and reviewed content-link slug constants.
  • distributionsTypes: distribution response and formatted distribution contracts.
  • esignTypes: e-signature request/response contracts.
  • evmTypes: EVM wallet, transaction, authorization, withdraw, exchange, and Earn-overlay contracts.
  • filerTypes: filer item and sign-url response contracts.
  • investmentTypes: investment status constants, request/response shapes, document contracts, and formatted investment contracts.
  • kycTypes: KYC status constants and raw KYC response/launch contracts.
  • notificationsTypes: notification payload, token, data-field, and formatted notification contracts.
  • offerTypes: offer status constants, offer response/comment payload contracts, and formatted offer contracts.
  • profilesTypes: profile/user/background-information request and response contracts.
  • profileTypes: stable investment profile type constants and unions.
  • redemptionDigest: Global Torque Canonical JSON Grammar v1 encoding, SHA-256 helpers, and the typed CanonicalJsonError validation contract.
  • settingsTypes: session activity and formatted session contracts.
  • walletTypes: custodial wallet status constants, funding-source, wallet, transaction, and Plaid response contracts.
  • vaultTypes: ERC-7540 deployment, position, redemption, signing, operation, and fund-manager fulfillment contracts with exact raw-string amounts.

Example

import { PROFILE_TYPES, type ProfileType } from '@global-torque/domain-types';
import { AnalyticsLogLevel, type IAnalyticsMessage } from '@global-torque/domain-types/analyticsTypes';
import { InvestKycTypes, type IKycProfile } from '@global-torque/domain-types/kycTypes';

function isEntityProfile(profileType: ProfileType) {
  return profileType === PROFILE_TYPES.ENTITY;
}

const message: Pick<IAnalyticsMessage, 'level' | 'message'> = {
  level: AnalyticsLogLevel.ERROR,
  message: 'Request failed',
};

const kycProfile: Pick<IKycProfile, 'kyc_status'> = {
  kyc_status: InvestKycTypes.pending,
};