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

@o3co/create-auth-policy-verifier

v0.3.1

Published

Scaffold a new o3co/auth.policy-verifier project from the standalone template

Downloads

138

Readme

@o3co/create-auth-policy-verifier

CLI scaffolder for auth.policy-verifier. Generates a new standalone server project from the built-in template.

Usage

npx @o3co/create-auth-policy-verifier <project-name> [--dir <dir-name>]

<project-name> may be either a scoped npm name (@scope/pkg) or an unscoped name (pkg).

Unscoped example:

npx @o3co/create-auth-policy-verifier my-verifier
cd my-verifier
npm install
npm run debug

Scoped example (directory defaults to the package portion):

npx @o3co/create-auth-policy-verifier @my-org/auth.policy-verifier
cd auth.policy-verifier
npm install
npm run debug

Override the directory name with --dir:

npx @o3co/create-auth-policy-verifier @my-org/auth.policy-verifier --dir verifier
cd verifier

What It Does

  1. Validates <project-name> (see Validation Rules).
  2. Derives the target directory name: --dir <value> if given, else the unscoped part of a scoped name, else the name itself.
  3. Aborts with an error if the target directory already exists.
  4. Copies templates/standalone/ to the target directory, excluding node_modules/ and dist/.
  5. Rewrites package.json: sets name to <project-name> verbatim (scope-preserving), removes private, and replaces workspace:* dependency versions with published semver versions from templates/versions.json.
  6. Prints next-step instructions.

Validation Rules

<project-name> must match one of:

  • Unscoped: ^[a-z0-9][a-z0-9-._~]*$
  • Scoped: ^@[a-z0-9][a-z0-9-._~]*/[a-z0-9][a-z0-9-._~]*$

Both forms must be non-empty, not . or .., and ≤ 214 characters.

--dir <value> must match the unscoped pattern above (same constraints).

Known Limitations

The bundled template's README.md / README.ja.md still carry the upstream title @o3co/auth-policy-verifier-standalone. When generating a scoped project, that title will not match your package.json name; edit it manually if it matters for your use case.

Generated Structure

<project-name>/
├── config/
│   └── application.conf    # HOCON config (env var overrides)
├── src/
│   └── main.mts            # Composition root — loads config and starts server
├── Dockerfile
├── Makefile
├── docker-compose.yml
├── docker-compose.test.yml
├── package.json
└── tsconfig.json

Programmatic API

The scaffolder also exports its internals for programmatic use:

import { scaffold, main } from "@o3co/create-auth-policy-verifier";

| Export | Signature | Description | |---|---|---| | scaffold | (targetDir: string, projectName: string): void | Copies the template and rewrites package.json | | main | (): void | CLI entry point — parses process.argv and calls scaffold |

See Also