Token Vault
Docs
Node SDKLanguage Agnostic SDKs
Token Vault
SDK

Node SDK

Nodejs SDK of Token Vault

There is no npm package for Token Vault. The wrapper around token vault's api is distributed using shadcn cli spec to maintain transparency. Please run the following command to add it in your project.

pnpm dlx shadcn@latest add https://token-vault.procrastinator.fyi/sdk/node.json
npx shadcn@latest add https://token-vault.procrastinator.fyi/sdk/node.json
yarn shadcn@latest add https://token-vault.procrastinator.fyi/sdk/node.json
bunx --bun shadcn@latest add https://token-vault.procrastinator.fyi/sdk/node.json

Running the command above will create 2 files in your project.

  1. ~/lib/token-vault/types.ts
  2. ~/lib/token-vault/client.ts

The types.ts file is the generated types from the OpenAPI spec. The client.ts file is the generated client from the OpenAPI spec.

The client.ts exports a class TokenVault which you can instantiate with your API key.

const tokenVault = new TokenVault(process.env.TOKEN_VAULT_API_KEY);

You can then use the TokenVault class to make requests to the Token Vault API.

const response = await tokenVault.createSecret({ name: "test", payload: "test" });

How It Works

Technical architecture and implementation details of Token Vault's encryption and proxy system.

Language Agnostic SDKs

Information about language agnostic SDKs for Token Vault