# Dual License: AGPL v3 + BSL 1.1

This project is dual-licensed under:

1. **GNU Affero General Public License v3.0** (AGPL v3) — for general use, modification, and distribution
2. **Business Source License 1.1** (BSL 1.1) — for commercial production use

## Choosing Your License

| Your Use Case | License |
|---|---|
| Personal use, development, testing | Either — pick whichever suits you |
| Modifying and redistributing the code | **AGPL v3** (your changes must also be AGPL v3) |
| Running a modified version as a public service | **AGPL v3** (your server code must be made available) |
| Using in commercial production | **BSL 1.1** — requires a commercial license from the author |
| Selling or embedding as part of a commercial product | **BSL 1.1** — requires a commercial license from the author |

To obtain a commercial license under BSL 1.1, contact: <https://github.com/faks>

---

## GNU Affero General Public License v3.0

```
                    GNU AFFERO GENERAL PUBLIC LICENSE
                       Version 3, 19 November 2007

 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
 Everyone is permitted to copy and distribute verbatim copies
 of this license document, but changing it is not allowed.

                            Preamble

  The GNU Affero General Public License is a free, copyleft license for
  software and other kinds of works, specifically designed to ensure
  cooperation with the community in the case of network server software.

  The licenses for most software and other practical works are designed
  to take away your freedom to share and change the works.  By contrast,
  our Affero General Public License intends to guarantee your freedom to
  share and change all versions of a program--to make sure it remains free
  software for all its users.

  When we speak of free software, we mean free of charge and free of
  changing, not free of speech.  For network server software, if users
  can interact with the program through a network, the source code
  should be made available to them.

  You may copy, distribute and modify the software as long as you copy,
  distribute, modify and redistribute are all free of charge.  You may
  also give copies of the software to others.  If you modify the
  software, you may distribute your modified version under this license
  or under any later version of the GNU Affero General Public License.

  The full text of the GNU Affero General Public License v3.0 is available at:
  <https://www.gnu.org/licenses/agpl-3.0.html>
```

---

## Business Source License 1.1

```
Business Source License 1.1

Parameters

Licensor:             Oskars Germovs
Licensed Work:        pi-gateway
                      The Licensed Work is (c) 2026 Oskars Germovs
Additional Use Grant: You may make production use of the Licensed Work,
                      provided your organization has not exceeded $1M
                      in annual revenue and you do not offer the Licensed
                      Work as a managed service or competing product.

Change Date:          January 1, 2036

Change License:       MIT

For information about commercial licensing, contact the Licensor.

---

Terms

The Licensor hereby grants you the right to copy, modify, distribute,
and redistribute this software for the purposes of bug fixes,
improvements, or additional functionality, subject to the terms below.

For the purpose of the clause below, "modification" shall mean
modification of the original software.

For the purposes of this paragraph, "production use" shall mean any
making available of the software to third parties, whether through
distribution or through network access.

The foregoing grant is subject to the following conditions:

1. The above copyright notice and this permission notice shall be
   included in all copies or substantial portions of the Software.

2. Compliance with the License. The Software is provided to you under
   the terms and conditions of this License, and any use of the
   Software is subject to these terms.

3. Change License. On the Change Date, the Software shall be subject
   to the MIT License.

4. Additional Use Grant. You may make production use of the Licensed
   Work, provided your organization has not exceeded $1M in annual
   revenue and you do not offer the Licensed Work as a managed service
   or competing product.

For clarification, the Additional Use Grant does not permit you to
use the Licensed Work as a managed service or as part of a competing
product.

The full text of the Business Source License 1.1 is available at:
<https://mariadb.com/bsl11/>
```

---

> **Copyright (c) 2026 Oskars Germovs**
