Skip to content

kotenok2000/beaker

 
 

Repository files navigation

Beaker Browser

Backers on Open Collective Sponsors on Open Collective

logo.png

Beaker is an experimental peer-to-peer Web browser. It adds new APIs for building hostless applications, while remaining compatible with the rest of the Web. Visit the website.

Please feel free to open usability issues. Join us at #beakerbrowser on Freenode.

Binaries

About

Beaker is a new browser that combines the flexibility of the desktop with the connectivity of the Web.

Why Beaker?

  • You can share files privately
  • You control your data
  • You can duplicate, modify, and share websites
  • You can use apps while offline
  • You can go back in time and see previous verions of your content

Features

  • Host sites from the browser
  • Save sites for offline use
  • Share files secretly between devices
  • Versioned URLs for historic lookup
  • New Web APIs
  • Live reloading
  • Native markdown (.md) rendering

With Beaker, we're combining the flexibility of the desktop with the connectivity of the Web.

New Web APIs

An example of the Dat Files API:

var archive = await DatArchive.create({
  title: 'My Site',
  description: 'My peer-to-peer website'
})
await archive.writeFile('/hello.txt', 'hello')
await archive.commit()

console.log(archive.url)
// => dat://da2ce4..dc/

Documentation

Looking to work on Beaker? Watch this video and take a look at the build notes.

Env Vars

  • DEBUG: which log systems to output? A comma-separated string. Can be beaker, dat, bittorrent-dht, dns-discovery, hypercore-protocol. Specify * for all.
  • beaker_user_data_path: override the user-data path, therefore changing where data is read/written. Useful for testing. For default value see userData in the electron docs.
  • beaker_sites_path: override the default path for saving sites. Useful for testing. Default value is $HOME/Sites where $HOME is the users home directory.
  • beaker_dat_quota_default_bytes_allowed: override the default max-quota for bytes allowed to be written by a dat site. Useful for testing. Default value is '500mb'. This can be a Number or a String. Check bytes.parse for supported units and abbreviations.

Building from source

Requires node 6.2.1. In linux (possibly also OSX) you need libtool, m4, automake, make, and g++.

sudo apt-get install libtool m4 automake make g++ npm

In Fedora:

sudo dnf install libtool m4 make gcc-c++ npm

To build:

git clone https://github.com/beakerbrowser/beaker.git
cd beaker
npm install
npm run rebuild #see https://github.com/electron/electron/issues/5851
npm start

If you pull latest from the repo and get weird module errors, do:

npm run burnthemall

This invokes the mad king, who will torch your node_modules, and do the full install/rebuild process for you. npm start should work afterwards.

If you're doing development, npm run watch to have assets build automatically.

Running the tests

Tests use their own package.json:

cd tests
npm install

To run:

cd tests
npm test

Known issues

tmux

Launching from tmux is known to cause issues with GUI apps in MacOS. On Beaker, it may cause the application to hang during startup.

Contributors

This project exists thanks to all the people who contribute. [Contribute].

Backers

Thank you to all our backers! 🙏 [Become a backer]

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]

License

Modified MIT License (MIT)

Copyright (c) 2017 Paul Frazee

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

A peer-to-peer Web browser

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 81.4%
  • CSS 17.4%
  • Other 1.2%