matmoul fa7df95d32 feat: persist KeePass snapshots to disk
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.
2026-05-10 01:25:26 +02:00
2026-05-09 23:50:24 +02:00

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

  • password is required when opening a database.
  • keyFile is 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.
S
Description
No description provided
Readme 104 KiB
Languages
TypeScript 77.4%
Python 18.4%
Shell 4.2%