rivet_cms 0.1.2.pre → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +63 -0
  3. data/COPYING +674 -0
  4. data/COPYING.LESSER +165 -0
  5. data/README.md +173 -10
  6. data/app/assets/builds/rivet_cms.css +2 -2
  7. data/app/assets/builds/rivet_cms.js +395 -9505
  8. data/app/assets/stylesheets/rivet_cms/application.tailwind.css +145 -22
  9. data/app/controllers/concerns/rivet_cms/inertia_props.rb +239 -0
  10. data/app/controllers/rivet_cms/api_docs_controller.rb +47 -0
  11. data/app/controllers/rivet_cms/api_tokens_controller.rb +43 -0
  12. data/app/controllers/rivet_cms/application_controller.rb +220 -2
  13. data/app/controllers/rivet_cms/auth_controller.rb +28 -0
  14. data/app/controllers/rivet_cms/components_controller.rb +93 -2
  15. data/app/controllers/rivet_cms/content_controller.rb +105 -0
  16. data/app/controllers/rivet_cms/content_manager_controller.rb +32 -0
  17. data/app/controllers/rivet_cms/content_types_controller.rb +118 -26
  18. data/app/controllers/rivet_cms/dashboard_controller.rb +55 -5
  19. data/app/controllers/rivet_cms/documents_controller.rb +204 -0
  20. data/app/controllers/rivet_cms/fields_controller.rb +77 -74
  21. data/app/controllers/rivet_cms/invitations_controller.rb +36 -0
  22. data/app/controllers/rivet_cms/media_assets_controller.rb +76 -0
  23. data/app/controllers/rivet_cms/sessions_controller.rb +122 -0
  24. data/app/controllers/rivet_cms/setup_controller.rb +60 -0
  25. data/app/controllers/rivet_cms/trash_controller.rb +68 -0
  26. data/app/controllers/rivet_cms/users_controller.rb +117 -0
  27. data/app/helpers/rivet_cms/application_helper.rb +13 -3
  28. data/app/helpers/rivet_cms/components_helper.rb +4 -0
  29. data/app/helpers/rivet_cms/content_types_helper.rb +4 -0
  30. data/app/helpers/rivet_cms/dashboard_helper.rb +4 -0
  31. data/app/jobs/rivet_cms/webhook_delivery_job.rb +35 -0
  32. data/app/models/concerns/rivet_cms/has_fields.rb +31 -0
  33. data/app/models/concerns/rivet_cms/organization_scoped.rb +17 -0
  34. data/app/models/concerns/rivet_cms/revision_owned.rb +36 -0
  35. data/app/models/concerns/rivet_cms/sluggable.rb +38 -0
  36. data/app/models/concerns/rivet_cms/soft_deletable.rb +42 -0
  37. data/app/models/concerns/rivet_cms/typed_value.rb +51 -0
  38. data/app/models/rivet_cms/api_token.rb +64 -0
  39. data/app/models/rivet_cms/category.rb +20 -0
  40. data/app/models/rivet_cms/component.rb +10 -0
  41. data/app/models/rivet_cms/component_instance.rb +27 -0
  42. data/app/models/rivet_cms/content_type.rb +36 -23
  43. data/app/models/rivet_cms/content_value.rb +19 -0
  44. data/app/models/rivet_cms/current.rb +6 -0
  45. data/app/models/rivet_cms/document.rb +71 -0
  46. data/app/models/rivet_cms/document_revision.rb +128 -0
  47. data/app/models/rivet_cms/entry.rb +73 -0
  48. data/app/models/rivet_cms/entry_collection.rb +41 -0
  49. data/app/models/rivet_cms/field.rb +207 -61
  50. data/app/models/rivet_cms/media_asset.rb +109 -0
  51. data/app/models/rivet_cms/organization.rb +46 -0
  52. data/app/models/rivet_cms/relation.rb +23 -0
  53. data/app/models/rivet_cms/user.rb +61 -0
  54. data/app/serializers/rivet_cms/revision_preloader.rb +146 -0
  55. data/app/serializers/rivet_cms/revision_serializer.rb +123 -0
  56. data/app/services/rivet_cms/content_query.rb +158 -0
  57. data/app/services/rivet_cms/content_validator.rb +150 -0
  58. data/app/services/rivet_cms/draft_writer.rb +74 -0
  59. data/app/services/rivet_cms/open_api_generator.rb +173 -221
  60. data/app/services/rivet_cms/revision_pruner.rb +64 -0
  61. data/app/services/rivet_cms/webhooks.rb +61 -0
  62. data/app/views/layouts/rivet_cms/application.html.erb +35 -42
  63. data/config/routes.rb +68 -45
  64. data/db/migrate/20251119193607_create_rivet_cms_organizations.rb +17 -0
  65. data/db/migrate/20251120050818_create_rivet_cms_content_types.rb +14 -0
  66. data/db/migrate/20251121020625_create_rivet_cms_components.rb +17 -0
  67. data/db/migrate/20251121040115_create_rivet_cms_categories.rb +17 -0
  68. data/db/migrate/20260119185946_create_content_system_tables.rb +97 -0
  69. data/db/migrate/20260722000001_create_rivet_cms_media_assets.rb +15 -0
  70. data/db/migrate/20260722000002_create_rivet_cms_api_tokens.rb +16 -0
  71. data/db/migrate/20260806000001_add_title_and_alt_to_rivet_cms_media_assets.rb +7 -0
  72. data/db/migrate/20260806000002_add_deleted_at_to_rivet_cms_content_types.rb +6 -0
  73. data/db/migrate/20260807000001_add_deleted_at_to_rivet_cms_documents.rb +6 -0
  74. data/db/migrate/20260808000001_create_rivet_cms_users.rb +15 -0
  75. data/db/seeds/README.md +70 -0
  76. data/db/seeds/templates/blog.rb +39 -0
  77. data/db/seeds/templates/events.rb +12 -0
  78. data/db/seeds/templates/faq.rb +9 -0
  79. data/db/seeds/templates/pages.rb +35 -0
  80. data/db/seeds/templates/site_settings.rb +22 -0
  81. data/db/seeds/templates/team.rb +11 -0
  82. data/db/seeds/templates/testimonials.rb +11 -0
  83. data/lib/generators/rivet_cms/install/install_generator.rb +13 -0
  84. data/lib/generators/rivet_cms/install/templates/initializer.rb +77 -0
  85. data/lib/rivet_cms/access_check.rb +12 -0
  86. data/lib/rivet_cms/audit.rb +43 -0
  87. data/lib/rivet_cms/engine.rb +28 -22
  88. data/lib/rivet_cms/hooks.rb +106 -0
  89. data/lib/rivet_cms/navigation.rb +111 -0
  90. data/lib/rivet_cms/safe_pattern.rb +40 -0
  91. data/lib/rivet_cms/seeds.rb +264 -0
  92. data/lib/rivet_cms/version.rb +1 -1
  93. data/lib/rivet_cms.rb +289 -32
  94. data/lib/tasks/rivet_cms_tasks.rake +18 -4
  95. metadata +138 -98
  96. data/MIT-LICENSE +0 -20
  97. data/app/assets/builds/rivet_cms.js.map +0 -7
  98. data/app/assets/stylesheets/rivet_cms/brand_colors.css +0 -168
  99. data/app/controllers/rivet_cms/api/docs_controller.rb +0 -38
  100. data/app/helpers/rivet_cms/brand_color_helper.rb +0 -71
  101. data/app/helpers/rivet_cms/flash_helper.rb +0 -37
  102. data/app/helpers/rivet_cms/sign_out_helper.rb +0 -11
  103. data/app/javascript/controllers/content_type_form_controller.js +0 -53
  104. data/app/javascript/controllers/field_layout_controller.js +0 -709
  105. data/app/javascript/rivet_cms.js +0 -29
  106. data/app/models/rivet_cms/content.rb +0 -4
  107. data/app/models/rivet_cms/field_values/base.rb +0 -11
  108. data/app/models/rivet_cms/field_values/boolean.rb +0 -4
  109. data/app/models/rivet_cms/field_values/integer.rb +0 -4
  110. data/app/models/rivet_cms/field_values/string.rb +0 -4
  111. data/app/models/rivet_cms/field_values/text.rb +0 -4
  112. data/app/views/rivet_cms/api/docs/show.html.erb +0 -47
  113. data/app/views/rivet_cms/content_types/_form.html.erb +0 -98
  114. data/app/views/rivet_cms/content_types/edit.html.erb +0 -27
  115. data/app/views/rivet_cms/content_types/index.html.erb +0 -151
  116. data/app/views/rivet_cms/content_types/new.html.erb +0 -19
  117. data/app/views/rivet_cms/content_types/show.html.erb +0 -147
  118. data/app/views/rivet_cms/dashboard/index.html.erb +0 -263
  119. data/app/views/rivet_cms/fields/_form.html.erb +0 -111
  120. data/app/views/rivet_cms/fields/edit.html.erb +0 -25
  121. data/app/views/rivet_cms/fields/index.html.erb +0 -126
  122. data/app/views/rivet_cms/fields/new.html.erb +0 -25
  123. data/app/views/rivet_cms/shared/_navigation.html.erb +0 -153
  124. data/config/i18n-tasks.yml +0 -178
  125. data/config/locales/en.yml +0 -14
  126. data/db/migrate/20250317194359_create_core_tables.rb +0 -90
  127. data/lib/rivet_cms/routes.rb +0 -49
