Skip to content

Commit

Permalink
feat: switch to boxo and use routing-v1 for routing requests
Browse files Browse the repository at this point in the history
  • Loading branch information
aschmahmann committed Oct 4, 2023
1 parent a6446af commit 0f71324
Show file tree
Hide file tree
Showing 15 changed files with 566 additions and 3,592 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
rainbow
libp2p.key
blockstore
datastore
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
# ⚠️ This is an old research EXPERIMENT. For production use, see [Kubo's](https://github.com/ipfs/go-ipfs)' [gateway recipes](https://github.com/ipfs/go-ipfs/blob/master/docs/config.md#gateway-recipes) and ongoing [work to extract gateway code to standalone library](https://github.com/ipfs/kubo/issues/8524). <!-- omit in toc -->

# rainbow

> Because ipfs should just work like unicorns and rainbows
> The rainbow bridge between your CIDs and your html, javascript, wasm, jpegs, mp4s, tars, CARs, blocks, and more!
## About

Rainbow is an experimental specifically dedicated implementation of the [IPFS HTTP Gateway API](https://specs.ipfs.tech/http-gateways),
based on [boxo](https://github.com/ipfs/boxo) which is the tooling the powers [kubo](https://github.com/ipfs/kubo).

## Building
```
go build
```

## Running

```
rainbow
```
Expand All @@ -23,7 +27,7 @@ USAGE:
rainbow [global options] command [command options] [arguments...]
VERSION:
0.0.0
v0.0.1-dev
COMMANDS:
help, h Shows a list of commands or help for one command
Expand All @@ -32,9 +36,10 @@ GLOBAL OPTIONS:
--datadir value specify the directory that cache data will be stored
--listen value specify the listen address for the gateway endpoint (default: ":8080")
--api-listen value specify the api listening address for the internal control api (default: "127.0.0.1:8081")
--connmgr-low value libp2p connection manager 'low' water mark (default: 2000)
--connmgr-low value libp2p connection manager 'low' water mark (default: 100)
--connmgr-hi value libp2p connection manager 'high' water mark (default: 3000)
--connmgr-grace value libp2p connection manager grace period (default: 1m0s)
--routing value RoutingV1 Endpoint (default: "http://127.0.0.1:8090")
--help, -h show help (default: false)
--version, -v print the version (default: false)
```
Expand Down
202 changes: 0 additions & 202 deletions api.go

This file was deleted.

167 changes: 0 additions & 167 deletions assets.go

This file was deleted.

102 changes: 0 additions & 102 deletions gateway.go

This file was deleted.

Loading

0 comments on commit 0f71324

Please sign in to comment.