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

@basenative/doppler

v3.3.0

Published

Thin developer-experience layer around Doppler — local-dev wrapper, CI helper, project bootstrap, environment validation. BaseNative ships plumbing, never values.

Readme

@basenative/doppler

Plumbing, not values. BaseNative gives every project the same Doppler workflow; Doppler holds the actual secrets.

A thin, dependency-free developer-experience layer over the Doppler CLI. Lets every DuganLabs repo (basenative, duganlabs, greenput, pendingbusiness, ralph-station, t4bs, warren-sys, warrendugan) bootstrap, validate, and run through Doppler the exact same way.

Boundary rule

BaseNative provides plumbing only. It never reads, stores, or transmits values.

Every command in this package shells out to doppler for the real work. The CLI exists to make the workflow consistent across projects — not to act as a secrets store of its own.

Install

# Per-project
pnpm add @basenative/doppler

# The doppler CLI is a system dependency, not an npm dep:
brew install dopplerhq/cli/doppler         # macOS
curl -Ls --tlsv1.2 https://cli.doppler.com/install.sh | sh   # Linux
scoop install doppler                       # Windows

doppler login                                # one time

One-time project setup

bn-doppler init my-app

This will:

  1. Create a Doppler project named my-app.
  2. Create configs dev, prep, prod.
  3. Pin the local repo to the dev config (doppler setup).
  4. Drop a starter doppler-required.json into the repo root.

Edit doppler-required.json to declare exactly which secrets the app expects:

{
  "secrets": [
    { "name": "DATABASE_URL",   "required": true },
    { "name": "SESSION_SECRET", "required": true },
    { "name": "SENTRY_DSN",     "required": false }
  ],
  "configs": ["dev", "prep", "prod"]
}

Then set values via the dashboard or CLI:

doppler secrets set DATABASE_URL
doppler secrets set SESSION_SECRET

Local dev workflow

# Recommended in your repo's package.json scripts:
{
  "dev":   "doppler run -- pnpm exec bn-wrangler pages dev dist",
  "build": "doppler run -- pnpm build"
}

# Or via the wrapper:
bn-doppler run -- pnpm dev

That's it. No .env files. No accidental commits of secrets. If a secret is missing, the app gets a fast, specific error at boot via requireSecrets.

CI/CD wiring (GitHub Actions)

# Once, locally:
bn-doppler ci-token --config prod
# (it asks for confirmation, then prints the token)

# Add it to the repo:
gh secret set DOPPLER_TOKEN --body "<paste>"

Then in .github/workflows/deploy.yml (full snippet at templates/.github-actions-doppler-snippet.yml):

- uses: dopplerhq/cli-action@v3

- name: Verify Doppler secrets
  env: { DOPPLER_TOKEN: ${{ secrets.DOPPLER_TOKEN }} }
  run: pnpm exec bn-doppler verify --config prod

- name: Deploy
  env: { DOPPLER_TOKEN: ${{ secrets.DOPPLER_TOKEN }} }
  run: doppler run --config prod -- pnpm exec bn-wrangler deploy

bn-doppler verify

Cross-checks doppler-required.json against the actual Doppler config:

bn-doppler verify --config dev
# OK — all 3 required secret(s) are populated in config "dev".

If anything's missing, it exits non-zero and prints exactly which names are absent — perfect as the first step in CI before deploy.

Programmatic API

import {
  dopplerRun,
  requireSecrets,
  injectIntoWrangler,
  MissingSecretsError,
} from '@basenative/doppler';
import { loadRequired, findMissing } from '@basenative/doppler/required';

// Boot-time check (after `doppler run -- node ./server.js` injects env vars):
await requireSecrets(['DATABASE_URL', 'SESSION_SECRET']);

// Or pull straight from Doppler:
await requireSecrets(['DATABASE_URL'], {
  source: 'doppler',
  project: 'my-app',
  config: 'prod',
});

// Split resolved values into vars vs secrets for Wrangler:
const { vars, secrets } = injectIntoWrangler({
  env: process.env,
  names: ['APP_NAME', 'API_TOKEN', 'SESSION_SECRET'],
});

// Or run a child process under doppler:
await dopplerRun(['pnpm', 'build'], { config: 'prod' });

Why this pattern

  • One playbook for every project. doppler run -- pnpm dev works the same in basenative, t4bs, greenput, etc.
  • No .env drift. Local dev, preview, and prod all read from the same canonical Doppler configs.
  • CI auditability. A single DOPPLER_TOKEN in GitHub instead of 17 individual secrets.
  • Boot-time fail-fast. requireSecrets turns a 3am production page into a 9am red CI run.
  • No values in BaseNative. This package is plumbing — every actual secret lives in Doppler, end of story.

Links

  • BaseNative monorepo — https://github.com/DuganLabs/basenative
  • Issues — https://github.com/DuganLabs/basenative/issues
  • Docs — https://github.com/DuganLabs/basenative#readme

License

Apache-2.0