Neighbour Awareness Networking, also known as Wi-Fi Aware, is a Wi-Fi specification that enables devices to discover and connect directly to each other without requiring any other type of connectivity between them.
Making this functionality available to websites would enable them to create fast and convenient connections between users who are physically close, opening up new ways of approaching the creation of Web solutions.
However, this can not be done lightly: a careless use of this technology would pose severe threats to privacy and security.
This is an early draft proposal for a JavaScript API for NAN that tries to balance usefulness and user safety. The goal is to make it easy to discover and connect to people who have allowed you to do so, and only to them.
See here for more details, use cases, draft API and implementation notes: