Lelylan. Open Source Internet of Things
Lelylan is an IoT cloud platform based on a lightweight microservices architecture.
The Lelylan platform is both hardware-agnostic and platform-agnostic. This means that you can connect any hardware, from the ESP8266 to the most professional embedded hardware solution and everything in between - and it can run on any public cloud, your own private datacenter, or even in a hybrid environment, whether virtualized or bare metal.
This repository defines the architecture documentation. Check out the microservices list for the code implementation.
Research in the Internet of Things is global and growing fast, but lacks the standard tools. Many companies are building their own solutions. By sharing what we have learned during the years, we want to create a shared code base with a clear focus on developers. To see Lelylan in action checkout the tutorials in the dev center.
- Architecture (request life cycle)
- Internet of Things API (how it works)
- Blog (latest from the community)
Lelylan is tested against
- Ruby MRI ~1.9.3
- Node ~0.8.8
- MongoDB ~2.6
- Redis ~2.6
(remember to run the
Lelylan is composed by different microservices. Follow the installation guidelines for each of them.
|API Proxy||Proxy API|
|Devices API||Device monitoring and control|
|Types API||Device type structure|
|Subscriptions API||Realtime subscription|
|Profiles API||Profile information|
|OAuth 2.0||User authentication and authorization|
|Physical Proxy||Forward requests to the physical world|
|MQTT Node||Forward and receive MQTT requests|
|MQTT Server||MQTT server/broker|
|Webhooks||Realtime HTTP notification|
|Websockets||Full-duplex communication over TCP|
You can now access the APIs from
http://0.0.0.0:8200 (API proxy URL).
During deployment, every microservice needs to be set to the following environment variables (remember to change them with your own microservices, mongodb, redis and cache URLs).
||Production rack environment|
||Production rails environment|
||Production node environment|
||OAuth 2.0 microservice URL|
||Devices API microservice URL|
||Types API microservice URL|
||Subs. API microservice URL|
||Profiles API microservice URL|
||OAuth 2.0 MongoDB URL|
||Devices API MongoDB URL|
||Types API MongoDB URL|
||Event Bus MongoDB URL|
||Subs. MongoDB URL|
||Cache server username|
||Cache server password|
||Background Job Redis URL|
||Late Limit Redis URL|
We are studying solutions such as Docker, Mesos, and Ansible to simplify the installation process. If you are experimenting in the same area get in touch with lelylan team.
The Roadmap provides the description of the items that the project has decided to concentrate on. It should serve as a reference point for Lelylan contributors to understand where the project is going, and helps to determine whether a contribution could be conflicting considering the future goals.
The fact that a feature isn't listed here doesn't mean that a patch for it will automatically be refused (we also miss important things). We are always happy to receive patches for new cool features that we haven't thought about, or didn't consider as a priority. Nevertheless understand that such patches might take longer for us to review.
Checkout the roadmap to see our near future goals.
Contributing to Lelylan
This Contributing document tries to define a contributor's guide explaining how to contribute to one or more Lelylan Microservice. It contains information about reporting issues as well as some useful tips and guidelines for experienced open source contributors.
Checkout the contributing to help us with Lelylan.
Use the available communication channels to communicate your ideas, problems or suggestions.
Lelylan is licensed under the Apache License, Version 2.0.