{"_id":"convex-env","_rev":"13-688c8944a09668b095d1a7fdfe6034ef","name":"convex-env","dist-tags":{"latest":"3.0.0"},"versions":{"1.0.0":{"name":"convex-env","version":"1.0.0","_id":"convex-env@1.0.0","maintainers":[{"name":"bentsignal","email":"me@bentsignal.com"}],"dist":{"shasum":"d1fed90f889567683ca8232cad450a6cdea2b592","tarball":"https://registry.npmjs.org/convex-env/-/convex-env-1.0.0.tgz","fileCount":5,"integrity":"sha512-iEs6hZikE7I+aVxWWrrHdqCzepR7xPiyT5/lMk2CmgZNJint61GUNNXLF/6Ld2U+9odZrH7EEJSyCTv1FS+oUQ==","signatures":[{"sig":"MEUCIGvyB9ck8vkT/t0LZEjEy11YhqkA0Ow9h/ufp9IRlpwqAiEAn9hAArzv8xyhm6T98pTsuyQi4TrV+gmwrb5t5IgRXzA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8621},"main":"./dist/index.mjs","type":"module","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":"./dist/index.mjs","./package.json":"./package.json"},"gitHead":"9ac264afb72b1482a75c362fc5016800a1c64bea","scripts":{"dev":"tsdown --watch","fmt":"oxfmt","lint":"oxlint --type-aware --type-check","test":"vitest","build":"tsdown","release":"changeset publish","lint:fix":"oxlint --type-aware --type-check --fix && oxfmt"},"_npmUser":{"name":"bentsignal","email":"me@bentsignal.com"},"_npmVersion":"10.9.4","description":"Typesafe access to environment variables in Convex","directories":{},"_nodeVersion":"22.21.0","dependencies":{"convex-helpers":"^0.1.108"},"_hasShrinkwrap":false,"devDependencies":{"oxfmt":"^0.20.0","oxlint":"^1.35.0","tsdown":"^0.18.1","vitest":"^4.0.16","typescript":"^5.9.3","@types/node":"^25.0.3","@changesets/cli":"^2.29.8","oxlint-tsgolint":"^0.10.0","@changesets/changelog-github":"^0.5.2"},"peerDependencies":{"convex":">=1.20.0"},"_npmOperationalInternal":{"tmp":"tmp/convex-env_1.0.0_1767206062532_0.6547698793776899","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"convex-env","version":"1.0.1","_id":"convex-env@1.0.1","maintainers":[{"name":"bentsignal","email":"me@bentsignal.com"}],"dist":{"shasum":"aa4300e35d771b3234dc1a8d6190e9ca6996db6e","tarball":"https://registry.npmjs.org/convex-env/-/convex-env-1.0.1.tgz","fileCount":5,"integrity":"sha512-R1Oz7xG8lgMpEN905mzcNGlnMQ8wLzmeX+r6ilSDHaeIB7favybIOq5WnazLEnQH+gVYknBoUnrMKOYuKS/ZLw==","signatures":[{"sig":"MEUCIQCvD2/T6gmo6NT4MKL1u2k5j2Y5P5/hMnRfXpGUwu4tFwIgFf9i/aEC+P/RYH+vxkpPTCYGcgoz4qEel0/ymnjvceY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9416},"main":"./dist/index.mjs","type":"module","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":"./dist/index.mjs","./package.json":"./package.json"},"gitHead":"7505a38f4c4f64af9bbf9b4ec2e1b6dcba5d1887","scripts":{"dev":"tsdown --watch","fmt":"oxfmt","lint":"oxlint --type-aware --type-check","test":"vitest","build":"tsdown","release":"changeset publish","lint:fix":"oxlint --type-aware --type-check --fix && oxfmt"},"_npmUser":{"name":"bentsignal","email":"me@bentsignal.com"},"_npmVersion":"10.9.4","description":"Typesafe access to environment variables in Convex","directories":{},"_nodeVersion":"22.21.0","dependencies":{"convex-helpers":"^0.1.108"},"_hasShrinkwrap":false,"devDependencies":{"oxfmt":"^0.20.0","oxlint":"^1.35.0","tsdown":"^0.18.1","vitest":"^4.0.16","typescript":"^5.9.3","@types/node":"^25.0.3","@changesets/cli":"^2.29.8","oxlint-tsgolint":"^0.10.0","@changesets/changelog-github":"^0.5.2"},"peerDependencies":{"convex":">=1.20.0"},"_npmOperationalInternal":{"tmp":"tmp/convex-env_1.0.1_1767207742752_0.10989972400667125","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"convex-env","version":"1.0.2","_id":"convex-env@1.0.2","maintainers":[{"name":"bentsignal","email":"me@bentsignal.com"}],"dist":{"shasum":"a86df4284051166b316faf8c7bced988ad7e1e5a","tarball":"https://registry.npmjs.org/convex-env/-/convex-env-1.0.2.tgz","fileCount":5,"integrity":"sha512-3WcbBKg98Q4Ho2eq3AfB0tvLblum4GY8qqnNbdDAJ5aXd9Z9WZrsqRUk7JzEg2JoaFok9kD10ShDmE3Jzza1gg==","signatures":[{"sig":"MEYCIQDc/+ittRY07iMuihG2VIgkfalt3n/OhEHqY0WzOQYrHAIhAPc7ZT81iqgSBm9g6IcdNrIMfoxjK7aChu0fx8++COJ9","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9414},"main":"./dist/index.mjs","type":"module","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":"./dist/index.mjs","./package.json":"./package.json"},"gitHead":"616906a9877f7865100c141370663aa69178d03e","scripts":{"dev":"tsdown --watch","fmt":"oxfmt","lint":"oxlint --type-aware --type-check","test":"vitest","build":"tsdown","release":"changeset publish","lint:fix":"oxlint --type-aware --type-check --fix && oxfmt"},"_npmUser":{"name":"bentsignal","email":"me@bentsignal.com"},"_npmVersion":"10.9.4","description":"Typesafe access to environment variables in Convex","directories":{},"_nodeVersion":"22.21.0","dependencies":{"convex-helpers":"^0.1.108"},"_hasShrinkwrap":false,"devDependencies":{"oxfmt":"^0.20.0","oxlint":"^1.35.0","tsdown":"^0.18.1","vitest":"^4.0.16","typescript":"^5.9.3","@types/node":"^25.0.3","@changesets/cli":"^2.29.8","oxlint-tsgolint":"^0.10.0","@changesets/changelog-github":"^0.5.2"},"peerDependencies":{"convex":">=1.20.0"},"_npmOperationalInternal":{"tmp":"tmp/convex-env_1.0.2_1767208144717_0.14814714462904677","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"convex-env","version":"2.0.0","keywords":["convex","env","environment variables"],"license":"MIT","_id":"convex-env@2.0.0","maintainers":[{"name":"bentsignal","email":"me@bentsignal.com"}],"homepage":"https://github.com/bentsignal/convex-env#readme","bugs":{"url":"https://github.com/bentsignal/convex-env/issues"},"dist":{"shasum":"2a92a130b474f7a014cc04bf50ccd6981e72b0f5","tarball":"https://registry.npmjs.org/convex-env/-/convex-env-2.0.0.tgz","fileCount":5,"integrity":"sha512-g8HPcfGPjJtNtWWNE3bi0u3B4mX7hyy/VTtq5+1Zlpj6vLWzLdSlW62GhG1jUeU2srqiaSRH0+tUp1zd16RhPQ==","signatures":[{"sig":"MEYCIQDws2a7CxahUSZ0P07QzQ/sFaGdXT3BzWLRTgm1fTs2IwIhALDt75IAPvHTHJRtOFyy5l2hl8f8K2aFyN5UijZyIlL5","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13286},"main":"./dist/index.mjs","type":"module","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":"./dist/index.mjs","./package.json":"./package.json"},"gitHead":"10bb24004559afdb9576b35eda24157d5d71e1ff","scripts":{"dev":"tsdown --watch","fmt":"oxfmt","lint":"oxlint --type-aware --type-check","test":"vitest","build":"tsdown","release":"changeset publish","lint:fix":"oxlint --type-aware --type-check --fix && oxfmt"},"_npmUser":{"name":"bentsignal","email":"me@bentsignal.com"},"repository":{"url":"git+https://github.com/bentsignal/convex-env.git","type":"git"},"_npmVersion":"10.9.4","description":"Type-safe access to environment variables in Convex","directories":{},"_nodeVersion":"22.21.0","dependencies":{"convex-helpers":"^0.1.108"},"_hasShrinkwrap":false,"devDependencies":{"oxfmt":"^0.20.0","oxlint":"^1.35.0","tsdown":"^0.18.1","vitest":"^4.0.16","typescript":"^5.9.3","@types/node":"^25.0.3","@changesets/cli":"^2.29.8","oxlint-tsgolint":"^0.10.0","@changesets/changelog-github":"^0.5.2"},"peerDependencies":{"convex":">=1.20.0"},"_npmOperationalInternal":{"tmp":"tmp/convex-env_2.0.0_1767296855447_0.44895903848618657","host":"s3://npm-registry-packages-npm-production"}},"2.1.0":{"name":"convex-env","version":"2.1.0","keywords":["convex","env","environment variables"],"license":"MIT","_id":"convex-env@2.1.0","maintainers":[{"name":"bentsignal","email":"me@bentsignal.com"}],"homepage":"https://github.com/bentsignal/convex-env#readme","bugs":{"url":"https://github.com/bentsignal/convex-env/issues"},"dist":{"shasum":"a30c143929014f012b37457ab024d878511cc1f9","tarball":"https://registry.npmjs.org/convex-env/-/convex-env-2.1.0.tgz","fileCount":5,"integrity":"sha512-9QIrD5aew+Q56VX5m6TE0YrmeqCj6bZNg/xDQU4iSLB4+XylpCFWB3JCBEEQYmGZmpZcoQ/TGM3DVqssBWCYFA==","signatures":[{"sig":"MEQCIDJAg5hOX/rMmoIrx13z98tNviM6cBrOEHRpLzNWNZwVAiAQAdUQxIkOPiOrWmiyP+bRjMTPUKzKYAftCdIE3cUCHQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13575},"main":"./dist/index.mjs","type":"module","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":"./dist/index.mjs","./package.json":"./package.json"},"gitHead":"2b6b5dbaf425cff147cea9312cce5670ddc3e9b2","scripts":{"dev":"tsdown --watch","fmt":"oxfmt","lint":"oxlint --type-aware --type-check","test":"vitest","build":"tsdown","release":"changeset publish","lint:fix":"oxlint --type-aware --type-check --fix && oxfmt"},"_npmUser":{"name":"bentsignal","email":"me@bentsignal.com"},"repository":{"url":"git+https://github.com/bentsignal/convex-env.git","type":"git"},"_npmVersion":"10.9.4","description":"Type-safe access to environment variables in Convex","directories":{},"_nodeVersion":"22.21.0","dependencies":{"convex-helpers":"^0.1.108"},"_hasShrinkwrap":false,"devDependencies":{"oxfmt":"^0.20.0","oxlint":"^1.35.0","tsdown":"^0.18.1","vitest":"^4.0.16","typescript":"^5.9.3","@types/node":"^25.0.3","@changesets/cli":"^2.29.8","oxlint-tsgolint":"^0.10.0","@changesets/changelog-github":"^0.5.2"},"peerDependencies":{"convex":">=1.20.0"},"_npmOperationalInternal":{"tmp":"tmp/convex-env_2.1.0_1767374463456_0.922334984661054","host":"s3://npm-registry-packages-npm-production"}},"2.2.0":{"name":"convex-env","version":"2.2.0","keywords":["convex","env","environment variables"],"license":"MIT","_id":"convex-env@2.2.0","maintainers":[{"name":"bentsignal","email":"me@bentsignal.com"}],"homepage":"https://github.com/bentsignal/convex-env#readme","bugs":{"url":"https://github.com/bentsignal/convex-env/issues"},"dist":{"shasum":"6a65315eabad12bfdb73e22e15ca061f4858ba5b","tarball":"https://registry.npmjs.org/convex-env/-/convex-env-2.2.0.tgz","fileCount":5,"integrity":"sha512-fuZAFFX0Mtk2LTb6E2vzjfD5lt4Xpz5to3o1K/Ds1yh3ymDAJKbOOXZ/PdMKWtpS9V63y6EQUtW41lqoV4BL1A==","signatures":[{"sig":"MEUCIQCZ0mMYtXRLyBR0KuJs8Z8dbOot3yqjcvr3UXUi7gmYMAIgNu+rHnCLyLi0iakCbCd0HDLnRKnAO7gYf6EsvdWsuF0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14212},"main":"./dist/index.mjs","type":"module","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":"./dist/index.mjs","./package.json":"./package.json"},"gitHead":"8f82eee8a342a6fa4248e782eafede33c8279fee","scripts":{"dev":"tsdown --watch","fmt":"oxfmt","lint":"oxlint --type-aware --type-check","test":"vitest","build":"tsdown","release":"changeset publish","lint:fix":"oxlint --type-aware --type-check --fix && oxfmt"},"_npmUser":{"name":"bentsignal","email":"me@bentsignal.com"},"repository":{"url":"git+https://github.com/bentsignal/convex-env.git","type":"git"},"_npmVersion":"10.9.4","description":"Type-safe access to environment variables in Convex","directories":{},"_nodeVersion":"22.21.0","dependencies":{"convex-helpers":"^0.1.108"},"_hasShrinkwrap":false,"devDependencies":{"oxfmt":"^0.20.0","oxlint":"^1.35.0","tsdown":"^0.18.1","vitest":"^4.0.16","typescript":"^5.9.3","@types/node":"^25.0.3","@changesets/cli":"^2.29.8","oxlint-tsgolint":"^0.10.0","@changesets/changelog-github":"^0.5.2"},"peerDependencies":{"convex":">=1.20.0"},"_npmOperationalInternal":{"tmp":"tmp/convex-env_2.2.0_1767376144165_0.1577246009751594","host":"s3://npm-registry-packages-npm-production"}},"2.3.0":{"name":"convex-env","version":"2.3.0","keywords":["convex","env","environment variables"],"license":"MIT","_id":"convex-env@2.3.0","maintainers":[{"name":"bentsignal","email":"me@bentsignal.com"}],"homepage":"https://github.com/bentsignal/convex-env#readme","bugs":{"url":"https://github.com/bentsignal/convex-env/issues"},"dist":{"shasum":"6ace90c55a20a7397b47edda9dd5e95c3def2d25","tarball":"https://registry.npmjs.org/convex-env/-/convex-env-2.3.0.tgz","fileCount":7,"integrity":"sha512-cjOKQfKyhTz7majdnJeFoF/bUWVqT3ECwE6tbQUNRAm8sYlZMJwh10Xn/biokFkvJXotg7tqlKLxp5cMypUBWQ==","signatures":[{"sig":"MEUCIQCu1BaiMQ28TJZiyi4bO6Sn5S37snGqcEeZwJ9U2vW1egIgVQR7DnuJBSQZm6rTfLv9jB2VJs4x/gtIwfm0x7sgdn0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":37478},"main":"./dist/index.mjs","type":"module","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":"./dist/index.mjs","./presets":"./dist/presets.mjs","./package.json":"./package.json"},"gitHead":"32973dadb03583f8db099ed7891c6fc4cc5afef2","scripts":{"dev":"tsdown --watch","fmt":"oxfmt","lint":"oxlint --type-aware --type-check","test":"vitest","build":"tsdown","release":"changeset publish","lint:fix":"oxlint --type-aware --type-check --fix && oxfmt"},"_npmUser":{"name":"bentsignal","email":"me@bentsignal.com"},"repository":{"url":"git+https://github.com/bentsignal/convex-env.git","type":"git"},"_npmVersion":"10.9.4","description":"Type-safe access to environment variables in Convex","directories":{},"sideEffects":false,"_nodeVersion":"22.21.0","dependencies":{"convex-helpers":"^0.1.108"},"_hasShrinkwrap":false,"devDependencies":{"oxfmt":"^0.20.0","oxlint":"^1.35.0","tsdown":"^0.18.1","vitest":"^4.0.16","typescript":"^5.9.3","@types/node":"^25.0.3","@changesets/cli":"^2.29.8","oxlint-tsgolint":"^0.10.0","@changesets/changelog-github":"^0.5.2"},"peerDependencies":{"convex":">=1.20.0"},"_npmOperationalInternal":{"tmp":"tmp/convex-env_2.3.0_1767469179669_0.020683821239009248","host":"s3://npm-registry-packages-npm-production"}},"2.4.0":{"name":"convex-env","version":"2.4.0","keywords":["convex","env","environment variables"],"license":"MIT","_id":"convex-env@2.4.0","maintainers":[{"name":"bentsignal","email":"me@bentsignal.com"}],"homepage":"https://github.com/bentsignal/convex-env#readme","bugs":{"url":"https://github.com/bentsignal/convex-env/issues"},"dist":{"shasum":"0cd4c1324830f441c80f94143adb745248a5eefa","tarball":"https://registry.npmjs.org/convex-env/-/convex-env-2.4.0.tgz","fileCount":7,"integrity":"sha512-WZY67DFzYxrE+xrZEMUcHUxwfAhY8NW94AzU6+lpYhHTgmrvM0+elSeoOn39Q3w6c+/8bCnVJcd04SAAvQDp6A==","signatures":[{"sig":"MEUCIHrF+LLqRF5Ub26IAb2UFRWjfPZkAmTGcXfJXSp4ECpkAiEAhT4jws3wFfkqZDXECBGjA5UNxx9ORoA9UJR9wmfiKgw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":37950},"main":"./dist/index.mjs","type":"module","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":"./dist/index.mjs","./presets":"./dist/presets.mjs","./package.json":"./package.json"},"gitHead":"0173d3088fb45d6f105b05fd83356cc720de2c5a","scripts":{"dev":"tsdown --watch","fmt":"oxfmt","lint":"oxlint --type-aware --type-check","test":"vitest","build":"tsdown","release":"changeset publish","lint:fix":"oxlint --type-aware --type-check --fix && oxfmt"},"_npmUser":{"name":"bentsignal","email":"me@bentsignal.com"},"repository":{"url":"git+https://github.com/bentsignal/convex-env.git","type":"git"},"_npmVersion":"10.9.4","description":"Type-safe access to environment variables in Convex","directories":{},"sideEffects":false,"_nodeVersion":"22.21.0","dependencies":{"convex-helpers":"^0.1.108"},"_hasShrinkwrap":false,"devDependencies":{"oxfmt":"^0.20.0","oxlint":"^1.35.0","tsdown":"^0.18.1","vitest":"^4.0.16","typescript":"^5.9.3","@types/node":"^25.0.3","@changesets/cli":"^2.29.8","oxlint-tsgolint":"^0.10.0","@changesets/changelog-github":"^0.5.2"},"peerDependencies":{"convex":">=1.20.0"},"_npmOperationalInternal":{"tmp":"tmp/convex-env_2.4.0_1768010106227_0.9653489866160463","host":"s3://npm-registry-packages-npm-production"}},"2.4.1":{"name":"convex-env","version":"2.4.1","keywords":["convex","env","environment variables"],"license":"MIT","_id":"convex-env@2.4.1","maintainers":[{"name":"bentsignal","email":"me@bentsignal.com"}],"homepage":"https://github.com/bentsignal/convex-env#readme","bugs":{"url":"https://github.com/bentsignal/convex-env/issues"},"dist":{"shasum":"5c861584b33580c8da58f34ce5f98d37f7ee6b03","tarball":"https://registry.npmjs.org/convex-env/-/convex-env-2.4.1.tgz","fileCount":7,"integrity":"sha512-ZxjK+A0CmUNcc461MjUdrKolAXU726Mt7+14HGPZ5A2U1dcIiN8mF6uzwCttxodKi7cJA7guDfoq9km/5t29Fg==","signatures":[{"sig":"MEYCIQDT4rBW/lcxunnVWa11QzMVEImUB1XBLGvlMnd1KpfpKQIhAI6D+5NU5jPYy+OXrEiXL3XRwOKneBMBIEafyfuWdiNM","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/convex-env@2.4.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":37966},"main":"./dist/index.mjs","type":"module","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":"./dist/index.mjs","./presets":"./dist/presets.mjs","./package.json":"./package.json"},"gitHead":"d6ddfa75b396786f9540a78ad9aa6f7548d1a6b6","scripts":{"dev":"tsdown --watch","fmt":"oxfmt","lint":"oxlint --type-aware --type-check","test":"vitest","build":"tsdown","release":"changeset publish","lint:fix":"oxlint --type-aware --type-check --fix && oxfmt"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:d8b2477c-8400-4460-94e6-318823f81355"}},"repository":{"url":"git+https://github.com/bentsignal/convex-env.git","type":"git"},"_npmVersion":"11.8.0","description":"Type-safe access to environment variables in Convex","directories":{},"sideEffects":false,"_nodeVersion":"22.21.0","dependencies":{"convex-helpers":"^0.1.108"},"_hasShrinkwrap":false,"devDependencies":{"oxfmt":"^0.20.0","oxlint":"^1.35.0","tsdown":"^0.18.1","vitest":"^4.0.16","typescript":"^5.9.3","@types/node":"^25.0.3","@changesets/cli":"^2.29.8","oxlint-tsgolint":"^0.10.0","@changesets/changelog-github":"^0.5.2"},"peerDependencies":{"convex":">=1.20.0"},"_npmOperationalInternal":{"tmp":"tmp/convex-env_2.4.1_1769365422607_0.41869847055359743","host":"s3://npm-registry-packages-npm-production"}},"2.5.0":{"name":"convex-env","version":"2.5.0","keywords":["convex","env","environment variables"],"license":"MIT","_id":"convex-env@2.5.0","maintainers":[{"name":"bentsignal","email":"me@bentsignal.com"}],"homepage":"https://github.com/bentsignal/convex-env#readme","bugs":{"url":"https://github.com/bentsignal/convex-env/issues"},"dist":{"shasum":"95579dd4cf534dbad5daf39d664706ae562d22b1","tarball":"https://registry.npmjs.org/convex-env/-/convex-env-2.5.0.tgz","fileCount":7,"integrity":"sha512-heS0uvsL3XYX6e0jQVbf+d66uY4lxsDi2BhoIN0x6WhRiRb/fesyO1FVWom54Q3k6ibGmi66rGRimN65b+p6ig==","signatures":[{"sig":"MEYCIQDtT0zqIKeItbfLMv+dtBgsg/k8BH2tedGYau//VQ/NaQIhAOJajddJ11ir0I/AojZadbuMjtDblQWw7Ge5VwzBLNtF","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/convex-env@2.5.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":38591},"main":"./dist/index.mjs","type":"module","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":"./dist/index.mjs","./presets":"./dist/presets.mjs","./package.json":"./package.json"},"gitHead":"e2b2a90563c8ca23b0325e2c23a42dfe08fc099c","scripts":{"dev":"tsdown --watch","fmt":"oxfmt","lint":"oxlint --type-aware --type-check","test":"vitest","build":"tsdown","release":"changeset publish","lint:fix":"oxlint --type-aware --type-check --fix && oxfmt"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:d8b2477c-8400-4460-94e6-318823f81355"}},"repository":{"url":"git+https://github.com/bentsignal/convex-env.git","type":"git"},"_npmVersion":"11.10.0","description":"Type-safe access to environment variables in Convex","directories":{},"sideEffects":false,"_nodeVersion":"22.21.0","dependencies":{"convex-helpers":"^0.1.108"},"_hasShrinkwrap":false,"devDependencies":{"oxfmt":"^0.20.0","oxlint":"^1.35.0","tsdown":"^0.18.1","vitest":"^4.0.16","typescript":"^5.9.3","@types/node":"^25.0.3","@changesets/cli":"^2.29.8","oxlint-tsgolint":"^0.10.0","@changesets/changelog-github":"^0.5.2"},"peerDependencies":{"convex":">=1.20.0"},"_npmOperationalInternal":{"tmp":"tmp/convex-env_2.5.0_1771010719964_0.5786827698244852","host":"s3://npm-registry-packages-npm-production"}},"3.0.0":{"name":"convex-env","type":"module","version":"3.0.0","license":"MIT","description":"Type-safe access to environment variables in Convex","exports":{".":"./dist/index.mjs","./presets":"./dist/presets.mjs","./package.json":"./package.json"},"keywords":["convex","env","environment variables"],"repository":{"type":"git","url":"git+https://github.com/bentsignal/convex-env.git"},"main":"./dist/index.mjs","module":"./dist/index.mjs","types":"./dist/index.d.mts","sideEffects":false,"scripts":{"build":"tsdown","dev":"tsdown --watch","lint":"oxlint --type-aware --type-check","lint:fix":"oxlint --type-aware --type-check --fix && oxfmt","fmt":"oxfmt","test":"vitest","release":"changeset publish"},"devDependencies":{"@changesets/changelog-github":"^0.5.2","@changesets/cli":"^2.29.8","@types/node":"^25.0.3","oxfmt":"^0.20.0","oxlint":"^1.35.0","oxlint-tsgolint":"^0.10.0","tsdown":"^0.18.1","typescript":"^5.9.3","vitest":"^4.0.16"},"dependencies":{"convex-helpers":"^0.1.108"},"peerDependencies":{"convex":">=1.20.0"},"gitHead":"3201622922b46559f2431ebb03ce21e6e663a823","_id":"convex-env@3.0.0","bugs":{"url":"https://github.com/bentsignal/convex-env/issues"},"homepage":"https://github.com/bentsignal/convex-env#readme","_nodeVersion":"22.21.0","_npmVersion":"11.14.1","dist":{"integrity":"sha512-KZJpS34T/uQkFraOJfxHLt7IwHI0t+0e1ieUJLHfx6FxvEIMJW1aiC0/G8BoNp4aFbcIj/CCI8cRAKv0VsEtlw==","shasum":"dd3594c3a7e808eac4fc2e46cc4da89f3a1ed735","tarball":"https://registry.npmjs.org/convex-env/-/convex-env-3.0.0.tgz","fileCount":7,"unpackedSize":38760,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/convex-env@3.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCIINBRgJRv6Vzv2LLVn1xTkSC1xIX5gF2UWTtVYpCLhwIhAKSXL2lmlFWONnGO8msiOlg72WuwA58PMxHerdnlJODy"}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:d8b2477c-8400-4460-94e6-318823f81355"}},"directories":{},"maintainers":[{"name":"bentsignal","email":"me@bentsignal.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/convex-env_3.0.0_1778436414887_0.52803010330043"},"_hasShrinkwrap":false}},"time":{"created":"2025-12-31T18:34:22.438Z","modified":"2026-05-10T18:06:55.286Z","0.0.0":"2025-12-28T18:14:04.455Z","1.0.0":"2025-12-31T18:34:22.702Z","1.0.1":"2025-12-31T19:02:22.925Z","1.0.2":"2025-12-31T19:09:04.870Z","2.0.0":"2026-01-01T19:47:35.620Z","2.1.0":"2026-01-02T17:21:03.603Z","2.2.0":"2026-01-02T17:49:04.318Z","2.3.0":"2026-01-03T19:39:39.819Z","2.4.0":"2026-01-10T01:55:06.363Z","2.4.1":"2026-01-25T18:23:42.777Z","2.5.0":"2026-02-13T19:25:20.120Z","3.0.0":"2026-05-10T18:06:55.033Z"},"bugs":{"url":"https://github.com/bentsignal/convex-env/issues"},"license":"MIT","homepage":"https://github.com/bentsignal/convex-env#readme","keywords":["convex","env","environment variables"],"repository":{"type":"git","url":"git+https://github.com/bentsignal/convex-env.git"},"description":"Type-safe access to environment variables in Convex","maintainers":[{"name":"bentsignal","email":"me@bentsignal.com"}],"readme":"<p align=\"center\">\n  <img src=\"https://b9sa6juqtj.ufs.sh/f/WmevHvqCEmRajVTwwtXKdHb7pg9oz0hCWQNZntX6PAcxi34L\" alt=\"Convex Env Example\" style=\"max-width: 700px; width: 100%;\">\n</p>\n\n<h2 align=\"center\">Convex Env</h2>\n<p align=\"center\">Type-safe access to environment variables in Convex</p>\n\n### Overview\n\nSimilar to [t3-env](https://github.com/t3-oss/t3-env), but native to [Convex](https://www.convex.dev).\n\nValidators currently supported:\n\n- v.string()\n- v.number()\n- v.boolean()\n- v.union() + v.literal() (strings only)\n\nYou can use `v.optional()` on _any_ supported validator, see [examples](#usage) below\n\n<span style=\"color: red;\"><strong>IMPORTANT</strong></span>: The <code>env</code> object from <code>createEnv</code> should only be used in the Convex runtime, the values on it will not be accessible client-side.\n\n### Installation\n\n```\nni convex-env\n```\n\n```\npnpm i convex-env\n```\n\n```\nbun i convex-env\n```\n\n```\nnpm i convex-env\n```\n\n```\nyarn add convex-env\n```\n\n### Usage\n\n```typescript\n// convex/convex.env.ts\n\nimport { createEnv } from \"convex-env\";\nimport { betterAuth, oAuth } from \"convex-env/presets\";\nimport { v } from \"convex/values\";\n\nexport const env = createEnv({\n  ...betterAuth,\n  ...oAuth.google,\n  ENVIRONMENT: v.union(v.literal(\"development\"), v.literal(\"production\")),\n  OPENAI_API_KEY: v.string(),\n  GOOGLE_CLIENT_SECRET: v.string(),\n  FREE_REQUESTS_PER_USER: v.number(),\n  DEBUG_MODE: v.optional(v.boolean()),\n});\n```\n\nThen access them anywhere in Convex.\n\n```typescript\n// convex/auth.ts\n\nimport { env } from \"./convex.env\";\n\nexport const createAuth = (ctx: GenericCtx<DataModel>) => {\n  return betterAuth({\n    baseURL: env.CONVEX_SITE_URL,\n    socialProviders: {\n      google: {\n        clientId: env.GOOGLE_CLIENT_ID,\n        clientSecret: env.GOOGLE_CLIENT_SECRET,\n      },\n    },\n  });\n};\n```\n\nYou can optionally pass values manually\n\n```typescript\n// convex/convex.env.ts\n\nimport { createEnv } from \"convex-env\";\nimport { v } from \"convex/values\";\n\nexport const env = createEnv({\n  schema: {\n    FREE_REQUESTS_PER_USER: v.number(),\n    DEBUG_MODE: v.optional(v.boolean()),\n  },\n  // optional, defaults to process.env\n  values: {\n    FREE_REQUESTS_PER_USER: process.env.FREE_REQUESTS_PER_USER,\n    DEBUG_MODE: process.env.DEBUG_MODE,\n  },\n});\n```\n\nIf you're running into an issue where it says an environment variable isn't found when you **know for a fact** that it is there, then you may need to use `verifyEnv` to verify the existence and type separately from the creation of the env object.\n\n```typescript\n// convex/convex.env.ts\n\nimport { createEnv } from \"convex-env\";\nimport { v } from \"convex/values\";\n\nexport const schema = {\n  FREE_REQUESTS_PER_USER: v.number(),\n  DEBUG_MODE: v.optional(v.boolean()),\n};\n\nexport const env = createEnv({\n  schema,\n  options: {\n    skipValidation: true,\n  },\n});\n```\n\n```typescript\n// convex/convex.config.ts\n\nimport { schema } from \"./convex.env\";\nimport { verifyEnv } from \"convex-env\";\n\nverifyEnv(schema);\n```\n\n### Presets\n\nI wrote out some presets for commonly used pairs of variables. Below is a complete list of all exports from `convex-env/presets`.\n\n- oAuth\n  - everything supported by [better-auth](https://www.better-auth.com)\n- environment\n  - \"development\", \"preview\", or \"production\"\n- [aws](https://aws.amazon.com/sdk-for-javascript/)\n- [clerk](https://docs.convex.dev/auth/clerk)\n- [workOS](https://docs.convex.dev/auth/authkit/),\n- [betterAuth](https://labs.convex.dev/better-auth)\n- [auth0](https://docs.convex.dev/auth/auth0)\n- [resend](https://www.convex.dev/components/resend)\n- [r2](https://www.convex.dev/components/cloudflare-r2)\n- [stripe](https://www.convex.dev/components/stripe)\n- [autumn](https://www.convex.dev/components/autumn)\n- [dodo](https://www.convex.dev/components/dodopayments)\n- [polar](https://www.convex.dev/components/polar)\n- [uploadthing](https://docs.uploadthing.com/)\n- [upstash](https://upstash.com/docs/redis)\n\n```typescript\n// convex/convex.env.ts\n\nimport { createEnv } from \"convex-env\";\nimport { oAuth, betterAuth, polar, r2 } from \"convex-env/presets\";\n\nexport const env = createEnv({\n  ...betterAuth,\n  ...oAuth.google,\n  ...oAuth.github,\n  ...polar,\n  ...r2,\n  OPENAI_API_KEY: v.string(),\n  FREE_REQUESTS_PER_USER: v.number(),\n  DEBUG_MODE: v.optional(v.boolean()),\n});\n```\n\n### Why use it?\n\nUser defined values on the `process.env` object will always be typed `string | undefined`. If you want to store anything other than a string, you have to cast it at each use and hope that you entered the value correctly in `.env`\n\nThis package gives you the reassurance that when you use an environment variable in your code, it will:\n\n- Actually be there\n- Be the type you expect it to be\n\nIt can also prevent you from shipping bugs to production. If an environment variable is missing or doesn't match its validator, your deployment to Convex will fail.\n\n<p align=\"center\">\n  <img src=\"https://b9sa6juqtj.ufs.sh/f/WmevHvqCEmRai7ZRq7VC2K8VNp5TJWgmuZAHxryoLzDhek3B\" alt=\"Convex Env build failure example\" style=\"max-width: 700px; width: 100%;\">\n</p>\n","readmeFilename":"README.md"}