explaingit

tekpioneered/cannibal

Analysis updated 2026-05-18

0TypeScriptAudience · developerComplexity · 3/5Setup · moderate

TLDR

A Solana command line tool that swaps SOL for a chosen token through Jupiter, then burns the tokens it receives.

Mindmap

mindmap
  root((CANNIBAL))
    What it is
      Solana buy and burn CLI
      Swaps via Jupiter
      Burns received tokens
    Tech stack
      TypeScript
      Node.js
      Solana web3.js
    Use cases
      Automate token burns
      Atomic swap and burn
      Fallback two step flow
    Audience
      Solana developers
      Memecoin builders
    Setup
      Install npm packages
      Set private key env var
      Set RPC endpoint

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

What do people build with it?

USE CASE 1

Automate a buy and burn transaction for a specific Solana token.

USE CASE 2

Run an atomic swap plus burn in a single transaction when possible.

USE CASE 3

Fall back to a two transaction flow when the atomic route does not fit.

What is it built with?

TypeScriptNode.jsSolana web3.jsSPL Token

How does it compare?

tekpioneered/cannibal0xradioac7iv/tempfsabboskhonov/hermium
Stars000
LanguageTypeScriptTypeScriptTypeScript
Setup difficultymoderatemoderatemoderate
Complexity3/53/54/5
Audiencedeveloperdeveloperdeveloper

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

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires a funded Solana wallet, a private key, and a private RPC provider such as Helius.

In plain English

CANNIBAL is a command line tool for the Solana blockchain that does one specific job: it spends SOL, the native Solana currency, to buy a chosen token through a swap service called Jupiter, then immediately destroys, or burns, the tokens it just received. The README frames this as a buy and burn mechanic, a pattern some token projects use to permanently remove tokens from circulation. It supports two ways of running this, an atomic mode that does the swap and the burn in a single transaction, and a fallback two transaction mode for cases where the atomic version does not fit. The tool is built with Node.js scripts and the official Solana and SPL token JavaScript libraries. To use it, you install a small set of dependencies, then provide your wallet's private key and a Solana RPC endpoint as environment variables. The README stresses that your private key stays on your own machine and is never sent anywhere by the tool itself, and separately warns that the public Solana RPC is slow and rate limited, recommending a private RPC provider such as Helius or Triton instead. Running the main script takes a token's mint address, the amount of SOL to spend, and two optional settings, slippage tolerance and a priority fee amount to help the transaction get processed faster during network congestion. The README suggests testing with a small SOL amount first, increasing slippage for thin or newly launched tokens, and increasing the priority fee when the network is busy. It also repeats a clear warning never to share your private key with anyone. This is a narrow, single purpose script rather than a general trading or wallet tool. Someone using it would need to already understand Solana wallets, private keys, and how token swaps work, since the README assumes that background and focuses only on configuring and running the buy and burn commands themselves.

Copy-paste prompts

Prompt 1
Explain how to install and configure CANNIBAL to run a buy and burn on a Solana token.
Prompt 2
What is the difference between the atomic and fallback modes in this script?
Prompt 3
Help me understand what slippage and priority fee settings do when running cannibal-fast.mjs.
Prompt 4
What precautions does this README recommend before running a buy and burn with real funds?

Frequently asked questions

What is cannibal?

A Solana command line tool that swaps SOL for a chosen token through Jupiter, then burns the tokens it receives.

What language is cannibal written in?

Mainly TypeScript. The stack also includes TypeScript, Node.js, Solana web3.js.

How hard is cannibal to set up?

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

Who is cannibal for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.