Fork of GlowingBear, with a different login page pre-filling informations.
Find a file
2018-03-18 10:39:16 +01:00
3rdparty favico: merge https://github.com/ejci/favico.js/pull/106 2016-11-01 21:46:30 +01:00
assets Remove obsolete references to Firefox OS / mozApps 2017-02-26 14:29:42 -06:00
css Increase nicklist bottom padding a bit 2017-10-09 09:39:12 +02:00
directives Use CSS to show/hide tab-complete button instead of ng-hide 2017-03-23 15:53:02 +01:00
js Remove unnecessary semicolon 2018-03-18 10:15:26 +01:00
test Recognize /raw/ pastebin URLs 2017-08-30 19:08:16 +02:00
.editorconfig Add a .editorconfig 2016-01-06 21:05:16 +01:00
.gitignore Electron: Use a Makefile 2016-04-02 18:08:55 +02:00
.jshintrc Use strict 2014-09-07 16:55:18 +01:00
.travis.yml Update travis' node version 2018-03-18 10:15:26 +01:00
bower.json update third-party dependenices 2018-01-28 14:44:24 +01:00
COPYING Add license information 2013-10-04 16:52:45 -04:00
electron-globals.js Fix whitespace 2016-04-03 13:25:54 +02:00
electron-main.js dev toools: separate shortcut for electron and for web content 2017-04-07 05:35:44 -05:00
electron-start.html dev toools: separate shortcut for electron and for web content 2017-04-07 05:35:44 -05:00
electron.makefile Update Electron packager, update PhantomJS to latest phantomjs-prebuilt, and update Electron Makefile to fetch the latest version of Electron as of this commit. 2016-08-18 12:40:18 -07:00
index.html update third-party dependenices 2018-01-28 14:44:24 +01:00
manifest.json Improve documentation & cordova checks 2017-04-28 12:50:51 +02:00
manifest.webapp Initial rework of Cordova branch 2017-04-19 14:46:43 +02:00
package.json Update npm dependencies (for tests and building electron) 2018-03-18 10:39:16 +01:00
README.md README: clarify electron build process 2017-09-07 09:56:34 +02:00
run_tests.sh Documentation; make test file executable, jshint tests, add a gitignore 2014-08-26 20:17:22 -04:00
serviceworker.js implement on notification click 2015-12-22 14:40:01 +01:00
webapp.manifest.json Update manifests to use www.glowing-bear.org instead of glowing-bear.github.io 2017-04-19 14:47:46 +02:00

A web client for WeeChat Build Status

Glowing Bear is a web frontend for the WeeChat IRC client and strives to be a modern interface. It relies on WeeChat to do all the heavy lifting and then provides some nice features on top of that, like embedding images, videos, and other content. The best part, however, is that you can use it from any modern internet device -- whether it's a computer, tablet, or smart phone -- and all your stuff is there, wherever you are. You don't have to deal with the messy technical details, and all you need to have installed is a browser or our app.

Getting Started

Glowing Bear connects to the WeeChat instance you're already running (version 0.4.2 or later is required), and you need to be able to establish a connection to the WeeChat host from your device. It makes use of the relay plugin, and therefore you need to set up a relay. If you want to try this out with a local WeeChat instance, use these commands in WeeChat to create an unencrypted relay (see the note below):

/relay add weechat 9001
/set relay.network.password YOURPASSWORD

Now point your browser to the Glowing Bear! If you're having trouble connecting, check that the host and port of your WeeChat host are entered correctly, and that your server's firewall permits incoming connections on the relay port (9001 in this example).

Please note that the above instructions set up an unencrypted relay, and all your data will be transmitted in clear. You should not use this over the internet. We strongly recommend that you set up encryption if you want to keep using Glowing Bear. There's a guide on setting it up with Let's Encrypt on the landing page of the next version of Glowing Bear, under "Getting Started". Ask us in #glowing-bear on freenode if something is unclear.

You can run Glowing Bear in many ways:

  • like any other webpage
  • Chrome app ("Tools", then "Create application shortcuts")
  • Android Chrome app, a full-screen experience ("Add to homescreen").
  • Android app that you can install from the Google Play Store
  • Electron app for Windows, Linux and macOS. npm install; npm install electron-packager; npm run build-electron-{windows, darwin, linux} (choose your platform from the list, e.g. build-electron-darwin for macOS)

