HTTP/2 200
date: Sat, 17 Jan 2026 00:50:20 GMT
content-type: text/html; charset=utf-8
content-length: 4235
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
server: cloudflare
last-modified: Wed, 15 Jan 2025 12:16:13 GMT
access-control-allow-origin: *
etag: W/"6787a70d-47fa"
expires: Sat, 17 Jan 2026 01:00:20 GMT
cache-control: max-age=600
content-encoding: gzip
x-proxy-cache: MISS
x-github-request-id: 9CD3:A69B1:A2570:BCF49:696ADCCB
accept-ranges: bytes
age: 0
via: 1.1 varnish
x-served-by: cache-bom-vanm7210072-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1768611021.558384,VS0,VE219
vary: Accept-Encoding
x-fastly-request-id: edeeb37859bfc13ae9e0266120a076600d6565f4
cf-cache-status: DYNAMIC
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=ybYEMcqcKH4zy%2F5z8PUD0iUlxrJGmwsIt5RE2at1HHfQE4hD3bFz6MogOhGX4dZ7qz69WGqCxniYQyugZIrB8BWAKidgo3%2FzCDKbMw%2Bj"}]}
cf-ray: 9bf1db9e0a69c1a6-BLR
Home - Citation.js
Getting started
Install
npm install @citation-js/core @citation-js/plugin-doi @citation-js/plugin-doi
Usage
// Load Citation.js
const { Cite } = require('@citation-js/core')
// Load plugins
require('@citation-js/plugin-doi')
require('@citation-js/plugin-csl')
// Parse input
Cite.async('10.7717/peerj-cs.214').then(data => {
// Format output
const bibliography = data.format('bibliography', {
format: 'html',
template: 'apa',
lang: 'en-US'
})
console.log(bibliography)
})
Usage
@citation-js/replacer ,
a simple HTML API for Citation.js , to format citations
on your page as easily as possible.
ISAAC Chrome Extension ,
a web extension to aid the entry of data regarding publications
on the Dutch NWO ISAAC platform.
BibTeX generator ,
easily generate a BiTeX file from various inputs.
In the wild
PubPub , a platform for
open publishing.
Scholia , an interface
that displays and augments data from Wikidata.
wcite , a CLI for
fetching and managing bibliographic records from Wikidata.
Reference Extractor ,
an online tool to extract references from Microsoft Word and LibreOffice documents.
Forgejo ,
a self-hosted Git server.
Similar projects & alternatives
How to cite
Willighagen, L. G. (2019). Citation.js: a format-independent, modular bibliography tool for the browser and command line. PeerJ Computer Science , 5, e214.
https://doi.org/10.7717/peerj-cs.214