gitwtfhub

wtf is whatsapp-session-extractor?

marcoscarraro/whatsapp-session-extractor — explained in plain English

Analysis updated 2026-05-18

29JavaScriptAudience · developerComplexity · 3/5Setup · moderate

TL;DR

A browser extension that exports your logged-in WhatsApp Web session so unofficial bot libraries like Baileys can reuse it without scanning a QR code.

Mindmap

mindmap
  root((whatsapp-session-extractor))
    What it does
      Reads WhatsApp Web session
      Decrypts session keys
      Exports wa-session.json
      Skips QR pairing
    Tech stack
      Chrome Manifest V3
      JavaScript
      Local browser storage
    Use cases
      Feed Baileys bots
      Feed Ticketz connections
      Avoid unstable pairing flow
    Audience
      Developers
      Bot builders
    Safety
      Local only
      Treat file like password
      Own accounts only

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Extract your own WhatsApp Web session to connect a Baileys-based bot without scanning a QR code.

REASON 2

Generate a Ticketz-compatible session file and token to link a WhatsApp connection.

REASON 3

Feed an existing WhatsApp Web login into whatsapp-web.js or Evolution API without re-pairing.

REASON 4

Troubleshoot unstable QR or pairing-code authentication in unofficial WhatsApp libraries.

What's in the stack?

JavaScriptChrome ExtensionManifest V3

How it stacks up

marcoscarraro/whatsapp-session-extractorable-rip/cc-visionrouteraisatan/poe2dire
Stars292929
LanguageJavaScriptJavaScriptJavaScript
Setup difficultymoderateeasyeasy
Complexity3/52/51/5
Audiencedeveloperdevelopergeneral

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · moderate Time to first run · 30min

Load as an unpacked extension via developer mode, then must be used only on a WhatsApp account you personally control.

Wtf does this do

This is a Chrome and Edge browser extension, built on Manifest V3, that pulls your already logged in WhatsApp Web session out of the browser and saves it as a wa-session.json file. The goal is to let that saved session be reused by unofficial WhatsApp automation libraries such as Baileys, Evolution API, Ticketz, and whatsapp-web.js, which normally require scanning a QR code or entering a pairing code, a step that has become unreliable for many users. Instead, you log into the official WhatsApp Web site once as normal, then use the extension to extract the session that was created. Under the hood, WhatsApp Web stores the cryptographic material for a session in the browser's localStorage and IndexedDB. The extension reads those stored keys, decrypts the relevant key pairs, and assembles a JSON file in the credential format that Baileys expects, then triggers a download. For Ticketz specifically, it can generate a matching JSON plus a short alphanumeric token to paste into that tool's connection settings. Everything happens locally inside the browser, and the README states plainly that no data is sent to any external server. The README is direct about the risk involved: the exported file contains the complete credentials for your WhatsApp account, and anyone who obtains it could act as you. It instructs users to treat the file like a password, store it securely, never share it, and delete it once it has been imported elsewhere. It also states this is an unofficial tool with no connection to WhatsApp or Meta, that using unofficial libraries can violate WhatsApp's terms of service and lead to a ban, and that it should only be used on accounts you personally control. Installation is done by downloading or cloning the repository, then loading it as an unpacked extension through developer mode in the browser's extensions page. Once installed, a popup on the WhatsApp Web page detects the session and offers a button to extract it, along with troubleshooting notes for common failures like an undetected page or a failed extraction.

Yoink these prompts

Prompt 1
Show me how to load this wa-session.json into Baileys to connect a bot.
Prompt 2
Explain how this extension decrypts WhatsApp Web session keys from localStorage and IndexedDB.
Prompt 3
Help me set up this extension to export a Ticketz-compatible session and token.
Prompt 4
Walk me through installing this as an unpacked Chrome extension in developer mode.

Frequently asked questions

wtf is whatsapp-session-extractor?

A browser extension that exports your logged-in WhatsApp Web session so unofficial bot libraries like Baileys can reuse it without scanning a QR code.

What language is whatsapp-session-extractor written in?

Mainly JavaScript. The stack also includes JavaScript, Chrome Extension, Manifest V3.

How hard is whatsapp-session-extractor to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is whatsapp-session-extractor for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.