Android app on Google Play

Screenshots

Running as Chrome application in a separate window on Windows and as Android app:

Glowing bear screenshot

Are you good with design? We'd love your help! Glowing Bear screenshot with lots of Comic Sans MS

How it Works

What follows is a more technical explanation of how Glowing Bear works, and you don't need to understand it to use it.

Glowing Bear uses WeeChat directly as its backend through the relay plugin. This means that we can connect to WeeChat directly from the browser using WebSockets. Therefore, the client does not need a special "backend service", and you don't have to install anything. A connection is made from your browser to your WeeChat, with no services in between. Thus, Glowing Bear is written purely in client-side JavaScript with a bit of HTML and CSS.

FAQ

  • Can I use Glowing Bear to access a machine or port not exposed to the internet by passing the connection through my server? No, that's not what Glowing Bear does. You can use a websocket proxy module for your webserver to forward /weechat to your WeeChat instance though. We've got instructions for setting this up on our wiki.
  • How does the encryption work? TLS is used for securing the connection if you enable encryption. This is handled by your browser, and we have no influence on certificate handling, etc. You can find more detailed instructions on how to communicate securely in the "Getting Started" tab on the landing page of our development version.
  • Can I make it so that there are no requests to third party servers at all? Sure, you'll have to hide embeds by default (it's in the settings dialog), and download the JavaScript files for which we use a CDN by default. For the second step, you have two options: a) use the Android or Electron app, or b) run npm run make-local to download the files and apply a patch to use them instead of the CDN. But remember to re-run this command whenever you update Glowing Bear!

Development

Setup

Getting started with the development of Glowing Bear is really simple, partly because we don't have a build process (pure client-side JS, remember). All you have to do is clone the repository, fire up a webserver to host the files, and start fiddling around. You can try out your changes by reloading the page.

Here's a simple example using the python simple web server:

git clone https://github.com/glowing-bear/glowing-bear
cd glowing-bear
# python 2.*
python -m SimpleHTTPServer
# or python 3.*
python -m http.server

Now you can point your browser to http://localhost:8000!

Remember that you don't need to host Glowing Bear yourself to use it, you can just use our hosted version powered by GitHub pages, and we'll take care of updates for you. Your browser connects to WeeChat directly, so it does not matter where Glowing Bear is hosted.

You can also use the latest and greatest development version of Glowing Bear at https://latest.glowing-bear.org/. Branches of this repository are available as https://latest.glowing-bear.org/branchname/, and pull requests as https://latest.glowing-bear.org/pull/123/—note the trailing slashes.

Running the tests

Glowing Bear uses Karma and Jasmine to run its unit tests. To run the tests locally, you will first need to install npm on your machine. Check out the wonderful nvm if you don't know it already, it's highly recommended.

Once this is done, you will need to retrieve the necessary packages for testing Glowing-Bear (first, you might want to use npm link on any packages you have already installed globally):

$ npm install

Finally, you can run the unit tests:

$ npm test

Or the end to end tests: $ npm run protractor

Note: the end to end tests assume that a web server is hosting Glowing Bear on localhost:8000 and that a WeeChat relay is configured on port 9001.

Contributing

Whether you are interested in contributing or simply want to talk about the project, join us at #glowing-bear on freenode!

We appreciate all forms of contributions -- whether you're a coder, designer, or user, we are always curious what you have to say. Whether you have suggestions or already implemented a solution, let us know and we'll try to help. We're also very keen to hear which devices and platforms Glowing Bear works on (or doesn't), as we're a small team and don't have access to the resources we would need to test it everywhere.

If you wish to submit code, we try to make the contribution process as simple as possible. Any pull request that is submitted has to go through automatic and manual testing. Please make sure that your changes pass the Travis tests before submitting a pull request. Here is how you can run the tests:

$ ./run_tests.sh

We'd also like to ask you to join our IRC channel, #glowing-bear on freenode, so we can discuss your ideas and changes.

If you're curious about the projects we're using, here's a list: AngularJS, Bootstrap, Underscore, favico.js, Emoji provided free by Emoji One, and zlib.js. Technology-wise, WebSockets are the most important part, but we also use local storage, the Notification Web API, and last (but not least) Apache Cordova for our mobile app.