Description
@celine/bibhtml is a referencing system for HTML documents, built from Web Components. It aims to give web pages the same citation experience as LaTeX and BibTeX, with inline citations that link to a bibliography. The library is a thin wrapper around Citation.js, and it degrades gracefully when citations are malformed or when JavaScript is turned off. It is structured around three custom elements. The bh-cite element wraps an inline citation, unhides the reference it points to, adds a backlink, and replaces the marker with a reference number, which is the default. The bh-reference element holds a single entry, which can be written in BibTeX, and the bh-bibliography element renders the list in a chosen style such as APA. Citations can use parentheses or a custom formatting, and a citation to a reference that is missing from the document is shown unchanged. The ref attribute lets you point a citation at an explicit reference ID. You can load the library from a CDN with a module script, or download the module file and include it from your project. The site includes the API, extras and a how-to-cite section. The project is MIT licensed, version 6.0.0 was released in April 2026, and it is published on JSR and on GitHub.…
Highlights
- Inline citations for HTML documents
- Bibliography rendered in styles such as APA
- BibTeX entries through Citation.js
- Degrades gracefully without JavaScript
- Loads from a CDN or a local file
Ratings & Reviews
No ratings yet
Be the first to rate @celine/bibhtml.
People also visit
@celine/bibhtml FAQ
What is @celine/bibhtml?
A Web Components-based referencing system that adds LaTeX-style citations and bibliographies to HTML documents.
How do I add it to a page?
Add a module script from a CDN to the head, or download the mod.ts file and include it from your project.
Which elements does it provide?
bh-cite for inline citations, bh-reference for each entry, and bh-bibliography for the list.
Which citation styles can I use?
The bibliography can be formatted in styles such as APA, as set with the format attribute.
What happens when a citation is missing?
The text of the citation is shown unchanged, rather than breaking the page.
What license is it under?
MIT. The current version is 6.0.0, released on April 29, 2026.
What are the best @celine/bibhtml alternatives?
Popular alternatives to @celine/bibhtml include JabRef, ZoteroBib and Zotero. See all @celine/bibhtml alternatives




