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

@putnami/go

v0.0.3-31d9219

Published

Go build tooling, linting, and development utilities

Readme

@putnami/go

Go build tooling, linting, and development utilities for the Putnami ecosystem.

Installation

bun add @putnami/go

Features

This package provides CLI jobs for Go development workflows. All jobs follow a task-based architecture where jobs orchestrate multiple composable tasks. These jobs are project-scoped; workspace-level runs (no project context) are not supported.

Jobs Overview

| Job | Command | Purpose | Documentation | |-----|---------|---------|---------------| | Build | putnami build | Compile Go packages/binaries with cross-compilation | doc/build.md | | Test | putnami test | Run tests with coverage | doc/test.md | | Lint | putnami lint | Lint code using golangci-lint and staticcheck | doc/lint.md | | Serve | putnami serve | Run Go applications as servers | doc/serve.md |

Scope: Project-only. These jobs require a project context (no workspace-level runs).

Quick Examples

Build

bunx putnami build .
bunx putnami build . --target linux/amd64  # Cross-compile
bunx putnami build . --output ./bin/myapp   # Custom output
bunx putnami build . --readonly             # Module readonly mode
bunx putnami build . --gcflags "-N -l"      # Debug compiler flags

Test

bunx putnami test .
bunx putnami test . --coverage             # Generate coverage
bunx putnami test . --coverage --outputdir coverage  # HTML/report output dir
bunx putnami test . --race                # Race detector

Lint

bunx putnami lint . --fix                  # Auto-fix issues
bunx putnami lint . --tool golangci-lint   # Use specific tool
bunx putnami lint . --tool golangci-lint --out-format json  # CI output

Serve

bunx putnami serve .                        # Start server
bunx putnami serve . --port 8080           # Custom port

Architecture

All jobs follow a task-based architecture:

  • Jobs orchestrate multiple tasks
  • Tasks are composable units of work
  • Tasks can be:
    • Skipped via flags
    • Run in parallel when independent
    • Reused across different jobs

See individual job documentation files in the doc/ directory for detailed task information.

Plugin Configuration

Jobs are registered via plugin.json:

{
  "commands": {
    "build": "./build",
    "test": "./test",
    "lint": "./lint",
    "serve": "./serve"
  },
  "jobs": {
    "build": {
      "implementation": "./build",
      "dependsOn": ["^build"],
      "filePatterns": ["**/*.go", "go.mod", "go.sum", "package.json"]
    },
    "test": {
      "implementation": "./test",
      "filePatterns": ["**/*.go", "go.mod", "go.sum", "package.json"]
    },
    "lint": {
      "implementation": "./lint",
      "filePatterns": ["**/*.go", "go.mod", ".golangci.yml", ".golangci.yaml", "package.json"]
    },
    "serve": {
      "implementation": "./serve",
      "dependsOn": ["build"],
      "filePatterns": ["**/*.go", "go.mod", "go.sum", "package.json"],
      "cache": false
    }
  }
}

Documentation

Each job has its own detailed documentation file:

  • build.md - Build job with cross-compilation support
  • test.md - Test job with coverage and JSON output parsing
  • lint.md - Lint job with golangci-lint and staticcheck
  • serve.md - Serve job for running Go servers

Each documentation file includes:

  • Job purpose and execution flow
  • Detailed task documentation
  • Available options
  • Usage examples

License

Putnami License (Version 1.0)