MCPcopy Index your code
hub / github.com/42wim/rl

github.com/42wim/rl @v0.0.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.0.2 ↗ · + Follow
3 symbols 5 edges 1 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

rl

Rate limit messages from stdin. (keep or drop those exceeding the limit)

Use case

  • When sending data to mattermost (or slack), it's convenient to limit the amount of data that can be sent.

E.g. when using mattertee to send output to mattermost, you can now just pipe it through rl so that your channels aren't being flooded.

  • Tailing -f a very quickly increasing logfile when in tmux remotely ;)

Installing

Binaries

Binaries can be found [here] (https://github.com/42wim/rl/releases/)

Building

Go 1.6+ is required. Make sure you have Go properly installed, including setting up your [GOPATH] (https://golang.org/doc/code.html#GOPATH )

cd $GOPATH
go get github.com/42wim/rl

You should now have rl binary in the bin directory:

$ ls bin/
rl

Usage

Usage of ./rl:
  -k    keep the messages instead of dropping them
  -r int
        limit to r messages per second (drops those exceeding the limit) (default 5)


(the number of dropped messages will be sent to stderr, when not using the -k switch)

Example

journalctl -f | rl -k -r 5

Core symbols most depended-on inside this repo

reset
called by 3
main.go
init
called by 0
main.go
main
called by 0
main.go

Shape

Function 3

Languages

Go100%

Modules by API surface

main.go3 symbols

For agents

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

⬇ download graph artifact