Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Open Source Games
  3. Stats.js

Stats.js

MITJavaScriptr17

A lightweight JavaScript library for real-time performance monitoring of frames per second, render time, and memory usage.

Visit WebsiteGitHubGitHub
9.1k stars1.2k forks0 contributors

What is Stats.js?

Stats.js is a lightweight JavaScript library that provides real-time performance monitoring for web applications. It displays key metrics like frames per second (FPS), render time in milliseconds (MS), and memory usage (MB) through an on-screen overlay, helping developers identify performance issues during development.

Target Audience

Web developers and game developers who need to monitor application performance in real-time, particularly those working on animations, interactive visualizations, or performance-critical applications.

Value Proposition

Developers choose Stats.js for its simplicity, zero dependencies, and immediate visual feedback—it can be added to any project with just a few lines of code and provides essential metrics without complex setup.

Overview

JavaScript Performance Monitor

Use Cases

Best For

  • Monitoring animation smoothness in WebGL or Canvas applications
  • Debugging performance bottlenecks in real-time interactive web apps
  • Testing memory usage patterns during development
  • Quick performance checks via bookmarklet on live websites
  • Comparing render performance across different browsers or devices
  • Adding lightweight performance overlays to game prototypes

Not Ideal For

  • Projects requiring detailed historical performance analytics or data export
  • Teams integrating performance monitoring into automated CI/CD testing pipelines
  • Applications needing cross-browser memory tracking without Chrome-specific flags

Pros & Cons

Pros

Minimal and Lightweight

Stats.js has zero dependencies and can be added with just a few lines of code, as shown in the README's simple installation and usage snippet.

Real-Time Visual Feedback

It provides immediate on-screen overlays for FPS, MS, and MB metrics, helping developers spot performance issues during development without complex setup.

Custom Panel Support

The library allows adding user-defined monitoring panels, enabling developers to track specific application metrics beyond the default ones, as mentioned in the features.

Easy Bookmarklet Injection

A provided bookmarklet lets developers inject Stats.js into any webpage for quick performance checks without modifying source code, ideal for ad-hoc testing.

Cons

Limited Metric Depth

It only covers basic metrics like FPS and render time, lacking advanced profiling features such as CPU usage, network activity, or frame-by-frame breakdowns.

Chrome-Dependent Memory Tracking

The MB panel requires running Chrome with the --enable-precise-memory-info flag, making it unreliable in other browsers or default setups, as noted in the README.

No Data Persistence

Metrics are displayed only in real-time with no built-in way to save, export, or log historical data for later analysis, limiting long-term debugging.

Frequently Asked Questions

Quick Stats

Stars9,138
Forks1,187
Contributors0
Open Issues0
Last commit1 year ago
CreatedSince 2010

Tags

#debugging-tools#real-time-metrics#frontend#performance-monitoring#javascript#fps-counter#web-development#memory-profiling

Built With

J
JavaScript

Links & Resources

Website

Included in

Web Performance Optimization8.9kOpen Source Games2.7k
Auto-fetched 18 hours ago

Related Projects

OpenEmuOpenEmu

🕹 Retro video game emulation for macOS

Stars17,665
Forks1,350
Last commit9 months ago
libfreenectlibfreenect

Drivers and libraries for the Xbox Kinect device on Windows, Linux, and OS X

Stars3,811
Forks1,172
Last commit1 year ago
ItchItch

🎮 The best way to play your itch.io games

Stars2,773
Forks257
Last commit3 days ago
Memory-stats.jsMemory-stats.js

minimal monitor for JS Heap Size via performance.memory

Stars2,092
Forks106
Last commit11 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub