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

metallicize

v0.0.3

Published

Simple test runner for tRPC.

Readme

metallicize

Simple test runner for tRPC.

npm i metallicize -g
metallicize test sequence.json

Build

npm run build
npm i -g
metallicize test <test-sequence-file> [output-csv-file]

Options

metallicize test

|Option|Description| |---|--- |-p --print <properties...>|Print additional information about each test. Values: url, headers, data. |-r --run <names...>|Run only the specified tests in the sequence. |-t --time|Print the duration of each test's web request. Time data is always recorded and always included in CSV output.

Syntax

Sequences

A sequence is a series of tests which are executed in order.

|Key|Description| |---|--- |name:string|The name of the sequence |url:string|The URL of a tRPC API |vars:any\|string|An object with variable names (keys) and values, or a path to a JSON file. Variables can be used in input or data objects (e.g.: "text": "{{ name }}"). |tests:test[]|A list of tests

Tests

Tests consist of a single query, mutation, or batch to a tRPC route, as well as a success state.

|Key|Description| |---|--- |name:string|The name of the test |query?:query|A tRPC query |mutation?:mutation|A tRPC mutation |queries?:query[]|A batch of tRPC queries |mutations?:mutation[]|A batch of tRPC mutations |success:success|The tests' success state

Note: each test must include exactly one query, mutation, queries, or mutations.

Query/Mutation

Queries and mutations define tRPC API calls and work like useQuery() and useMutation(). They have the same structure but are distinct internally.

|Key|Description| |---|--- |route:string|A public tRPC query or mutation route |input:any\|string|An object to be passed as input to the route, or a path to a JSON file

Queries and mutations can also be batched together by defining them in a list using tests.queries or tests.mutations.

Note: all API calls are automatically batched internally for compatibility with create-t3-app's AppRouter settings.

Success

Success states define the conditions that must be met for a test to pass. Any number of conditions may be included, and they must all match exactly.

|Key|Description| |---|--- status?:number|The HTTP status code code?:string|The TRPCError code (e.g.: NOT_FOUND) errorMessage?:string|The custom message attached to a TRPCError dataStrict?:boolean|When true, data must match the response object exactly to pass. Otherwise, only the keys specified in data must match. data?:any\|string|The JSON object expected for a successful request, or a path to a JSON file headers?:any|The response headers. Any headers specified within must match exactly.

Note: if every field is omitted, the test will always pass.