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

@trackunit/graphql-build-tools

v0.0.14

Published

`@trackunit/graphql-build-tools` provides a CLI and reusable transformer helpers for producing Manager-compatible GraphQL SDL in service build pipelines.

Readme

Trackunit GraphQL Build Tools

@trackunit/graphql-build-tools provides a CLI and reusable transformer helpers for producing Manager-compatible GraphQL SDL in service build pipelines.

CLI Usage

Run the CLI in two steps when publishing a service schema:

  1. bundle collects all raw .graphqls files into one SDL file.
  2. build renders that bundled SDL into the Manager-compatible schema for a gateway.
graphql-build-tools bundle "src/**/*.graphqls" target/schema.graphqls
graphql-build-tools build --server=public target/schema.graphqls target/schema.public.graphqls

bundle

graphql-build-tools bundle "src/**/*.graphqls" target/schema.graphqls

The bundle command:

  • Finds matching .graphqls files
  • Sorts them for stable output
  • Concatenates them with newlines
  • Writes one raw combined SDL file

build

graphql-build-tools build --server=public target/schema.graphqls target/schema.public.graphqls

The build command:

  • Reads the bundled raw SDL
  • Applies Manager's GraphQL directive transformer chain
  • Renders the SDL for one gateway: internal, public, report, or v3-mobile
  • Writes the final schema to upload or publish

Use - as the build output path to write the transformed SDL to stdout:

graphql-build-tools build --server=public target/schema.graphqls - > target/schema.public.graphqls

CI Example

- run:
    name: Build public GraphQL schema
    command: |
      npx --yes @trackunit/graphql-build-tools bundle "src/**/*.graphqls" target/schema.graphqls
      npx --yes @trackunit/graphql-build-tools build --server=public target/schema.graphqls target/schema.public.graphqls

Maven Example

Use npm exec from frontend-maven-plugin when rendering schemas from a Maven build:

<execution>
  <id>bundle-graphql-schema</id>
  <phase>generate-resources</phase>
  <goals><goal>npm</goal></goals>
  <configuration>
    <arguments>exec --yes -- @trackunit/graphql-build-tools bundle src/main/graphql/**/*.graphqls target/graphql/schema.graphqls</arguments>
  </configuration>
</execution>
<execution>
  <id>render-public-graphql-schema</id>
  <phase>generate-resources</phase>
  <goals><goal>npm</goal></goals>
  <configuration>
    <arguments>exec --yes -- @trackunit/graphql-build-tools build --server=public target/graphql/schema.graphqls target/graphql/schema.public.graphqls</arguments>
  </configuration>
</execution>

Publish target/schema.public.graphqls or target/graphql/schema.public.graphqls to the schema registry from the next CI step.

The package also exports the SDL directive transformer chain used by buildGraphqlSchema.

Programmatic API

const { buildGraphqlSchema, bundleSchemas } = require("@trackunit/graphql-build-tools");

The package root resolves to the library API. The CLI stays available through the graphql-build-tools bin command.

Trackunit

For more info and a full guide on Iris App SDK Development, please visit our Developer Hub.

This package was developed by Trackunit ApS. Trackunit is the leading SaaS-based IoT solution for the construction industry, offering an ecosystem of hardware, fleet management software & telematics.

The Trackunit logo