Skip to content

virgs/medium-next-gen-stats

Repository files navigation

Medium Next Generation Stats

CircleCI codecov

Don't you think medium.com provides way less information that they should? I got tired of waiting for them to make it better and decided to make it by myself. Take your medium text stats to the Next Generation and get rid of the old fashion dataless default medium.

A browser extension that provides richer information about your texts.
Firefox Firefox

tutorial

Get larger time range, daily/weekly/monthly read/views/claps, and, specially, describes which article was view in which period.

Have fun!

snapshot2

Features

  • Highlight post/publication
  • Larger time ranges: 30/90/180/360/1800 days.
  • Super cool and animated charts
  • Total stories views/reads/claps/earnings
  • Top articles/publications read/viewed/clapped/earned in the time range
  • Different ranges visualization: daily, weekly and monthly
  • Download JSON data file

snapshot3

How to use

  1. Go to your medium stats page: https://medium.com/me/stats
  2. This is it

Contact

Official website: https://virgs.me/mngs
Medium: https://medium.com/@virgs
Github: https://github.com/virgs
Pagehub: https://pagehub.me/virgs

Source Code

You can find the source code on the link below: https://github.com/virgs/medium-next-gen-stats

snapshot1

Tech Stack

  • TypeScript + React + Bootstrap (react-bootstrap)
  • Chart.js (via react-chartjs-2) for interactive charts
  • Medium GraphQL API (https://medium.com/_/graphql) for fetching stats data
  • FontAwesome (via @fortawesome/react-fontawesome) for icons
  • Vite + @crxjs/vite-plugin for building the Chrome extension
  • Vitest + React Testing Library for unit testing
  • pnpm as the package manager

Development

Prerequisites

  • Node.js (v18+)
  • pnpm (npm install -g pnpm)

Setup

git clone https://github.com/virgs/medium-next-gen-stats.git
cd medium-next-gen-stats
pnpm install

Scripts

Command Description
pnpm dev Start Vite dev server
pnpm build Build the extension for production
pnpm test Run tests once
pnpm test:watch Run tests in watch mode
pnpm test:coverage Run tests with coverage report

Load in Browser

  • Chrome
    1. Run pnpm build
    2. Go to chrome://extensions
    3. Enable developer mode
    4. Click on Load unpacked and select the dist folder
  • Firefox
    1. Run pnpm build
    2. Go to about:debuggingThis Firefox
    3. Click on Load Temporary Add-on
    4. Select the dist/manifest.json file

PRs are most welcome :)

Acknowledgement

Thanks to tomastrajan and HcwXd for sharing their ideas and source code.
You made my life a lot easier.

About

A browser (chrome/firefox) extension that provides richer information about your medium texts

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages