Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/olizilla/badbits
IPFS badbits lists you can follow and fork
https://github.com/olizilla/badbits
Last synced: 9 days ago
JSON representation
IPFS badbits lists you can follow and fork
- Host: GitHub
- URL: https://github.com/olizilla/badbits
- Owner: olizilla
- License: mit
- Created: 2023-06-14T20:02:59.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-16T13:44:44.000Z (over 1 year ago)
- Last Synced: 2024-10-08T00:26:04.837Z (3 months ago)
- Language: JavaScript
- Size: 80.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# badbits
> IPFS [badbits lists](https://badbits.dwebops.pub/) you can follow and fork
๐งช experiment: use [pail] to make content-addressed lists we can share, edit, sync and fork.
## Getting started
With `node` > 16, install the deps with `npm i` and run it
```sh
# pass the filename of the badbits file you want to test with
node badbits.js badbits.3000.txt
```If you want to get the latest, full, > 8MB denylist run
```
npm run denylist
```## Usage
> SERVING SUGGESTION. NONE OF THIS IS IMPLEMENTED YET.
> Also, I just found out about https://github.com/ipfs/specs/pull/383 which may change things.### Setup
```sh
# start a new list
badbits init
```### Edit the list
```sh
# add a cid to the list
badbits add bafybeibg3oyxu7zd2mds3j63rmoifzajegiedcqoj3hdsvkscvf5dmkooq# add a cid + path to the list
badbits add bafybeibg3oyxu7zd2mds3j63rmoifzajegiedcqoj3hdsvkscvf5dmkooq/badbits.txt# take an item off the list
badbits rm bafybeibg3oyxu7zd2mds3j63rmoifzajegiedcqoj3hdsvkscvf5dmkooq
```### Check the list
```sh
badbits bafybeibg3oyxu7zd2mds3j63rmoifzajegiedcqoj3hdsvkscvf5dmkooq
ok
``````sh
badbits bafybeibg3oyxu7zd2mds3j63rmoifzajegiedcqoj3hdsvkscvf5dmkooq/badbits.txt
not ok
```### Sync it
```sh
# send blocks and update remote head (w3clock)
badbits push
``````sh
# update local head and pull blocks
badbits pull
```[pail]: https://github.com/alanshaw/pail