fa7df95d3277c94e8ba9cf9725c83ac17afea0a5
Load existing db.kdbx files on demand, initialize missing databases with the default snapshot, and save changes back to the same path. Also add keyFiles and header metadata fields to the snapshot types.
KeePass TypeScript Library
A small TypeScript library for working with KeePass .kdbx databases.
Status
This branch is a fresh start.
The runtime implementation is being rebuilt in TypeScript, and pykeepass is used only as a compatibility reference during development.
Usage
import { openKeePassDatabase } from "./src/keepass";
const db = openKeePassDatabase("example.kdbx", {
password: "secret",
});
const entries = await db.listEntries();
console.log(entries);
API
openKeePassDatabase(path, options)listEntries()findEntries(query)listGroups()createEntry(entry)createGroup(group)save()close()
Notes
passwordis required when opening a database.keyFileis reserved in the public types.- The current codebase is intentionally minimal while the native KDBX implementation is rebuilt.
- Fixtures and compatibility tests can be added or refined as the format implementation grows.
Description
Languages
TypeScript
77.4%
Python
18.4%
Shell
4.2%