better-vault
DocsPricingRoadmapDownloadPluginsGitHub repository146Get started
DocsPricingRoadmapDownloadPluginsGitHub repository146Get started

Get started

What is better-vault?Get startedDesktop appProviders and modelsStorageSubscription and accountPrivacy and your dataSelf-hosting

Using better-vault

NotebooksSourcesChat and citationsNotes, links and graphBotsSkills and MCP for AI agents
PluginsBuild your first pluginManifestBridge APIStudio toolsModsThemesGraph stylesPublish a plugin
Creator mode

Studio

The StudioAudio OverviewReportFlashcardsQuizData tableMind mapSlide deckInfographicAnatomyWhiteboard

Project

better-vault vs NotebookLMFAQRoadmapArchitectureAdd a Studio toolAdd a providerTranslationsllms.txt
Plugins

Bridge API

What a better-vault plugin page can call through window.betterVault: notebooks, sources, notes, the calendar, the user's AI model and its own storage.

A plugin's page reaches the user's data through one function, betterVault.call(method, params), which better-vault answers only as far as the user allowed.

Calling a method

Each call returns a promise with the method's result, or rejects with a message that says why not, such as a permission the user didn't give.

const notes = await betterVault.call("notes.list", {});

Methods

MethodNeedsTakesReturns
notebooks.listread:notebooksnothingNotebooks with their source counts
sources.listread:sourcesnotebookId (the open notebook when left out)The notebook's sources
sources.readread:sourcessourceIdA source's text
notes.listread:notesnothingNotes, without their text
notes.readread:notesidA note's Markdown
notes.createwrite:notestitle, bodyThe new note
skills.listread:skillsnothingSkills with their instructions
calendar.listread:calendarfrom, to (days, inclusive)Events
calendar.addwrite:calendartitle, start, and optional end, description, locationThe new event
ai.generateuse:aiprompt, optional system and schema (JSON Schema){ text }, or { object } with a schema
storage.getnothingkeyWhat the plugin saved, or null
storage.setnothingkey, value (null removes it){ ok: true }

ai.generate uses the model the user chose in the app, with their key, which the plugin never sees. Ask for a schema when you need data rather than prose. Storage is the plugin's own, kept on the user's device, 1 MB in all, and removed when the plugin is uninstalled.

Context and messages

betterVault.context holds where the page runs: the open notebook, the theme, the app's colour tokens and the language. betterVault.onContext(listener) calls back when it changes, such as when the user switches to dark mode. betterVault.toast(message) shows a short message in the app.

The sandbox

Pages can't use the network: fetch, pictures and fonts from servers are blocked. Put scripts, styles and pictures (as data: URLs) in the plugin's files. <script src> and <link rel=stylesheet> to your own files are put inline for you.

Manifest

Every field of a better-vault plugin manifest: its id, version, icon, permissions and tags, and the Studio tools, panels, mods and theme it contributes.

Studio tools

Make a Studio tool with a better-vault plugin: a page that sits in the Studio beside the built-in tools, uses the notebook, the AI model and its own storage.

On this page

Calling a methodMethodsContext and messagesThe sandbox