Barekey stores values as strings, then parses them according to each variable’s declared type. That matters becauseDocumentation Index
Fetch the complete documentation index at: https://docs.barekey.dev/llms.txt
Use this file to discover all available pages before exploring further.
await barekey.get("KEY") returns the parsed value, not just the raw string.
Supported declared types
| Declared type | Returned SDK value |
|---|---|
string | string |
boolean | boolean |
int64 | bigint |
float | number |
date | Date |
json | parsed JSON value |
Creating typed variables
Examples:Reading typed values with the SDK
MAX_CONNECTIONS->100nFEATURE_ENABLED->trueRELEASED_AT->new Date(...)FEATURE_FLAGS-> parsed JSON
Use inspect() for raw and parsed values together
Why declared types matter
Declared types make Barekey more useful because they:- produce better generated SDK types
- reduce manual parsing in application code
- make CLI and API metadata easier to understand
- catch bad values earlier
Recommendation
Always set--type when creating variables unless you truly want an unstructured string value.
