Navid Nobani94 downloadsAdd simple, local BibTeX citations, references, and bibliographies to your notes.
OneBib adds simple, local BibTeX citations and reference lists to Obsidian notes. It does not require Zotero, Mendeley, an account, or a network connection.
Open Settings → OneBib and select Import bibliography file to choose a .bib file directly from your device. OneBib copies it into the root of the vault and selects it. Alternatively, put a .bib file anywhere inside the vault and select it in the Bibliography file setting. If the vault contains exactly one .bib file, OneBib selects it automatically.
Type a citation key between >> and <<:
Explanations are important for trustworthy systems >>cambria2023survey<<.
In Live Preview and Reading view, OneBib renders the marker as (Cambria et al., 2023).
OneBib adds a managed References section to the end of the note and keeps it synchronized.
Type >> to search the library by citation key, author, or title. You can also use the Insert citation command. Multiple works can be cited together with >>firstKey; secondKey<<.
OneBib automatically adds a safety space after a closing << when the next character is not whitespace or punctuation. This keeps adjoining words from being interpreted as HTML-like markup in Live Preview.
The original marker stays in the Markdown file. Move the cursor onto a rendered citation in Live Preview to edit its key.
OneBib surrounds the generated References section with two internal markers:
<!-- onebib:references:start -->
<!-- onebib:references:end -->
Obsidian may show these lines in Live Preview or Source mode. This is normal: OneBib uses them to find and safely update the generated bibliography. Switch to Reading view with the book icon for a clean document; the markers are hidden there. Do not edit or delete the markers. Edit the .bib file or citation keys instead.
@article{cambria2023survey,
title = {A survey on XAI and natural language explanations},
author = {Cambria, Erik and Malandri, Lorenzo and Mercorio, Fabio and Mezzanzanica, Mario and Nobani, Navid},
journal = {Information Processing \& Management},
volume = {60},
number = {1},
pages = {103111},
year = {2023},
publisher = {Elsevier}
}
.bib file from the vault..bib into the vault, and loads it.Use a separate test vault while developing plugins.
npm install
npm run build
Copy main.js, manifest.json, and styles.css into <vault>/.obsidian/plugins/onebib/, then enable OneBib under Settings → Community plugins.
OneBib reads only the selected .bib file and Markdown notes in the current vault. If you use Import bibliography file, the system file picker grants access only to the file you explicitly select, and OneBib immediately copies it into the vault. It has no network access, account requirement, advertising, payments, or telemetry. The runtime bundle has no bundled third-party dependencies and supports both desktop and mobile Obsidian 1.5.0 and later. On Obsidian 1.13.0 and later, its settings are also available through settings search.
The built-in formatter provides a practical APA-like author–year style. It is not yet a complete CSL or BibTeX implementation. The parser supports common BibTeX entries, nested braces, quoted values, string macros, and concatenated values.
The content inside the managed References block is generated. Edit the BibTeX source or citation markers instead of editing that block manually.
OneBib follows the official Obsidian plugin release process:
manifest.json and package.json.versions.json only when the minimum Obsidian version changes.1.0.2.main.js, manifest.json, styles.css, and an installation ZIP to the GitHub release.