MCPcopy Index your code
hub / github.com/JasonEtco/gist-box

github.com/JasonEtco/gist-box @v0.3.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.3.1 ↗ · + Follow
7 symbols 12 edges 2 files 2 documented · 29%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

GistBox

📌📋 A helper class for updating a single-file Gist

NPM Build Status Codecov

Usage

Installation

$ npm install gist-box
const { GistBox } = require('gist-box')

API

const box = new GistBox({ id, token })
await box.update({
  filename: 'example.md',
  description: 'A new description',
  content: 'The new content'
})

You can also import some boundary numbers to use when dealing with pinned Gists:

const {
  MAX_LENGTH, // The number of characters rendered in one line
  MAX_LINES,  // The number of lines it will render
  MAX_HEIGHT, // The height of the box, in pixels
  MAX_WIDTH   // The width of the box, in pixels
} = require('gist-box')

Shoutout to @matchai for starting this trend with bird-box!

Extension points exported contracts — how you extend this code

GistBoxOptions (Interface)
(no doc)
src/index.ts
Updates (Interface)
(no doc)
src/index.ts

Core symbols most depended-on inside this repo

get
called by 3
src/index.ts
update
called by 1
src/index.ts
constructor
called by 0
src/index.ts

Shape

Method 3
Class 2
Interface 2

Languages

TypeScript100%

Modules by API surface

src/index.ts7 symbols

For agents

$ claude mcp add gist-box \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact