Subnodes is an open source project that configures your Raspberry Pi as a wireless AP, Node.js server, and BATMAN ADV mesh point.
Shell JavaScript CSS HTML
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
app was deleting socket obj before pulling out name prop Jul 17, 2017
scripts Support all home dir usernames Oct 14, 2017
.gitignore fixed issue that killed eth0 interface Apr 13, 2015 AGPLv3 licsense file added, fixes #2 May 20, 2013 Update Dec 15, 2017 installing batctl during ap setup, for sake of simplicity Aug 15, 2017
package.json bumped up dependency version May 13, 2017
subnode.js fixing node port for prod May 10, 2017
subnodes.config Updated IP ranges used for DHCP, adjusted comments Jan 16, 2018 Support all home dir usernames Oct 14, 2017


Subnodes is an open source project that turns your Linux device running the latest Raspbian (as of this writing, Stretch Lite) into an offline mesh node and wireless access point.

This project is an initiative focused on streamlining the process of setting up a Raspberry Pi as a wireless access point for distributing content, media, and shared digital experiences. The device becomes a web server, creating its own local area network, and does not connect with the internet. This is key for the sake of offering a space where people can communicate anonymously and freely, as well as maximizing the portability of the network (no dependibility on an internet connection means the device can be taken and remain active anywhere).

The device can also be configured as a BATMAN Advanced mesh node, enabling it to join with other nearby BATMAN nodes into a greater mesh network, extending the access point range and making it possible to exchange information with each other. Support for Subnodes has been provided by Eyebeam. This code is published under the AGPLv3.

How to Install

Assuming you are starting with a fresh Raspbian Stretch Lite (Latest tested version: November 2017) install on your SD card, these are the steps for setting up subnodes on your Raspberry Pi. It is also assumed that you have two wireless USB adapters attached to your RPi. They both must be running the nl80211 driver. If you are running a Raspberry Pi 3 or Pi Zero W, you only need one additional radio for the mesh point. The access point will be set up utilizing the Pi's internal wireless radio.

Also, if this is your first time connecting to your Raspberry Pi headlessly (i.e. via SSH), you must first enable SSH by placing an empty file with no filename extension simple called ssh in the root of your SD card.

  • set up your Raspberry Pi with a basic configuration

      sudo raspi-config
  • update apt-get

      sudo apt-get update
  • install git

      sudo apt-get install git
  • clone the repository into your home folder (assuming /home/pi)

      git clone
  • configure your wireless access point and mesh network in subnodes.config in any text editor, or in the command line you can use nano

      nano subnodes.config
  • run the installation script

      cd subnodes
      sudo ./

The installation process takes about 15 minutes. After it has completed, you will have a running node.js web server, wireless access point, and BATMAN Advanced mesh node. Connecting to the network and navigating to a browser page will redirect you to, where a sample node.js chat client will be running.

From here, fork, build, share your ideas, and have fun!