Skip to content

In-memory adapter

VeguiPermsMemoryAdapter is the reference implementation, exported by @vperms/core and re-exported by vperms. It keeps subjects and grants in Maps scoped by workspace.

import { SubjectType, VeguiPermsMemoryAdapter, VeguiPermsService } from "vperms";
const vperms = new VeguiPermsService({
adapter: new VeguiPermsMemoryAdapter(),
});

It has no options, no migration and no I/O — perfect for tests, examples and local development.

It is used by the repository’s own tests and by examples/basic.