data/COPYING.LESSER ADDED
@@ -0,0 +1,165 @@
1
+ GNU LESSER GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+
9
+ This version of the GNU Lesser General Public License incorporates
10
+ the terms and conditions of version 3 of the GNU General Public
11
+ License, supplemented by the additional permissions listed below.
12
+
13
+ 0. Additional Definitions.
14
+
15
+ As used herein, "this License" refers to version 3 of the GNU Lesser
16
+ General Public License, and the "GNU GPL" refers to version 3 of the GNU
17
+ General Public License.
18
+
19
+ "The Library" refers to a covered work governed by this License,
20
+ other than an Application or a Combined Work as defined below.
21
+
22
+ An "Application" is any work that makes use of an interface provided
23
+ by the Library, but which is not otherwise based on the Library.
24
+ Defining a subclass of a class defined by the Library is deemed a mode
25
+ of using an interface provided by the Library.
26
+
27
+ A "Combined Work" is a work produced by combining or linking an
28
+ Application with the Library. The particular version of the Library
29
+ with which the Combined Work was made is also called the "Linked
30
+ Version".
31
+
32
+ The "Minimal Corresponding Source" for a Combined Work means the
33
+ Corresponding Source for the Combined Work, excluding any source code
34
+ for portions of the Combined Work that, considered in isolation, are
35
+ based on the Application, and not on the Linked Version.
36
+
37
+ The "Corresponding Application Code" for a Combined Work means the
38
+ object code and/or source code for the Application, including any data
39
+ and utility programs needed for reproducing the Combined Work from the
40
+ Application, but excluding the System Libraries of the Combined Work.
41
+
42
+ 1. Exception to Section 3 of the GNU GPL.
43
+
44
+ You may convey a covered work under sections 3 and 4 of this License
45
+ without being bound by section 3 of the GNU GPL.
46
+
47
+ 2. Conveying Modified Versions.
48
+
49
+ If you modify a copy of the Library, and, in your modifications, a
50
+ facility refers to a function or data to be supplied by an Application
51
+ that uses the facility (other than as an argument passed when the
52
+ facility is invoked), then you may convey a copy of the modified
53
+ version:
54
+
55
+ a) under this License, provided that you make a good faith effort to
56
+ ensure that, in the event an Application does not supply the
57
+ function or data, the facility still operates, and performs
58
+ whatever part of its purpose remains meaningful, or
59
+
60
+ b) under the GNU GPL, with none of the additional permissions of
61
+ this License applicable to that copy.
62
+
63
+ 3. Object Code Incorporating Material from Library Header Files.
64
+
65
+ The object code form of an Application may incorporate material from
66
+ a header file that is part of the Library. You may convey such object
67
+ code under terms of your choice, provided that, if the incorporated
68
+ material is not limited to numerical parameters, data structure
69
+ layouts and accessors, or small macros, inline functions and templates
70
+ (ten or fewer lines in length), you do both of the following:
71
+
72
+ a) Give prominent notice with each copy of the object code that the
73
+ Library is used in it and that the Library and its use are
74
+ covered by this License.
75
+
76
+ b) Accompany the object code with a copy of the GNU GPL and this license
77
+ document.
78
+
79
+ 4. Combined Works.
80
+
81
+ You may convey a Combined Work under terms of your choice that,
82
+ taken together, effectively do not restrict modification of the
83
+ portions of the Library contained in the Combined Work and reverse
84
+ engineering for debugging such modifications, if you also do each of
85
+ the following:
86
+
87
+ a) Give prominent notice with each copy of the Combined Work that
88
+ the Library is used in it and that the Library and its use are
89
+ covered by this License.
90
+
91
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
92
+ document.
93
+
94
+ c) For a Combined Work that displays copyright notices during
95
+ execution, include the copyright notice for the Library among
96
+ these notices, as well as a reference directing the user to the
97
+ copies of the GNU GPL and this license document.
98
+
99
+ d) Do one of the following:
100
+
101
+ 0) Convey the Minimal Corresponding Source under the terms of this
102
+ License, and the Corresponding Application Code in a form
103
+ suitable for, and under terms that permit, the user to
104
+ recombine or relink the Application with a modified version of
105
+ the Linked Version to produce a modified Combined Work, in the
106
+ manner specified by section 6 of the GNU GPL for conveying
107
+ Corresponding Source.
108
+
109
+ 1) Use a suitable shared library mechanism for linking with the
110
+ Library. A suitable mechanism is one that (a) uses at run time
111
+ a copy of the Library already present on the user's computer
112
+ system, and (b) will operate properly with a modified version
113
+ of the Library that is interface-compatible with the Linked
114
+ Version.
115
+
116
+ e) Provide Installation Information, but only if you would otherwise
117
+ be required to provide such information under section 6 of the
118
+ GNU GPL, and only to the extent that such information is
119
+ necessary to install and execute a modified version of the
120
+ Combined Work produced by recombining or relinking the
121
+ Application with a modified version of the Linked Version. (If
122
+ you use option 4d0, the Installation Information must accompany
123
+ the Minimal Corresponding Source and Corresponding Application
124
+ Code. If you use option 4d1, you must provide the Installation
125
+ Information in the manner specified by section 6 of the GNU GPL
126
+ for conveying Corresponding Source.)
127
+
128
+ 5. Combined Libraries.
129
+
130
+ You may place library facilities that are a work based on the
131
+ Library side by side in a single library together with other library
132
+ facilities that are not Applications and are not covered by this
133
+ License, and convey such a combined library under terms of your
134
+ choice, if you do both of the following:
135
+
136
+ a) Accompany the combined library with a copy of the same work based
137
+ on the Library, uncombined with any other library facilities,
138
+ conveyed under the terms of this License.
139
+
140
+ b) Give prominent notice with the combined library that part of it
141
+ is a work based on the Library, and explaining where to find the
142
+ accompanying uncombined form of the same work.
143
+
144
+ 6. Revised Versions of the GNU Lesser General Public License.
145
+
146
+ The Free Software Foundation may publish revised and/or new versions
147
+ of the GNU Lesser General Public License from time to time. Such new
148
+ versions will be similar in spirit to the present version, but may
149
+ differ in detail to address new problems or concerns.
150
+
151
+ Each version is given a distinguishing version number. If the
152
+ Library as you received it specifies that a certain numbered version
153
+ of the GNU Lesser General Public License "or any later version"
154
+ applies to it, you have the option of following the terms and
155
+ conditions either of that published version or of any later version
156
+ published by the Free Software Foundation. If the Library as you
157
+ received it does not specify a version number of the GNU Lesser
158
+ General Public License, you may choose any version of the GNU Lesser
159
+ General Public License ever published by the Free Software Foundation.
160
+
161
+ If the Library as you received it specifies that a proxy can decide
162
+ whether future versions of the GNU Lesser General Public License shall
163
+ apply, that proxy's public statement of acceptance of any version is
164
+ permanent authorization for you to choose that version for the
165
+ Library.
data/README.md CHANGED
@@ -1,10 +1,12 @@
1
1
  # RivetCms
