Coder Social home page Coder Social logo

ohgodanoob / chat-analytics Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mlomb/chat-analytics

0.0 0.0 0.0 14.1 MB

Generate interactive, beautiful and insightful chat analysis reports

Home Page: https://chatanalytics.app

License: GNU Affero General Public License v3.0

JavaScript 2.19% C++ 0.17% TypeScript 89.46% HTML 3.08% Dockerfile 0.07% Less 5.04%

chat-analytics's Introduction

Logo-Dark Logo-Light

Generate interactive, beautiful and insightful chat analysis reports

Open App β€’ View Demo β€’ Use CLI

GitHub Workflow Status codecov npm Docker

Donate


A web app that takes chat exports from supported platforms and generates a single HTML file containing information, statistics and interactive graphs about them. Privacy is its main concern; chat data never leaves the device when generating reports. Selfhost with Docker!

πŸ’¬ MESSAGES πŸ…°οΈ LANGUAGE πŸ˜ƒ EMOJI πŸ”— LINKS πŸ“ž CALLS πŸŒ€ INTERACTION πŸ’™ SENTIMENT πŸ“… TIMELINE
chat analytics messages tab chat analytics language tab chat analytics emoji tab chat analytics links tab chat analytics calls tab chat analytics interaction tab chat analytics sentiment tab chat analytics timeline tab

You can interact with the demo here!

Chat platform support

You can generate reports from the following platforms:

Platform Formats supported Text content Edits & Replies Attachment Types Reactions Profile picture Mentions Calls
Discord json from DiscordChatExporter βœ… βœ… βœ… βœ… βœ… (until link expires) βœ… (as text) βœ…
Messenger json from Facebook DYI export βœ… ❌ βœ… ❌ ❌ βœ… (as text) ❌
Telegram json from Telegram Desktop βœ… βœ… βœ… ❌ (not provided) ❌ βœ… (as text) βœ…
WhatsApp txt or zip exported from a phone βœ… ❌ (not provided) βœ…* (if exported from iOS)
🟦 (generic if exported from Android)
❌ (not provided) ❌ βœ… (as text) ❌

* not all languages are supported, check WhatsApp.ts.

You can't combine exports from different platforms.
The contribution of new platform parsers is always welcomed πŸ™‚

Privacy & Analytics

Since all chat data always stays in the browser, there is zero risk of someone reading your chats. Note that the report HTML file contains sensitive information (one may reconstruct message contents for every message), so share your reports with people you trust.

The site does not use cookies either and uses a self-hosted version of Plausible. All events do not contain PII and the information is segmented (e.g. 1MB-10MB, etc.). Since I want full transparency, you can check the site analytics here.

CLI

You can generate reports from the command line using npx chat-analytics:

Usage: chat-analytics -p <platform> -i <input files>

Options:
      --help      Show help                                            [boolean]
      --version   Show version number                                  [boolean]
  -p, --platform  The platform to generate for
   [string] [required] [choices: "discord", "messenger", "telegram", "whatsapp"]
  -i, --inputs    The input file(s) to use (glob)             [array] [required]
  -o, --output    The output HTML filename     [string] [default: "report.html"]
      --demo      Mark the report as a demo           [boolean] [default: false]

For example:

npx chat-analytics -p discord -i "exported/*.json" -o report.html

Docs & Development

You can read docs/README.md for technical details, and docs/DEV.md for development instructions.
In docs/TODO.md you can find ideas and pending stuff to be implemented.

Acknowledgements

  • FastText, a library by Facebook for efficient sentence classification. MIT licensed.
  • lid.176.ftz model, provided by FastText developers for language identification. Distributed under CC BY-SA 3.0.
  • multilang-sentiment, for the translated AFINN database. MIT licensed.
  • Emoji sentiment data from the work of Kralj Novak, Petra; SmailoviΔ‡, Jasmina; Sluban, Borut and Mozetič, Igor, 2015, Emoji Sentiment Ranking 1.0, Slovenian language resource repository CLARIN.SI, http://hdl.handle.net/11356/1048. Licensed with CC BY-SA 4.0.
  • stopwords-iso for a collection of stopwords in a variety of languages. MIT licensed.
  • All the libraries and tools that made this project possible πŸ˜€

License

AGPLv3. See LICENSE.

chat-analytics's People

Contributors

derusgaming avatar hopperelec avatar mlomb avatar rociodcasco avatar sponja23 avatar superusercode avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.