Skip to content

Commit 55c349a

Browse files
Refactor licensing to clearly separate MIT and Pro scopes
Implements cleaner license separation approach: - MIT License applies to lib/react_on_rails/** (except pro/) and node_package/src/** (except pro/) - Pro License applies exclusively to pro/ directories - Removes contradictory language about prohibiting MIT code modification - Clarifies that MIT code can be modified, but using it to access Pro features without a license is prohibited Changes: - LICENSE.md: Restructured to clearly define license scopes upfront - DIRECTORY_LICENSING.md: Added distinction between MIT modification rights and Pro usage restrictions - LICENSING_FAQ.md: Added FAQ explaining modification rights vs usage restrictions This resolves the legal contradiction where MIT-licensed code included anti-circumvention restrictions, which conflicts with MIT's grant of unrestricted modification rights. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Abanoub Ghadban <AbanoubGhadban@users.noreply.github.com>
1 parent 39bd5bf commit 55c349a

File tree

3 files changed

+44
-23
lines changed

3 files changed

+44
-23
lines changed

LICENSE.md

Lines changed: 29 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,40 @@
11
# Licensing
22

3-
- **Core**: MIT (this file)
4-
- **Pro**: see [REACT-ON-RAILS-PRO-LICENSE.md](./REACT-ON-RAILS-PRO-LICENSE.md)
3+
This repository contains code under two different licenses:
54

6-
## LicenseRef-Proprietary
5+
- **Core**: MIT License (applies to most files)
6+
- **Pro**: React on Rails Pro License (applies to specific directories)
77

8-
```
8+
## License Scope
9+
10+
### MIT Licensed Code
11+
12+
The following directories and all their contents are licensed under the **MIT License** (see full text below):
13+
14+
- `lib/react_on_rails/` (excluding `lib/react_on_rails/pro/`)
15+
- `node_package/src/` (excluding `node_package/src/pro/`)
16+
- All other directories in this repository not explicitly listed as Pro-licensed
17+
18+
### Pro Licensed Code
19+
20+
```text
921
SPDX-License-Identifier: LicenseRef-Proprietary
1022
```
1123

12-
The proprietary portions of this software are licensed under the React on Rails Pro License. See [REACT-ON-RAILS-PRO-LICENSE.md](./REACT-ON-RAILS-PRO-LICENSE.md) for complete terms.
13-
14-
**Proprietary directories:**
24+
The following directories and all their contents are licensed under the **React on Rails Pro License**:
1525

1626
- `lib/react_on_rails/pro/`
1727
- `node_package/src/pro/`
1828

19-
**Usage restrictions:**
29+
See [REACT-ON-RAILS-PRO-LICENSE.md](./REACT-ON-RAILS-PRO-LICENSE.md) for complete Pro license terms.
2030

21-
- Pro features require a valid React on Rails Pro subscription
22-
- Any attempt to circumvent license validation is prohibited
23-
- See REACT-ON-RAILS-PRO-LICENSE.md for full terms and conditions
31+
**Important:** Pro-licensed code is included in this package but requires a valid React on Rails Pro subscription to use. Using Pro features without a valid license violates the React on Rails Pro License.
2432

2533
---
2634

27-
## MIT License for Core React on Rails
35+
## MIT License
2836

29-
This license applies to all files within this repository, with the exception of the code located in the following directories, which are licensed separately under the React on Rails Pro License:
30-
31-
- `lib/react_on_rails/pro/`
32-
- `node_package/src/pro/`
33-
34-
**Important:** The Pro-licensed directories contain code that is included in this package but requires a valid React on Rails Pro subscription to function. Any attempt to circumvent, bypass, modify, or disable the license validation mechanisms is strictly prohibited and constitutes a violation of this license and the React on Rails Pro License.
37+
This license applies to all MIT-licensed code as defined above.
3538

3639
Copyright (c) 2017, 2018 Justin Gordon and ShakaCode
3740
Copyright (c) 2015–2025 ShakaCode, LLC
@@ -62,7 +65,12 @@ SOFTWARE.
6265

6366
## React on Rails Pro License
6467

65-
The code in the directories listed above is part of the React on Rails Pro framework and is licensed under the React on Rails Pro License.
66-
67-
You can find the full text of the license agreement here:
68+
For Pro-licensed code (as defined in the "License Scope" section above), see:
6869
[REACT-ON-RAILS-PRO-LICENSE.md](./REACT-ON-RAILS-PRO-LICENSE.md)
70+
71+
**Key Points:**
72+
73+
- Pro features require a valid React on Rails Pro subscription for production use
74+
- Free use is permitted for educational, personal, and non-production purposes
75+
- Modifying MIT-licensed interface files is permitted under MIT terms
76+
- However, using those modifications to access Pro features without a valid license violates the Pro License

docs/DIRECTORY_LICENSING.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@ react_on_rails/
1919
└── [all other directories] # MIT
2020
```
2121

22-
**Exception:** The `node_package/src/pro/` directory contains actual Pro implementation code with license validation. The code is included in the package but requires a valid Pro license to function.
22+
**Exception:** The `node_package/src/pro/` directory contains Pro implementation code licensed under the React on Rails Pro License. This code is included in the package but requires a valid Pro license to use.
23+
24+
**Important Distinction:**
25+
- **MIT-licensed interface files** (outside `pro/` directories) can be freely modified under MIT terms
26+
- **Using those modifications to access Pro features** without a license violates the Pro License
27+
- **Pro-licensed files** (inside `pro/` directories) require a Pro license to use in any way
2328

2429
### react_on_rails_pro Repository - Pro Licensed
2530

docs/LICENSING_FAQ.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ react_on_rails/ (monorepo root)
9595

9696
**A:** We maintain two separate repositories:
9797

98-
- **react_on_rails** (MIT) - Core functionality, completely free. Pro features are included but gated behind license validation as stated in LICENSE.md
98+
- **react_on_rails** (MIT + Pro) - Core functionality is MIT-licensed and completely free. Pro features (in `pro/` directories) are Pro-licensed and require a subscription for production use
9999
- **react_on_rails_pro** (Pro License) - Advanced features, subscription required for production
100100

101101
### Q: What requires a Pro subscription?
@@ -110,6 +110,14 @@ react_on_rails/ (monorepo root)
110110

111111
See [REACT-ON-RAILS-PRO-LICENSE.md](../REACT-ON-RAILS-PRO-LICENSE.md) for complete Pro license terms.
112112

113+
### Q: Can I modify the MIT-licensed interface files?
114+
115+
**A:** Yes! Under the MIT license, you can freely modify any MIT-licensed files (those outside `pro/` directories). However:
116+
117+
- **Permitted:** Modifying MIT-licensed code for your own purposes
118+
- **Not Permitted:** Using those modifications to access Pro features without a valid license
119+
- **Distinction:** The MIT license grants you modification rights, but the Pro License restricts unauthorized use of Pro features
120+
113121
### Q: Can I try Pro features for free?
114122

115123
**A:** Yes! Pro license allows free use for:

0 commit comments

Comments
 (0)