From 9165714a5ff152213f26100c1d374367aa656198 Mon Sep 17 00:00:00 2001 From: Abolfazl Ranjbaran <206173650+Abolfazlrwm@users.noreply.github.com> Date: Thu, 26 Nov 2026 07:59:23 +0000 Subject: [PATCH] license!: MIT -> PolyForm Noncommercial 1.0.0 (source-available) Reading and reviewing the code stays free, noncommercial use stays free; any commercial use now requires a paid license from the author. Releases through v1.4.1 remain MIT. --- CHANGELOG.md | 11 ++++ CITATION.cff | 2 +- LICENSE | 113 ++++++++++++++++++++++++++++++++++------- README.fa.md | 13 ++++- README.md | 15 +++++- backend/pyproject.toml | 4 +- bot/pyproject.toml | 4 +- site/index.html | 12 ++--- space/README.md | 4 +- training/model_card.md | 10 +++- web/package.json | 2 +- 11 files changed, 154 insertions(+), 36 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 52c8010..d7717c0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,17 @@ The format follows [Keep a Changelog](https://keepachangelog.com/) and the proje icon (`docs/assets/icon-512.png`) usable as the HF Space avatar. The landing site og:image was regenerated in the same style. +### Changed + +- **License: MIT → PolyForm Noncommercial 1.0.0 (source-available).** The + code stays readable and reviewable by anyone, and noncommercial use + (personal projects, study, research, nonprofits) remains free; any + commercial use now requires a paid license from the author. Releases up + to and including v1.4.1 (2026-11-26) were published under MIT and remain + under it. Applied across LICENSE, both READMEs, CITATION.cff, both + pyproject.toml files, web/package.json, the landing site copy, the demo + Space metadata and the fine-tuned model card. + ## [1.4.1] - 2026-11-26 ### Security diff --git a/CITATION.cff b/CITATION.cff index 4edcc1f..66e1214 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -8,7 +8,7 @@ authors: email: 206173650+Abolfazlrwm@users.noreply.github.com version: "1.4.1" date-released: "2026-11-26" -license: MIT +license: PolyForm-Noncommercial-1.0.0 repository-code: "https://github.com/Abolfazlrwm/sokhan" url: "https://abolfazlrwm.github.io/sokhan/" abstract: >- diff --git a/LICENSE b/LICENSE index 4d95646..bdf49c9 100644 --- a/LICENSE +++ b/LICENSE @@ -1,21 +1,100 @@ -MIT License +# Sokhan · سخن — Source-Available License -Copyright (c) 2026 Sokhan contributors +Copyright (c) 2026 Abolfazl Ranjbaran (https://github.com/Abolfazlrwm) -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +Sokhan is made **source-available** so anyone can read, review, inspect and +evaluate the code — including prospective clients and employers. It is +**free for noncommercial use** (personal projects, personal study, research, +testing, hobby work, and nonprofit organizations) under the PolyForm +Noncommercial License 1.0.0, reproduced verbatim below. -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +**Any commercial use — running it for a business, building client projects +on it, reselling it, or offering it as a hosted service — requires a paid +commercial license.** To arrange licensing, support, custom deployment or +fine-tuning work, contact the author: +**Abolfazl Ranjbaran — ** -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +> Required Notice: Copyright Abolfazl Ranjbaran (https://github.com/Abolfazlrwm) + +## Heritage note + +Every release of Sokhan up to and including v1.4.1 (2026-11-26) was +distributed under the MIT License; copies obtained from those releases +remain under the MIT License. The PolyForm Noncommercial License 1.0.0 +below applies to the software from this change onward. + +--- + +# PolyForm Noncommercial License 1.0.0 + + + +## Acceptance + +In order to get any license under these terms, you must agree to them as both strict obligations and conditions to all your licenses. + +## Copyright License + +The licensor grants you a copyright license for the software to do everything you might do with the software that would otherwise infringe the licensor's copyright in it for any permitted purpose. However, you may only distribute the software according to [Distribution License](#distribution-license) and make changes or new works based on the software according to [Changes and New Works License](#changes-and-new-works-license). + +## Distribution License + +The licensor grants you an additional copyright license to distribute copies of the software. Your license to distribute covers distributing the software with changes and new works permitted by [Changes and New Works License](#changes-and-new-works-license). + +## Notices + +You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms or the URL for them above, as well as copies of any plain-text lines beginning with `Required Notice:` that the licensor provided with the software. For example: + +> Required Notice: Copyright Yoyodyne, Inc. (http://example.com) + +## Changes and New Works License + +The licensor grants you an additional copyright license to make changes and new works based on the software for any permitted purpose. + +## Patent License + +The licensor grants you a patent license for the software that covers patent claims the licensor can license, or becomes able to license, that you would infringe by using the software. + +## Noncommercial Purposes + +Any noncommercial purpose is a permitted purpose. + +## Personal Uses + +Personal use for research, experiment, and testing for the benefit of public knowledge, personal study, private entertainment, hobby projects, amateur pursuits, or religious observance, without any anticipated commercial application, is use for a permitted purpose. + +## Noncommercial Organizations + +Use by any charitable organization, educational institution, public research organization, public safety or health organization, environmental protection organization, or government institution is use for a permitted purpose regardless of the source of funding or obligations resulting from the funding. + +## Fair Use + +You may have "fair use" rights for the software under the law. These terms do not limit them. + +## No Other Rights + +These terms do not allow you to sublicense or transfer any of your licenses to anyone else, or prevent the licensor from granting licenses to anyone else. These terms do not imply any other licenses. + +## Patent Defense + +If you make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company. + +## Violations + +The first time you are notified in writing that you have violated any of these terms, or done anything with the software not covered by your licenses, your licenses can nonetheless continue if you come into full compliance with these terms, and take practical steps to correct past violations, within 32 days of receiving notice. Otherwise, all your licenses end immediately. + +## No Liability + +***As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.*** + +## Definitions + +The **licensor** is the individual or entity offering these terms, and the **software** is the software the licensor makes available under these terms. + +**You** refers to the individual or entity agreeing to these terms. + +**Your company** is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. **Control** means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect. + +**Your licenses** are all the licenses granted to you for the software under these terms. + +**Use** means anything you do with the software requiring one of your licenses. diff --git a/README.fa.md b/README.fa.md index 23b5e5f..1736d32 100644 --- a/README.fa.md +++ b/README.fa.md @@ -14,6 +14,7 @@ [![Release](https://img.shields.io/github/v/release/Abolfazlrwm/sokhan?display_name=tag)](https://github.com/Abolfazlrwm/sokhan/releases) [![OpenSSF Scorecard](https://api.securityscorecards.dev/badge/github_Abolfazlrwm/sokhan)](https://api.securityscorecards.dev/projects/github.com/Abolfazlrwm/sokhan) [![Landing page](https://img.shields.io/badge/landing_page-abolfazlrwm.github.io%2Fsokhan-2dd4bf)](https://abolfazlrwm.github.io/sokhan/) +[![License: PolyForm Noncommercial 1.0.0](https://img.shields.io/badge/license-PolyForm%20Noncommercial%201.0.0-2dd4bf)](LICENSE) **کیت گفتار به متنِ فارسی‌محور.** یک پیام صوتی بفرستید — متنِ کامل و خلاصه تحویل بگیرید. @@ -32,7 +33,7 @@ سخن کاملاً روی سخت‌افزار خودتان اجرا می‌شود: یک سرویس FastAPI با موتور faster-whisper، یک ورکر Celery، یک داشبورد Next.js که فارسی‌محور نوشته شده (راست‌به‌چپ)، و یک ربات تلگرام اختیاری. بدون حساب ابری، بدون قیمتِ -هر دقیقه، با لایسنس MIT. +هر دقیقه. متن‌بازِ‌قابل‌مطالعه: برای استفاده غیرتجاری رایگان، برای استفاده تجاری لایسنس تجاری (بخش [لایسنس](#لایسنس)). ![داشبورد وب سخن — صفحهٔ اصلی](docs/assets/web-landing-fa.png) @@ -333,4 +334,12 @@ site/ لندینگ‌پیج GitHub Pages (دیپلوی خودکار) ## لایسنس -MIT — ببینید [LICENSE](LICENSE). +سخن با لایسنس [PolyForm Noncommercial 1.0.0](https://polyformproject.org/licenses/noncommercial/1.0.0) +منتشر می‌شود (متن کامل در [LICENSE](LICENSE)): خواندن، بررسی و ارزیابیِ کد +آزاد است و **استفادهٔ غیرتجاری** (پروژهٔ شخصی، مطالعه، پژوهش، سازمان‌های +غیرانتفاعی) رایگان. **هر استفادهٔ تجاری** — اجرا برای کسب‌وکار، پروژهٔ +مشتری، فروش، یا ارائه به‌عنوان سرویس — به لایسنس تجاریِ پولی از نویسنده +نیاز دارد: [ابوالفضل رنجبران](https://github.com/Abolfazlrwm). + +نسخه‌های تا و شامل v1.4.1 (۲۰۲۶-۱۱-۲۶) تحت لایسنس MIT منتشر شده بودند و +تحت همان لایسنس باقی می‌مانند. diff --git a/README.md b/README.md index c44841b..30e0dae 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ [![Release](https://img.shields.io/github/v/release/Abolfazlrwm/sokhan?display_name=tag)](https://github.com/Abolfazlrwm/sokhan/releases) [![OpenSSF Scorecard](https://api.securityscorecards.dev/badge/github_Abolfazlrwm/sokhan)](https://api.securityscorecards.dev/projects/github.com/Abolfazlrwm/sokhan) [![Landing page](https://img.shields.io/badge/landing_page-abolfazlrwm.github.io%2Fsokhan-2dd4bf)](https://abolfazlrwm.github.io/sokhan/) +[![License: PolyForm Noncommercial 1.0.0](https://img.shields.io/badge/license-PolyForm%20Noncommercial%201.0.0-2dd4bf)](LICENSE) **Persian-first speech-to-text toolkit.** Send a voice message — get back a transcript and a summary. @@ -31,7 +32,8 @@ Spaces behind PRO, so the free Space is the static page. A one-page Sokhan runs entirely on your own hardware: a FastAPI service with a faster-whisper engine, a Celery worker, a Next.js dashboard written Persian-first (RTL), and an optional Telegram bot. No cloud account, no -per-minute pricing, MIT-licensed. +per-minute pricing. Source-available: free for noncommercial use, +paid license for commercial use (see [License](#license)). ![Sokhan web dashboard — landing page](docs/assets/web-landing-fa.png) @@ -331,4 +333,13 @@ rule everything is held to): [docs/ROADMAP.md](docs/ROADMAP.md). ## License -MIT — see [LICENSE](LICENSE). +Sokhan is source-available under the [PolyForm Noncommercial 1.0.0](https://polyformproject.org/licenses/noncommercial/1.0.0) +license (see [LICENSE](LICENSE)): reading, reviewing and evaluating the code +is free, and **noncommercial use** (personal projects, study, research, +nonprofits) is free. **Any commercial use** — deploying it for a business, +building client projects on it, reselling it, or hosting it as a service — +requires a paid license from the author: +[Abolfazl Ranjbaran](https://github.com/Abolfazlrwm). + +Releases up to and including v1.4.1 (2026-11-26) were published under the +MIT License and remain under it. diff --git a/backend/pyproject.toml b/backend/pyproject.toml index ad759a9..04711e8 100644 --- a/backend/pyproject.toml +++ b/backend/pyproject.toml @@ -7,12 +7,12 @@ name = "sokhan-backend" description = "Persian-first speech-to-text engine and REST API for Sokhan" requires-python = ">=3.10" authors = [{ name = "Abolfazl Ranjbaran", email = "206173650+Abolfazlrwm@users.noreply.github.com" }] -license = { text = "MIT" } +license = { text = "PolyForm Noncommercial 1.0.0" } keywords = ["persian", "farsi", "speech-to-text", "asr", "whisper", "fastapi", "self-hosted"] classifiers = [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", - "License :: OSI Approved :: MIT License", + "License :: Other/Proprietary License", "Natural Language :: Persian", "Operating System :: OS Independent", "Programming Language :: Python :: 3", diff --git a/bot/pyproject.toml b/bot/pyproject.toml index 78b5643..8ee13d5 100644 --- a/bot/pyproject.toml +++ b/bot/pyproject.toml @@ -7,12 +7,12 @@ name = "sokhan-bot" description = "Telegram bot for Sokhan: send a voice message, receive the transcript" requires-python = ">=3.10" authors = [{ name = "Abolfazl Ranjbaran", email = "206173650+Abolfazlrwm@users.noreply.github.com" }] -license = { text = "MIT" } +license = { text = "PolyForm Noncommercial 1.0.0" } keywords = ["persian", "farsi", "telegram-bot", "asr", "transcription", "aiogram"] classifiers = [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", - "License :: OSI Approved :: MIT License", + "License :: Other/Proprietary License", "Natural Language :: Persian", "Operating System :: OS Independent", "Programming Language :: Python :: 3", diff --git a/site/index.html b/site/index.html index 73e2407..75c53e3 100644 --- a/site/index.html +++ b/site/index.html @@ -4,9 +4,9 @@ سخن — تبدیل گفتار فارسی به متن | Sokhan - + - + @@ -14,7 +14,7 @@ - + @@ -39,7 +39,7 @@
-

Open source · MIT · v1.4.1

+

Source-available · free for noncommercial use · v1.4.1

گفتار فارسی، به متنِ دقیق —
روی سرورِ خودت

سخن یک کیت کامل تبدیل گفتار به متن است: سرویس FastAPI با موتور @@ -48,7 +48,7 @@ سرویس ابری و بدون قیمتِ هر دقیقه.

- Persian-first speech-to-text toolkit — self-hosted, measured, MIT-licensed. + Persian-first speech-to-text toolkit — self-hosted, measured, free for noncommercial use.

@@ -226,7 +226,7 @@ docker pull ghcr.io/abolfazlrwm/sokhan-api:latest