prismjs/prism

Lightweight, robust, elegant syntax highlighting.

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 31 seconds ago
Added to GitGenius on September 4th, 2026
Created on July 10th, 2012
Open Issues & Pull Requests: 486 (+0)
GitHub issues: Enabled
Number of forks: 1,389
Total Stargazers: 13,039 (+0)
Total Subscribers: 120 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 19.7 days
Mean response time: 266.4 days
90th percentile: 993.9 days
Tracked items: 104

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 90% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Work labelled "enhancement" is answered fastest, typically in about 11 hours, while "new language" waits about 12 months. Only 3% of issues opened in the past year have been closed. Three people close 67% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 111
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 906 days
Stale 30+ days: 104
Stale 90+ days: 91

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • language-definitions (68)
  • new language (54)
  • enhancement (24)
  • plugins (5)
  • invalid (4)
  • bug (3)
  • duplicate (3)
  • good first issue (3)

Most active issues this week

Detailed Description

Prism is a lightweight syntax highlighting library for JavaScript.

Prism solves the problem of adding code syntax highlighting to web pages with minimal overhead. It works by parsing code and applying semantic highlighting through CSS classes, allowing developers to style highlighted code through themes. The library is designed to be extensible, enabling users to add support for new languages and create custom plugins without modifying core functionality.

Prism suits projects where file size and performance matter, particularly in documentation sites, blogs, and educational platforms. It works across nearly all browsers and Node.js versions. The project maintains a separate themes repository for developers who want to customize or contribute visual styles beyond the default themes.

Contributions are managed through a structured process that requires changes to unminified component files rather than the built output, with a build system using gulp to generate final assets. The maintainer has indicated that review times for larger pull requests affecting core functionality may be extended, though smaller contributions are typically merged quickly. Contributors who add new language definitions are expected to maintain those definitions and provide test cases and examples.