1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-12-18 22:31:32 +03:00
leon/README.md

233 lines
9.2 KiB
Markdown
Raw Normal View History

2019-02-10 15:26:50 +03:00
<p align="center">
2021-12-05 18:24:42 +03:00
<a href="https://getleon.ai"><img width="800" src="https://getleon.ai/img/hero-animation.gif" /></a>
2019-02-10 15:26:50 +03:00
</p>
2021-12-05 16:13:44 +03:00
<h1 align="center">
<a href="https://getleon.ai"><img width="96" src="https://getleon.ai/img/logo.svg" alt="Leon"></a><br>
Leon
</h1>
2019-02-10 15:26:50 +03:00
*<p align="center">Your open-source personal assistant.</p>*
<p align="center">
2021-03-21 10:08:20 +03:00
<a href="https://github.com/leon-ai/leon/blob/develop/LICENSE.md"><img src="https://img.shields.io/badge/license-MIT-blue.svg?label=License&style=flat" /></a>
<a href="https://github.com/leon-ai/leon/blob/develop/.github/CONTRIBUTING.md"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat" /></a>
<br>
<a href="https://github.com/leon-ai/leon/actions/workflows/build.yml"><img src="https://github.com/leon-ai/leon/actions/workflows/build.yml/badge.svg?branch=develop" /></a>
<a href="https://github.com/leon-ai/leon/actions/workflows/tests.yml"><img src="https://github.com/leon-ai/leon/actions/workflows/tests.yml/badge.svg?branch=develop" /></a>
<a href="https://github.com/leon-ai/leon/actions/workflows/lint.yml"><img src="https://github.com/leon-ai/leon/actions/workflows/lint.yml/badge.svg?branch=develop" /></a>
2021-03-13 11:59:52 +03:00
<br>
<a href="https://discord.gg/MNQqqKg"><img src="https://svgshare.com/i/V09.svg"/></a>
<a href="https://twitter.com/louistiti_fr"><img src="https://img.shields.io/twitter/follow/louistiti_fr?label=Follow&style=social" /></a>
2019-02-10 15:26:50 +03:00
</p>
<p align="center">
<a href="https://getleon.ai">Website</a> ::
<a href="https://docs.getleon.ai">Documentation</a> ::
<a href="http://roadmap.getleon.ai">Roadmap</a> ::
2019-02-17 17:25:33 +03:00
<a href="https://github.com/leon-ai/leon/blob/develop/.github/CONTRIBUTING.md">Contributing</a> ::
<a href="https://blog.getleon.ai/the-story-behind-leon/">Story</a>
2019-02-10 15:26:50 +03:00
</p>
2021-12-07 17:44:22 +03:00
<svg width="4438" height="1000" viewBox="0 0 4438 1000" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M2223.75 250C2051.25 250 1926.87 362.5 1926.87 531.25C1926.87 700 2066.72 812.5 2239.38 812.5C2343.59 812.5 2435.47 771.25 2492.34 701.719L2372.81 632.656C2341.25 667.188 2293.28 687.344 2239.38 687.344C2164.53 687.344 2100.94 648.281 2077.34 585.781H2515.16C2518.59 568.281 2520.63 550.156 2520.63 531.094C2520.63 362.5 2396.41 250 2223.75 250ZM2076.09 476.562C2095.62 414.219 2149.06 375 2223.75 375C2298.59 375 2352.03 414.219 2371.41 476.562H2076.09ZM2040.78 78.125L1607.81 828.125L1174.69 78.125H1337.03L1607.66 546.875L1878.28 78.125H2040.78ZM577.344 0L1154.69 1000H0L577.344 0ZM3148.75 531.25C3148.75 625 3210 687.5 3305 687.5C3369.38 687.5 3417.66 658.281 3442.5 610.625L3562.5 679.844C3512.81 762.656 3419.69 812.5 3305 812.5C3132.34 812.5 3008.13 700 3008.13 531.25C3008.13 362.5 3132.5 250 3305 250C3419.69 250 3512.66 299.844 3562.5 382.656L3442.5 451.875C3417.66 404.219 3369.38 375 3305 375C3210.16 375 3148.75 437.5 3148.75 531.25ZM4437.5 78.125V796.875H4296.88V78.125H4437.5ZM3906.25 250C3733.75 250 3609.38 362.5 3609.38 531.25C3609.38 700 3749.38 812.5 3921.88 812.5C4026.09 812.5 4117.97 771.25 4174.84 701.719L4055.31 632.656C4023.75 667.188 3975.78 687.344 3921.88 687.344C3847.03 687.344 3783.44 648.281 3759.84 585.781H4197.66C4201.09 568.281 4203.12 550.156 4203.12 531.094C4203.12 362.5 4078.91 250 3906.25 250ZM3758.59 476.562C3778.13 414.219 3831.41 375 3906.25 375C3981.09 375 4034.53 414.219 4053.91 476.562H3758.59ZM2961.25 265.625V417.031C2945.63 412.5 2929.06 409.375 2911.25 409.375C2820.47 409.375 2755 471.875 2755 565.625V796.875H2614.38V265.625H2755V409.375C2755 330 2847.34 265.625 2961.25 265.625Z" fill="black"/>
</svg>
2019-02-10 15:26:50 +03:00
---
2021-03-16 16:16:17 +03:00
## 👋 Introduction
2019-02-10 15:26:50 +03:00
**Leon** is an **open-source personal assistant** who can live **on your server**.
2019-02-10 15:26:50 +03:00
2019-02-23 13:39:06 +03:00
He **does stuff** when you **ask him for**.
2019-02-10 15:26:50 +03:00
You can **talk to him** and he can **talk to you**.
You can also **text him** and he can also **text you**.
If you want to, Leon can communicate with you by being **offline to protect your privacy**.
### Why?
2019-02-10 15:26:50 +03:00
> 1. If you are a developer (or not), you may want to build many things that could help in your daily life.
> Instead of building a dedicated project for each of those ideas, Leon can help you with his
> packages/modules (skills) structure.
> 2. With this generic structure, everyone can create their own modules and share them with others.
2019-02-18 14:18:17 +03:00
> Therefore there is only one core (to rule them all).
2019-02-10 15:26:50 +03:00
> 3. Leon uses AI concepts, which is cool.
> 4. Privacy matters, you can configure Leon to talk with him offline. You can already text with him without any third party services.
2019-03-30 07:18:37 +03:00
> 5. Open source is great.
2019-02-10 15:26:50 +03:00
### What is this repository for?
2019-02-10 15:26:50 +03:00
> This repository contains the following nodes of Leon:
> - The server
> - The packages/modules
> - The web app
> - The hotword node
### What is Leon able to do?
> Today, the most interesting part is about his core and the way he can scale up. He is pretty young but can easily scale to have new features (packages/modules).
> You can find what he is able to do by browsing the [packages list](https://github.com/leon-ai/leon/tree/develop/packages).
2019-02-10 15:26:50 +03:00
Sounds good for you? Then let's get started!
## ☁️ Try with a Single-Click
Gitpod will automatically setup an environment and run an instance for you.
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/leon-ai/leon)
2021-03-16 16:16:17 +03:00
## 🚀 Getting Started
2019-02-10 15:26:50 +03:00
### Prerequisites
- [Node.js](https://nodejs.org/) >= 16
- [npm](https://npmjs.com/) >= 8
2019-06-08 06:33:22 +03:00
- [Python](https://www.python.org/downloads/) >= 3
- [Pipenv](https://docs.pipenv.org) >= 2020.11.15
2019-02-10 15:26:50 +03:00
- Supported OSes: Linux, macOS and Windows
To install these prerequisites, you can follow the [How To section](https://docs.getleon.ai/how-to/) of the documentation.
### Installation
```sh
# Clone the repository (stable branch)
git clone -b master https://github.com/leon-ai/leon.git leon
# OR download the latest release at: https://github.com/leon-ai/leon/releases/latest
# Go to the project root
cd leon
# Install
npm install
```
### Usage
```sh
# Check the setup went well
npm run check
# Build
npm run build
# Run
npm start
# Go to http://localhost:1337
# Hooray! Leon is running
```
2019-02-23 16:27:28 +03:00
### Docker Installation
```sh
# Build
npm run docker:build
# Run
2019-02-23 16:27:28 +03:00
npm run docker:run
# Go to http://localhost:1337
# Hooray! Leon is running
```
2021-03-16 16:16:17 +03:00
## 📚 Documentation
2019-02-10 15:26:50 +03:00
For full documentation, visit [docs.getleon.ai](https://docs.getleon.ai).
2021-12-05 16:13:44 +03:00
## 📺 Video
[Watch a demo](https://www.youtube.com/watch?v=p7GRGiicO1c).
## 🧭 Roadmap
2019-02-10 15:26:50 +03:00
To know what is going on, follow [roadmap.getleon.ai](http://roadmap.getleon.ai).
2019-02-10 15:26:50 +03:00
2021-03-16 16:16:17 +03:00
## ❤️ Contributing
2019-02-10 15:26:50 +03:00
2019-02-23 13:39:06 +03:00
If you have an idea for improving Leon, do not hesitate.
2019-02-10 15:26:50 +03:00
2019-03-30 07:18:37 +03:00
**Leon needs open source to live**, the more modules he has, the more skillful he becomes.
2019-02-10 15:26:50 +03:00
2021-03-16 16:16:17 +03:00
## 📖 The Story Behind Leon
2019-02-17 17:25:33 +03:00
You'll find a write-up on this [blog post](https://blog.getleon.ai/the-story-behind-leon/).
2021-03-16 16:16:17 +03:00
## 🔔 Stay Tuned
2021-12-05 16:13:44 +03:00
- [Twitter](https://twitter.com/louistiti_fr)
2021-12-24 04:20:44 +03:00
- [Newsletter](http://newsletter.getleon.ai)
2019-02-10 15:26:50 +03:00
- [Blog](https://blog.getleon.ai)
- [GitHub issues](https://github.com/leon-ai/leon/issues)
2021-12-05 16:13:44 +03:00
- [YouTube](https://www.youtube.com/channel/UCW6mk6j6nQUzFYY97r47emQ)
2019-02-10 15:26:50 +03:00
- [#LeonAI](https://twitter.com/hashtag/LeonAI)
2021-03-16 16:16:17 +03:00
## 👨 Author
2019-02-10 15:26:50 +03:00
**Louis Grenard** ([@louistiti_fr](https://twitter.com/louistiti_fr))
2021-08-07 12:54:16 +03:00
## 👍 Sponsors
<table>
<tbody>
<tr>
2021-11-09 15:48:59 +03:00
<td align="center" valign="middle" width="128">
<a href="https://github.com/Francaoz">
<img src="https://github.com/Francaoz.png?size=128" />
Francaoz
</a><br>
<sub><sup>100 USD / month</sup></sub>
</td>
2021-08-07 12:54:16 +03:00
<td align="center" valign="middle" width="128">
2021-12-07 17:44:22 +03:00
<a href="https://github.com/GregoireAMATO">
<img src="https://github.com/GregoireAMATO.png?size=128" />
2021-08-07 12:54:16 +03:00
GrAMATO
</a><br>
<sub><sup>30 USD / month</sup></sub>
</td>
2021-12-21 17:28:15 +03:00
<td align="center" valign="middle" width="128">
<a href="https://github.com/phareal">
<img src="https://github.com/phareal.png?size=128" />
phareal
</a><br>
<sub><sup>17 USD / month</sup></sub>
</td>
2021-08-17 18:43:01 +03:00
<td align="center" valign="middle" width="128">
<a href="https://github.com/marvinpoo">
<img src="https://github.com/marvinpoo.png?size=128" />
marvinpoo
</a><br>
<sub><sup>10 USD / month</sup></sub>
</td>
2021-08-07 12:54:16 +03:00
<td align="center" valign="middle" width="128">
<a href="http://sponsor.getleon.ai/">
2021-08-07 12:54:16 +03:00
You?
</a>
</td>
</tr>
</tbody>
</table>
2019-02-10 15:26:50 +03:00
You can also contribute by [sponsoring Leon](http://sponsor.getleon.ai).
2019-02-10 15:26:50 +03:00
2021-06-05 18:08:10 +03:00
Please note that I dedicate most of my free time to Leon.
By sponsoring the project you make the project sustainable and faster to develop features.
The focus is not only limited to the activity you see on GitHub but also a lot of thinking about the direction of the project. Which is naturally related to the overall design, architecture, vision, learning process and so on...
2021-12-07 17:44:22 +03:00
### Special Thanks
<a href="https://vercel.com/?utm_source=leon-ai&utm_campaign=oss">
<img src="https://i.imgur.com/S5olXWh.png" alt="Vercel" width="128" />
</a>
2021-03-16 16:16:17 +03:00
## 📝 License
2019-02-10 15:26:50 +03:00
[MIT License](https://github.com/leon-ai/leon/blob/develop/LICENSE.md)
Copyright (c) 2019-present, Louis Grenard <louis.grenard@gmail.com>
## Cheers!
2021-03-16 16:16:17 +03:00
![Cheers!](https://github.githubassets.com/images/icons/emoji/unicode/1f379.png "Cheers!")