Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
node-version: 24
cache: pnpm
registry-url: https://npm.pkg.github.com
scope: "@bearfire-dev"
scope: "@paperkeel"
- run: pnpm install --frozen-lockfile
- run: pnpm check
- if: github.event_name == 'release'
Expand All @@ -43,7 +43,7 @@ jobs:
mkdir package-consumer
cd package-consumer
pnpm init
pnpm add --lockfile-only "@bearfire-dev/env@${PACKAGE_VERSION#v}"
pnpm add --lockfile-only "@paperkeel/env@${PACKAGE_VERSION#v}"
- name: Upload consumer lockfile
uses: actions/upload-artifact@v6
with:
Expand Down
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@bearfire-dev:registry=https://npm.pkg.github.com
@paperkeel:registry=https://npm.pkg.github.com
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# @bearfire-dev/env
# @paperkeel/env

This internal Bearfire package adds Bearfire defaults to [T3 Env](https://github.com/t3-oss/t3-env) and [Zod 4](https://zod.dev/).

It works with our [Infisical infrastructure-as-code system](https://github.com/bearfire-dev/infisical-iac). That system manages secret contracts and syncs secrets to application environments. This package validates those values at runtime and rejects Infisical placeholder values.
It works with our [Infisical infrastructure-as-code system](https://github.com/paperkeel/infisical-iac). That system manages secret contracts and syncs secrets to application environments. This package validates those values at runtime and rejects Infisical placeholder values.

This package is not intended or supported for external use.

Expand All @@ -17,17 +17,17 @@ Authenticate to GitHub Packages with `read:packages`, then install the package.
Add the GitHub Packages registry to `.npmrc`:

```ini
@bearfire-dev:registry=https://npm.pkg.github.com
@paperkeel:registry=https://npm.pkg.github.com
```

```bash
pnpm add @bearfire-dev/env @t3-oss/env-core zod
pnpm add @paperkeel/env @t3-oss/env-core zod
```

## Node

```ts
import { createBearfireEnv, secret } from "@bearfire-dev/env";
import { createBearfireEnv, secret } from "@paperkeel/env";
import { z } from "zod";

export const env = createBearfireEnv({
Expand All @@ -44,7 +44,7 @@ export const env = createBearfireEnv({
Workers receive variables through request bindings. Supply those bindings as `runtimeEnv` during request handling.

```ts
import { createRequestEnv, secret } from "@bearfire-dev/env";
import { createRequestEnv, secret } from "@paperkeel/env";

const getEnv = createRequestEnv({
server: { SHARED_KEY: secret("SHARED_KEY") },
Expand All @@ -63,7 +63,7 @@ The helper validates one time for each Worker bindings object.
## Guard only

```ts
import { isDefaultKey, throwIfDefaultKey } from "@bearfire-dev/env/guard";
import { isDefaultKey, throwIfDefaultKey } from "@paperkeel/env/guard";
```

The guard rejects `replace_default_key_` values and the legacy Infisical placeholder.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "@bearfire-dev/env",
"name": "@paperkeel/env",
"version": "0.1.0",
"description": "Bearfire environment validation with T3 Env and Zod",
"type": "module",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/bearfire-dev/env.git"
"url": "https://github.com/paperkeel/env.git"
},
"files": [
"dist"
Expand Down