slope

command module
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2026 License: MIT Imports: 9 Imported by: 0

README

slope

Release Go CI codecov

A TUI viewer and editor for Sentry envelopes.

screencast

Features

  • View, add, edit, delete, export, and save envelope items
  • Selectable envelope items with payload viewers via pager
  • Pretty-formatted and syntax-highlighted JSON headers and items
  • Minidump crash dumps parsed and displayed as structured data
  • Image attachments rendered inline with ANSI half-block art
  • Binary payloads shown as hex dump
  • Standalone viewer modes for JSON, minidump, image, text, and binary files

Install

go install github.com/jpnurmi/slope@latest

Or build from source:

go build .

Usage

TUI
slope <file.envelope>
Key bindings
Key Action
j / k / Up / Down Navigate items
Enter View item payload in pager
e Edit item payload in $EDITOR
a Add attachment
x Export item payload to file
d Delete selected item
w Save to file
q Quit
CLI
slope header <file> [0-N]
slope payload <file> [0-N]

Index 0 refers to the envelope header/payload, and 1-N to individual items. Without an index, both commands list a summary of all entries.

List all headers:

$ slope header file.envelope
0: {"dsn":"...","event_id":"..."}
1: {"type":"event","length":888}
2: {"type":"session","length":249}
3: {"type":"attachment","length":42412,"filename":"minidump.dmp"}

List all payloads:

$ slope payload file.envelope
0: <4 items, 79095 bytes>
1: {"event_id":"...","timestamp":"...","platform":"native","level":"fatal",...}
2: {"init":true,"sid":"...","status":"crashed",...}
3: <binary 42412 bytes>
4: <binary 35546 bytes>

Show a specific item header:

$ slope header file.envelope 3
{"type":"attachment","length":42412,"filename":"minidump.dmp"}

Extract a payload to a file:

$ slope payload file.envelope 3 > minidump.dmp

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL