Skip to content

Commit

Permalink
Fork as Belafonte for total rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
Jared Deckard committed Oct 27, 2016
1 parent 18e0825 commit 3c3df6e
Show file tree
Hide file tree
Showing 11 changed files with 259 additions and 383 deletions.
28 changes: 28 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"env": {
"browser": true,
"commonjs": true
},
"extends": "eslint:recommended",
"rules": {
"indent": [
"error",
2
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single",
{
"avoidEscape": true
}
],
"semi": [
"error",
"always"
]
}
}
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
node_modules
cachep2p.js
cachep2p.min.js
dist/*.js
88 changes: 0 additions & 88 deletions AUTHORS.md

This file was deleted.

11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
# CacheP2P Version History
# Belafonte Version History

## v0.2.0 - 2016-10-26

- Forked as "Belafonte" from "CacheP2P"
- Refactored for readability
- Dropped dependency on "force_id" WebTorrent patch
- Discovered torrent using info hash of content
- Defers content verification to torrent protocol
- Documented for maintainability

## v0.1.0 - 2016-10-16

Expand Down
2 changes: 2 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
The MIT License (MIT)

Copyright (c) 2016, Jared Deckard <[email protected]>

Copyright (c) WebTorrent, LLC

Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
33 changes: 7 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,10 @@
# CacheP2P
# Belafonte

**CacheP2P** is a highly distributed [cache][wikipedia/cache] platform based on
[WebTorrent](https://webtorrent.io/) and runs only in the **browser**.
**Belafonte** is a content distribution network (CDN) that geographically
distributes assets over the BitTorrent protocol using
[WebTorrent](https://webtorrent.io/).

[wikipedia/cache]: https://en.wikipedia.org/wiki/Cache_(computing)
This javascript library can be added to a website to turn every visitor with a
modern browser into a mirror of the site's content.

It is a javascript library that once included in a website, makes every new user
a mirror of the specific URL he has opened and allows it to serve it to all the
other users that also are accessing the same website, so the website's server
doesn't have to.

This way users can share the content between themselves, reducing the number of
requests for static content to the server.

If the website crashes or has problems (the script can be included in the
server's error page), all the content that users were accessing in that moment
can be retrieved from one another and as long as there are users accessing it
no problem will be seen.

For more information, please read the [documentation][documentation] or
[how it works][api] page.

[documentation]: http://www.cachep2p.com/documentation.html
[api]: http://www.cachep2p.com/api.html

### License

MIT. Copyright (c) [CacheP2P](https://www.CacheP2P.com)
Welcome aboard.
11 changes: 0 additions & 11 deletions cachep2p.min.js

This file was deleted.

Empty file added dist/.gitkeep
Empty file.
Loading

0 comments on commit 3c3df6e

Please sign in to comment.