2
- Short description and motivation.
3
2
 
4
- ## Usage
5
- How to use my plugin.
3
+ RivetCms is a headless CMS Rails engine, similar to Strapi. The admin UI is built
4
+ with [Inertia.js](https://inertiajs.com) and React, and ships as a precompiled,
5
+ self-contained bundle — host applications do **not** need Node, Yarn, or any
6
+ JavaScript build step.
6
7
 
7
8
  ## Installation
9
+
8
10
  Add this line to your application's Gemfile:
9
11
 
10
12
  ```ruby
@@ -12,23 +14,184 @@ gem "rivet_cms"
12
14
  ```
13
15
 
14
16
  And then execute:
17
+
15
18
  ```bash
16
19
  $ bundle
17
20
  ```
18
21
 
19
- Or install it yourself as:
22
+ Mount the engine in `config/routes.rb`:
23
+
24
+ ```ruby
25
+ mount RivetCms::Engine => "/cms"
26
+ ```
27
+
28
+ The media library uses Active Storage. If your app doesn't have it yet,
29
+ install it first:
30
+
31
+ ```bash
32
+ $ bin/rails active_storage:install
33
+ ```
34
+
35
+ Run the migrations (the engine appends its own automatically, alongside
36
+ Active Storage's):
37
+
38
+ ```bash
39
+ $ bin/rails db:migrate
40
+ ```
41
+
42
+ `rivet_cms:install:migrations` is also available if you'd rather copy the
43
+ engine's migrations into your app's `db/migrate` than have them run from the
44
+ gem; upgrading the gem then means re-running it to pull new migrations.
45
+
46
+ Visit `/cms` and create your admin account; that's it. The admin UI's
47
+ JavaScript and CSS are precompiled into the gem (`app/assets/builds/`) and
48
+ served through the asset pipeline (Propshaft or Sprockets), so no frontend
49
+ tooling is required in the host app.
50
+
51
+ ## Authentication
52
+
53
+ Out of the box RivetCMS handles sign-in itself: the first visit creates the
54
+ first admin account, and a Users page invites more. CE has no roles, so every
55
+ signed-in user can do everything; role and record-scoped permissions are a
56
+ RivetCMS Pro feature. New users are invited with a copyable sign-in link
57
+ (signed, expires in 3 days, dies once a password is set), so no mail delivery
58
+ is required. There is no self-registration, and users are deactivated rather
59
+ than deleted.
60
+
61
+ Apps with their own authentication plug it in instead, which disables all of
62
+ the above (no engine login routes, no Users page; manage people in your own
63
+ admin):
64
+
65
+ ```ruby
66
+ RivetCms.configure do |config|
67
+ config.authenticate = ->(controller) { controller.user_signed_in? }
68
+ config.current_user = ->(controller) { controller.current_user }
69
+ config.login_path = "/login"
70
+ config.logout_path = "/logout"
71
+ end
72
+ ```
73
+
74
+ ## Starter content types
75
+
76
+ RivetCMS ships content-type templates (blog, pages, events, FAQ, team,
77
+ testimonials, site settings) so a fresh install isn't a blank slate:
78
+
79
+ ```bash
80
+ $ bin/rails rivet_cms:templates # list available templates
81
+ $ bin/rails rivet_cms:seed # load all of them
82
+ $ bin/rails rivet_cms:seed TEMPLATES=blog,pages # load a subset
83
+ $ bin/rails rivet_cms:seed ORG=example.com # into a specific org, by domain
84
+ ```
85
+
86
+ Templates are a starting point, not a fixture: they create content types,
87
+ fields, and components you then edit freely. Loading is idempotent, re-running
88
+ updates the same records by slug rather than duplicating them.
89
+
90
+ ## Media processing (optional system dependencies)
91
+
92
+ The media library generates thumbnails through Active Storage. What renders
93
+ depends on which system binaries the host has installed; everything degrades
94
+ gracefully to a file-type icon when a binary is missing:
95
+
96
+ | Binary | Install (Debian/Ubuntu) | Install (macOS) | Enables |
97
+ |---|---|---|---|
98
+ | libvips (recommended) | `apt install libvips` | `brew install vips` | Image thumbnails (resized variants) |
99
+ | poppler | `apt install poppler-utils` | `brew install poppler` | PDF thumbnails (first page) |
100
+ | ffmpeg | `apt install ffmpeg` | `brew install ffmpeg` | Video thumbnails (first frame) |
101
+
102
+ None are hard dependencies: uploads, storage, and delivery work without them.
103
+ Without poppler or ffmpeg, PDFs and videos show a type icon instead of a
104
+ preview. libvips is the one you really want: without it image thumbnail
105
+ requests fail and grid cells stay on their neutral placeholder (full-size
106
+ originals still serve fine everywhere else). Thumbnails are processed lazily
107
+ on first request and cached by Active Storage.
108
+
109
+ ## Reading content from Ruby
110
+
111
+ Host apps can read CMS content directly — no HTTP round-trip — with the same
112
+ semantics and options as the delivery API (published-only lists, draft-leak
113
+ rules, constant-query preloading):
114
+
115
+ ```ruby
116
+ # Lists: sort, date-range filters, pagination, populate, sparse fields
117
+ posts = RivetCms.entries("posts", sort: "-published_at", page: 1, per_page: 10)
118
+ posts = RivetCms.entries("posts", populate: %w[author categories]) # or populate: :all
119
+ events = RivetCms.entries("events", filters: { "starts_at" => { gte: Date.today } })
120
+
121
+ # Single entries by slug (nil when missing or unpublished)
122
+ post = RivetCms.entry("posts", "hello-world", populate: :all)
123
+ post = RivetCms.entry("posts", "hello-world", preview: true) # draft when present
124
+
125
+ # Single-type content
126
+ settings = RivetCms.single("site-settings")
127
+
128
+ # Entries expose field values as methods, [] access, or the raw hash
129
+ post.title # data access (post[:title] and post.data also work)
130
+ post.author.name # populated references are nested entries
131
+ post.to_h # same shape as the API JSON
132
+ posts.total_pages # lists carry pagination numbers
133
+ ```
134
+
135
+ The organization defaults to `RivetCms::Current.organization` (or the default
136
+ organization); pass `organization:` explicitly in jobs and scripts. Unknown
137
+ option values — sort/filter/populate/fields keys — raise
138
+ `RivetCms::ContentQuery::Error`, mirroring the API's 400s.
139
+
140
+ ## Deleting content
141
+
142
+ Deleting is recoverable by default. Removing a content type or an entry moves
143
+ it to a trash: it disappears from the admin and stops being served by the
144
+ delivery API, but every revision and value is kept, and restoring brings it
145
+ all back. Both trashes are reachable from their list pages.
146
+
147
+ Permanent deletion lives only inside the trash, so removing and destroying are
148
+ always two deliberate steps. Purging a content type additionally requires
149
+ typing its name, since it destroys every entry of that type; purging a single
150
+ entry asks for a plain confirmation naming it.
151
+
152
+ ```ruby
153
+ # Restoring is also available from the console
154
+ RivetCms::ContentType.with_discarded.find_by(slug: "articles").undiscard!
155
+ RivetCms::Document.with_discarded.find_by(slug: "hello-world").undiscard!
156
+ ```
157
+
158
+ A trashed type or entry keeps its slug reserved, so restoring can never
159
+ collide with something created in the meantime.
160
+
161
+ ## Development
162
+
163
+ The frontend lives in `app/javascript` (React + Inertia pages) and is bundled
164
+ with esbuild; styles are Tailwind CSS 4 + daisyUI. To work on the engine:
165
+
20
166
  ```bash
21
- $ gem install rivet_cms
167
+ $ yarn install
168
+ $ bin/dev # runs the dummy app plus JS/CSS watchers
169
+ ```
170
+
171
+ Rebuild the production bundles (committed to the repo so the gem stays
172
+ self-contained):
173
+
174
+ ```bash
175
+ $ yarn build && yarn build:css
176
+ ```
177
+
178
+ Run the test suite:
179
+
180
+ ```bash
181
+ $ bundle exec rspec
22
182
  ```
23
183
 
24
184
  ## Contributing
185
+
25
186
  Contribution directions go here.
26
187
 
27
188
  ## License
28
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
29
-
30
- ## Acknowledgments
31
189
 
32
- This project includes code adapted from or inspired by:
190
+ RivetCMS is licensed under the GNU Lesser General Public License v3.0 or
191
+ later (LGPL-3.0-or-later). The full text is in [`COPYING.LESSER`](COPYING.LESSER)
192
+ (the additional permissions) and [`COPYING`](COPYING) (the GPLv3 it builds on).
33
193
 
34
- - [Spree Commerce](https://github.com/spree/spree) - Route handling pattern for extensible engines (MIT License)
194
+ In short: you can use RivetCMS in your own application, including a closed-
195
+ source or commercial one, without that application becoming subject to the
196
+ LGPL. If you modify RivetCMS itself and distribute that modified version,
197
+ those modifications must be shared under the same license.