HTTP/2 200
date: Sun, 18 Jan 2026 01:56:54 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: Sun, 18 Jan 2026 02:06:54 GMT
cache-control: max-age=600
content-encoding: gzip
x-proxy-cache: MISS
x-github-request-id: 199E:129975:1776C8:1BCE4F:696C3DE6
accept-ranges: bytes
age: 0
via: 1.1 varnish
x-served-by: cache-bom-vanm7210070-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1768701414.128775,VS0,VE221
vary: Accept-Encoding
x-fastly-request-id: 9d867d71456d96120cced9b596b90b6376101255
cf-cache-status: DYNAMIC
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=ECLjDF5QDmRBCDRZohl4cmWZkmapbhnmVd9LZlqIZvwodDwllLUs5Bktb6TjInyXLswjSp1qa7u9GIyRTpi363Z9L1%2BK8kAxQSMvPt6Z"}]}
cf-ray: 9bfa7a7d8bb6741b-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