Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
N

node-vault

> 安全
Open source

Modern client for the HashiCorp's Vault API

374 stars0 likes1 views
WebsiteGitHub

About

Modern client for the HashiCorp's Vault API

Node Vault

node-vault is a Javascript HTTP client for HashiCorp's Vault API that allows you to have typesafe access to the API using TypeScript and Zod.


  • Features
  • Installation
  • Usage
    • Init and unseal vault
    • Create Key/Value V2 engine
    • Create, read, update, delete secrets
  • Documentation
  • Contributing
  • License

Features

  • Simple API
  • Typesafe and Validated Requests from Zod
  • Extendable using Custom Commands

Installation

bash
npm install @litehex/node-vault

Usage

Init and unseal vault
…
Create Key/Value V2 engine
typescript
const mounted = await vc.mount({
  mountPath: 'my-secret',
  type: 'kv-v2'
});

console.log(mounted); // { data: true }

const info = await vc.engineInfo({ mountPath: 'my-secret' });

console.log(info); // { data: { type: 'kv', options: { version: '2' }, ... } }
Write, read and delete secrets
typescript
const mountPath = 'my-secret';
const path = 'hello';

const write = await vc.kv2.write({
  mountPath,
  path,
  data: { foo: 'bar' }
});
console.log(write); // { data: { request_id: '...', lease_id: '...', ... } }

const read = await vc.kv2.read({ mountPath, path });
console.log(read); // { data: { request_id: '...', lease_id: '...', ... } }

const deleted = await vc.kv2.deleteLatest({ mountPath, path });
console.log(deleted); // { data: true }

Documentation

For complete usages, please dive into the Wiki.

For all configuration options, please see the API docs.

Contributing

You can contribute to this project by opening an issue or a pull request on GitHub. Feel free to contribute, we care about your ideas and suggestions.

Relevant

  • HashiCorp's Vault API docs
  • Minimal CLI for K/V V2 engine

License

MIT © Shahrad Elahi and contributors.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScriptclienthashicorpsecretstypescript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category安全
PricingOpen source

> Related tools

O
OWASP ZAP
开源 Web 应用安全扫描器
O
owasp-wstg-tracker
Simple web app to track OWASP WSTG security testing progress
H
homebridge-mi-gateway-security
XiaoMi Gateway Security plugin for HomeBridge.