Document Reference Number Generator for Google Docs
DocRefGen is a Chrome extension that auto-generates unique reference numbers for your HR and Legal documents โ and keeps a searchable audit log of every document created. Built for small teams that need traceable, auditable records without the overhead of a full DMS.
Built by @abhikuchbhi
AMZ-EMP-2026-847293Generated format:
[COMPANY]-[DOCTYPE]-[YEAR]-[6-DIGIT-TIMESTAMP]
Examples:
AMZ-2026-847293 โ company + year + timestamp
AMZ-EMP-2026-847293 โ with document type prefix
| Feature | Details |
|---|---|
| Header & Footer support | Detects `` anywhere in the doc โ body, header, footer |
| Copy detection | If you open a โCopy ofโฆโ doc, it offers to generate a fresh ref |
| On-demand generation | Click Generate anytime โ full user control, no auto-trigger |
| Audit trail | Optional Google Sheet log โ ref number, doc title, link, date, type |
| Per-team setup | Each team sets their own prefix and sheet. HR, Legal, Finance stay separate |
| No backend | Zero servers, zero hosting. All logic runs in the browser |
In your Google Doc template:
Place wherever the reference number should appear.
Works in the document body, header, and footer.
Generating a ref number:
AMZ-EMP-2026-847293Audit Sheet columns (auto-created):
| Ref Number | Doc Title | Doc Link | Doc Type | Created By | Date & Time | |โ|โ|โ|โ|โ|โ|
Privacy Policy - Privacy Policy Link
MIT โ do what you want with it.