open source citation machine with no ads and ease of use https://opencitation.vercel.app
  • TypeScript 96.3%
  • JavaScript 2.4%
  • CSS 0.7%
  • HTML 0.5%
  • Shell 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Karthick Arun 9a6c97010e Update GitHub Sponsors links and design documentation
- Refined sponsor badge styling with direct link to GitHub Sponsors
- Documented WikiSupportBanner color tokens (wiki-warning/40 light, /20 dark)
- Updated design system docs with support banner rendering rules
2026-11-09 22:32:13 -07:00
.agents/skills/vibe-security fix: clear all lint errors and remove print animation 2026-05-01 06:49:17 -07:00
.claude chore: remove CI workflow 2026-05-10 10:27:49 -07:00
.depot/workflows ci: replace with PR review + keep health check 2026-05-10 17:58:30 -07:00
.github Add GitHub Sponsors support links 2026-11-09 11:03:08 -07:00
.jules perf(api/share): fetch data concurrently using Promise.all in share endpoints (#112) 2026-05-17 08:14:39 -07:00
.playwright-cli feat: add PostHog analytics integration 2026-04-26 21:37:11 -07:00
dist-electron chore: remove CI workflow 2026-05-10 10:27:49 -07:00
docs Update GitHub Sponsors links and design documentation 2026-11-09 22:32:13 -07:00
electron Add PWA offline support and Electron desktop app 2026-01-29 07:59:17 +00:00
graphify-out Update GitHub Sponsors links and design documentation 2026-11-09 22:32:13 -07:00
public fix: clear all lint errors and remove print animation 2026-05-01 06:49:17 -07:00
scripts Update GitHub Sponsors links and design documentation 2026-11-09 22:32:13 -07:00
src Update GitHub Sponsors links and design documentation 2026-11-09 22:32:13 -07:00
.coderabbit.yaml ci: simplify .coderabbit.yaml to the minimum 2026-05-29 10:12:29 -07:00
.env.example Add production-ready DynamoDB database layer 2026-01-28 21:54:32 -07:00
.gitignore feat: add PostHog analytics integration 2026-04-26 21:37:11 -07:00
.vercelignore Speed up Vercel production builds 2026-04-18 10:12:56 -07:00
CHANGELOG.md docs: add CHANGELOG.md with full v0.1.0 history 2026-05-10 10:59:22 -07:00
CLAUDE.md Update GitHub Sponsors links and design documentation 2026-11-09 22:32:13 -07:00
electron-builder.json Add PWA offline support and Electron desktop app 2026-01-29 07:59:17 +00:00
eslint.config.mjs Fix ESLint configuration for ESLint 9 flat config 2026-01-27 09:54:46 -07:00
instrumentation-client.ts feat: add PostHog analytics integration 2026-04-26 21:37:11 -07:00
LICENSE Initial commit 2026-01-05 15:37:39 -07:00
next.config.ts sec: harden API surface against SSRF, XSS, and abuse 2026-05-01 19:59:09 -07:00
opencitation.png Add Privacy Policy and ToS modals, improve landing page 2026-01-28 23:01:03 -07:00
package-lock.json Add indexed URL moderation blocklist 2026-11-09 10:11:10 -07:00
package.json Update GitHub Sponsors links and design documentation 2026-11-09 22:32:13 -07:00
PLAN.md Update documentation to reflect current project state 2026-01-29 18:30:39 -07:00
postcss.config.mjs Complete Sprint 1: Wikipedia-Style UI Foundation 2026-01-19 22:05:41 +00:00
posthog-setup-report.md feat: restyle sign-in/up pages with Wikipedia 2005 aesthetic 2026-04-30 17:58:55 -07:00
README.md Update GitHub Sponsors links and design documentation 2026-11-09 22:32:13 -07:00
skills-lock.json fix: clear all lint errors and remove print animation 2026-05-01 06:49:17 -07:00
tsconfig.json Add PWA offline support and Electron desktop app 2026-01-29 07:59:17 +00:00
vitest.config.ts Refactor citation page layout and enhance component functionality 2026-01-26 19:11:12 -07:00

OpenCitation

A free, open-source citation manager for students, researchers, and curious minds. Generate accurate citations, organize sources into lists and projects, and share or export your work—without ads or a paywall.

CI MIT License Web App Installable PWA Support OpenCitation

OpenCitation is free to use. If it saves you time, you can optionally support its development with a one-time contribution. No subscription or paid features are required.

Why OpenCitation?

Most citation tools are ad-heavy, locked behind paywalls, or require an account just to format a URL. OpenCitation is different:

  • Free and open source — no ads, no paywalls, no tracking beyond anonymous usage stats
  • Works offline — installable as a PWA or Electron desktop app; citations you've saved are always available
  • No lock-in — export everything as BibTeX, RIS, or plain text at any time
  • Built for real workflows — bulk import from BibTeX/RIS, public share links, embeddable badges, and a command palette (⌘K)
  • Clean UI — information-dense, Wikipedia-inspired design that gets out of your way

Features

  • Generate Citations - Create properly formatted citations from URLs, DOIs, ISBNs, or manual entry
  • Organize - Save citations to Lists, organize Lists into Projects
  • Share - Share Lists or Projects via public links
  • Export - Copy to clipboard or download as text, BibTeX, or RIS

Supported Citation Styles

  • APA 7th Edition
  • MLA 9th Edition
  • Chicago 17th Edition
  • Harvard
  • Journal & discipline styles via the Citation Style Language: IEEE, Vancouver, AMA, ACS, Nature, APSA, Chicago (Author-Date)

Supported Source Types

Books, Academic Journals, Websites, Blogs, Newspapers, Videos, Images, Film, TV Series, TV Episodes, and Miscellaneous.

Platforms

Platform Status
Web App Ready
Chrome Extension Ready
PWA (installable) Ready
Electron Desktop Ready

Tech Stack

Layer Technology
Frontend Next.js 16, React 19, Tailwind CSS 4.0
UI Custom Wikipedia-style design system
Auth Clerk
Database DynamoDB (AWS SDK v3, single-table)
Testing Vitest + Testing Library (695 tests)
Desktop Electron
Extension Chrome Manifest v3

Getting Started

Prerequisites

  • Node.js 18+
  • npm, yarn, or pnpm

Installation

# Clone the repository
git clone https://github.com/aicoder2009/opencitation.git
cd opencitation

# Install dependencies
npm install

# Set up environment variables
cp .env.example .env.local
# Edit .env.local with your API keys

# Start development server
npm run dev

Environment Variables

# Clerk Authentication
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY=

# AWS DynamoDB (optional - uses local store if not set)
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_REGION=

Commands

npm run quick-start  # First-time setup (installs deps, copies .env.example)
npm run dev          # Start dev server
npm run build        # Production build
npm run lint         # ESLint
npm run test         # Run tests (695 tests)

How It Works

Citation Generation

  1. Quick Add: Paste a URL, DOI, or ISBN - metadata is extracted automatically
  2. Manual Entry: Form-based entry for full control over all fields
  3. Style Selection: Choose from APA, MLA, Chicago, or Harvard — plus journal/discipline styles (IEEE, Vancouver, AMA, ACS, Nature, APSA, Chicago author-date) powered by the Citation Style Language

Organization

  • Lists: Collections of citations (like a bibliography)
  • Projects: Containers for multiple Lists (like a semester or thesis)
  • Tags: Color-coded tags for categorization

Sharing & Export

  • Generate public links for Lists or Projects
  • Export as plain text, BibTeX (.bib), or RIS (.ris)
  • Embed badge on external sites

Project Structure

opencitation/
├── src/
│   ├── app/                 # Next.js pages & API routes
│   │   ├── cite/            # Citation generator
│   │   ├── lists/           # Lists management
│   │   ├── projects/        # Projects management
│   │   ├── share/[code]/    # Public share pages
│   │   ├── embed/           # Embed badge page
│   │   └── api/             # REST endpoints
│   ├── components/
│   │   ├── wiki/            # Wikipedia-style UI
│   │   ├── pwa/             # PWA components
│   │   └── retro/           # Retro print animation
│   ├── lib/
│   │   ├── citation/        # Formatters & exporters
│   │   ├── db/              # DynamoDB client
│   │   └── pwa/             # Service worker utilities
│   └── types/               # TypeScript definitions
├── electron/                # Desktop app
└── public/                  # Static assets

Contributing

Contributions are welcome! Please read the development guidelines in CLAUDE.md before submitting PRs.

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Design inspired by Wikipedia circa 2005-2010
  • Built for students who hate citation generators with ads