MCPcopy Index your code
hub / github.com/cespare/pastedown

github.com/cespare/pastedown @v0.1.0

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

Pastedown

An easy-to-use markdown-formatting pastebin.

Demo

http://pastedown.ctrl-c.us

Features

  • Markdown rendering and syntax highlighting
  • Doesn't look terrible
  • HTTPS built in
  • Automatic document deletion

Dependencies:

Pastedown is written in Go and uses Sass for generating CSS. It uses Pygments for syntax highlighting.

To run Pastedown, you will need:

  • Python

To build/develop Pastedown you will also require:

Installation

For now, the process is:

  1. Clone this repo.
  2. Run make.

This builds the server executable (pastedown) and the associated static files. Run it with:

$ ./pastedown [OPTIONS]

Use ./pastedown -h to see all the available options.

Development

You'll need Reflex and Go as in the installation instructions. Use the following command to run the server and rebuild/rerun it when files change:

$ reflex -d fancy -c Reflexfile

This is also available as

$ make watch

Deployment

Follow the installation instructions, then run this command:

$ make tarball

to build a tarball of all the files you'll need. Copy this to your server and run pastedown with the options you want as before. You may wish to make an init script or more fleshed-out deployment scripts.

Core symbols most depended-on inside this repo

delete
called by 8
lru/lru.go
Insert
called by 8
lru/lru.go
Get
called by 8
lru/lru.go
pushFront
called by 7
lru/lru.go
moveToFront
called by 7
lru/lru.go
size
called by 5
lru/lru.go
Delete
called by 3
lru/lru.go
render
called by 2
pastedown.go

Shape

Function 39
Method 7
Struct 4

Languages

TypeScript52%
Go48%

Modules by API surface

public/pastedown.js26 symbols
pastedown.go11 symbols
lru/lru.go11 symbols
lru/lru_test.go2 symbols

For agents

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

⬇ download graph artifact

Ask about this repo answers extend the page