@cocreate/planetscale 1.0.0 → 1.1.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.
@@ -3,7 +3,7 @@ name: Automated Workflow
3
3
  on:
4
4
  push:
5
5
  branches:
6
- - master
6
+ - main
7
7
 
8
8
  jobs:
9
9
  about:
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [1.1.1](https://github.com/CoCreate-app/CoCreate-planetscale/compare/v1.1.0...v1.1.1) (2026-07-19)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * set default branch to main ([45ed417](https://github.com/CoCreate-app/CoCreate-planetscale/commit/45ed41794be1b23b273c1add800a75dd6e88339c))
7
+
8
+ # [1.1.0](https://github.com/CoCreate-app/CoCreate-planetscale/compare/v1.0.0...v1.1.0) (2026-07-19)
9
+
10
+
11
+ ### Features
12
+
13
+ * Update README.md to reflect PlanetScale integration and enhance documentation ([a7ef776](https://github.com/CoCreate-app/CoCreate-planetscale/commit/a7ef776ffeddc9a12dce986edef5219f1a913d0a))
14
+
1
15
  # 1.0.0 (2026-07-18)
2
16
 
3
17
 
package/README.md CHANGED
@@ -1,88 +1,178 @@
1
- # CoCreate-mongodb
1
+ # planetscale
2
2
 
3
- A simple mongodb component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API. Take it for a spin in our [playground!](https://cocreate.app/docs/mongodb)
3
+ A highly efficient, enterprise-grade PlanetScale serverless MySQL database CRUD wrapper and state-routing backend client for the collaborative CoCreate ecosystem. This wrapper maps PlanetScale's branchable, horizontally scalable Vitess-powered SQL capabilities into CoCreate's unified JSON interface.
4
4
 
5
- ![GitHub latest release](https://img.shields.io/github/v/release/CoCreate-app/CoCreate-mongodb?style=flat-square)
6
- ![GitHub](https://img.shields.io/github/license/CoCreate-app/CoCreate-mongodb?style=flat-square)
7
- ![GitHub](https://img.shields.io/static/v1?style=flat-square&label=&message=Hiring&color=blueviolet)
5
+ ## Documentation
8
6
 
9
- ![CoCreate-mongodb](https://cdn.cocreate.app/docs/CoCreate-mongodb.gif)
7
+ For a complete guide and working integration examples, refer to the [CoCreate PlanetScale Documentation](https://www.google.com/search?q=https://cocreatejs.com/docs/planetscale).
10
8
 
11
- ## [Docs & Demo](https://cocreate.app/docs/mongodb)
9
+ ---
12
10
 
13
- For a complete guide and working demo refer to the [doumentation](https://cocreate.app/docs/mongodb)
11
+ ## Table of Contents
14
12
 
15
- ## CDN
13
+ * [The Power of the CoCreate Unified Ecosystem](https://www.google.com/search?q=%23the-power-of-the-cocreate-unified-ecosystem)
14
+ * [Why PlanetScale?](https://www.google.com/search?q=%23why-planetscale)
15
+ * [Installation](https://www.google.com/search?q=%23installation)
16
+ * [Unified JSON Payload Examples](https://www.google.com/search?q=%23unified-json-payload-examples)
17
+ * [Announcements](https://www.google.com/search?q=%23announcements)
18
+ * [Roadmap](https://www.google.com/search?q=%23roadmap)
19
+ * [How to Contribute](https://www.google.com/search?q=%23how-to-contribute)
20
+ * [About](https://www.google.com/search?q=%23about)
16
21
 
17
- ```html
18
- <script src="https://cdn.cocreate.app/mongodb/latest/CoCreate-mongodb.min.js"></script>
19
- ```
22
+ ---
20
23
 
21
- ```html
22
- <script src="https://cdn.cocreate.app/mongodb/latest/CoCreate-mongodb.min.css"></script>
23
- ```
24
+ ## The Power of the CoCreate Unified Ecosystem
24
25
 
25
- ## NPM
26
+ This is not just another database driver. By wrapping PlanetScale into the CoCreate state-routing pipeline, you unlock the full power of a multi-cloud, multi-model data orchestration mesh:
26
27
 
27
- ```shell
28
- $ npm i @cocreate/mongodb
29
- ```
28
+ * **Unified JSON Interface (MongoDB-like Syntax):** You don't need to write complex migration scripts or manually parse relational SQL tabular outputs. CoCreate translates standard NoSQL JSON CRUD operations (such as `object.create` or `object.read`) transparently into highly optimized MySQL queries executed seamlessly over PlanetScale's edge connections.
29
+ * **Parallel Multi-Database Writing:** Write to many target databases simultaneously with a single API call. You can stream transactional data to MongoDB (for instant operational state), vectorize it into Qdrant (for real-time semantic search), and persist it in PlanetScale (for serverless relational scale) in perfect parallel harmony:
30
+
31
+ $$\text{Write Command} \xrightarrow{\text{Parallel Mesh}} \begin{cases} \text{MongoDB} & \text{(ACID Transaction Store)} \\ \text{Qdrant} & \text{(Semantic Vector Search)} \\ \text{PlanetScale} & \text{(Serverless Vitess-MySQL Core)} \end{cases}$$
32
+
33
+ * **Dynamic State-Routing:** Isolate multi-tenant environments effortlessly. The routing mesh automatically injects tenant metadata and organization boundaries, ensuring isolated data processing paths within your multi-tenant PlanetScale setups.
34
+
35
+ ---
36
+
37
+ ## Why PlanetScale?
38
+
39
+ PlanetScale is a serverless database platform powered by Vitess, the open-source database clustering system used by hyperscalers to scale massive MySQL workloads. It reimagines the developer workflow by offering non-blocking schema deployments, safe database branching (similar to Git workflows), and extreme horizontal scaling capabilities without the operational headaches of traditional database re-sharding.
30
40
 
31
- ## yarn
41
+ By routing cloud-native enterprise application states, transactional logs, and resilient multi-tenant records to PlanetScale via this wrapper, you leverage elastic, serverless relational efficiency without sacrificing zero-friction JSON pipeline processing.
42
+
43
+ ---
44
+
45
+ ## Installation
46
+
47
+ ### NPM Installation
48
+
49
+ ```bash
50
+ npm i @cocreate/planetscale
32
51
 
33
- ```shell
34
- $ yarn install @cocreate/mongodb
35
52
  ```
36
53
 
37
- # Table of Contents
54
+ ### Yarn Installation
38
55
 
39
- - [Table of Contents](#table-of-contents)
40
- - [Announcements](#announcements)
41
- - [Roadmap](#roadmap)
42
- - [How to Contribute](#how-to-contribute)
43
- - [About](#about)
44
- - [License](#license)
56
+ ```bash
57
+ yarn add @cocreate/planetscale
45
58
 
46
- <a name="announcements"></a>
59
+ ```
47
60
 
48
- # Announcements
61
+ ---
62
+
63
+ ## Unified JSON Payload Examples
64
+
65
+ Here are the complete, real-world JSON objects representing raw payloads routed through the CoCreate system. By declaring an array in the `storage` key, CoCreate fires the write operations to all specified backends simultaneously in parallel.
66
+
67
+ ### 1. Writing a Full Transaction Object (`object.create`)
68
+
69
+ When this operational payload is sent, CoCreate registers it, processes the nested JSON fields, and automatically warehouses it across all listed parallel storage platforms.
70
+
71
+ ```json
72
+ {
73
+ "method": "object.create",
74
+ "storage": ["planetscale", "mongodb", "qdrant"], // Array of storages to store in parallel!
75
+ "database": "sales_analytics",
76
+ "array": "order_events",
77
+ "object": {
78
+ "_id": "order_77c8f2a9_3b01",
79
+ "customer": {
80
+ "id": "cust_88301",
81
+ "email": "customer@example.com",
82
+ "region": "North America",
83
+ "acquisition_channel": "Google Search"
84
+ },
85
+ "transaction": {
86
+ "payment_method": "Credit Card",
87
+ "currency": "USD",
88
+ "subtotal": 249.99,
89
+ "discount": 15.00,
90
+ "tax": 18.80,
91
+ "total": 253.79
92
+ },
93
+ "items": [
94
+ {
95
+ "product_id": "prod_head_009",
96
+ "name": "Wireless Noise-Cancelling Headphones",
97
+ "category": "Electronics",
98
+ "quantity": 1,
99
+ "unit_price": 199.99
100
+ },
101
+ {
102
+ "product_id": "prod_stand_012",
103
+ "name": "Aluminum Headphone Stand",
104
+ "category": "Accessories",
105
+ "quantity": 2,
106
+ "unit_price": 25.00
107
+ }
108
+ ],
109
+ "shipping": {
110
+ "carrier": "FedEx",
111
+ "service": "2-Day Air",
112
+ "estimated_delivery": "2026-07-20T12:00:00.000Z"
113
+ }
114
+ },
115
+ "organization_id": "org_enterprise_99x",
116
+ "user_id": "usr_sales_runner_402",
117
+ "timeStamp": "2026-07-18T18:40:43.000Z"
118
+ }
49
119
 
50
- All updates to this library are documented in our [CHANGELOG](https://github.com/CoCreate-app/CoCreate-mongodb/blob/master/CHANGELOG.md) and [releases](https://github.com/CoCreate-app/CoCreate-mongodb/releases). You may also subscribe to email for releases and breaking changes.
120
+ ```
51
121
 
52
- <a name="roadmap"></a>
122
+ ### 2. Reading and Filtering Warehoused Data (`object.read`)
123
+
124
+ Querying targets a single database engine via a string filter syntax. The query below retrieves high-value orders handled by a specific shipping carrier from PlanetScale, sorting them by total sale volume.
125
+
126
+ ```json
127
+ {
128
+ "method": "object.read",
129
+ "storage": "planetscale",
130
+ "database": "sales_analytics",
131
+ "array": "order_events",
132
+ "$filter": {
133
+ "query": {
134
+ "transaction.total": { "$gte": 100.00 },
135
+ "shipping.carrier": "FedEx"
136
+ },
137
+ "sort": [
138
+ { "key": "transaction.total", "direction": "desc" }
139
+ ],
140
+ "limit": 50,
141
+ "index": 0
142
+ },
143
+ "organization_id": "org_enterprise_99x"
144
+ }
53
145
 
54
- # Roadmap
146
+ ```
55
147
 
56
- If you are interested in the future direction of this project, please take a look at our open [issues](https://github.com/CoCreate-app/CoCreate-mongodb/issues) and [pull requests](https://github.com/CoCreate-app/CoCreate-mongodb/pulls). We would love to hear your feedback.
148
+ ---
57
149
 
58
- <a name="about"></a>
150
+ ## Announcements
59
151
 
60
- # About
152
+ All updates to this library are documented in our `CHANGELOG` and releases. You may also subscribe to email for releases and breaking changes.
61
153
 
62
- CoCreate-mongodb is guided and supported by the CoCreate Developer Experience Team.
154
+ ---
63
155
 
64
- Please Email the Developer Experience Team [here](mailto:develop@cocreate.app) in case of any queries.
156
+ ## Roadmap
65
157
 
66
- CoCreate-mongodb is maintained and funded by CoCreate. The names and logos for CoCreate are trademarks of CoCreate, LLC.
158
+ If you are interested in the future direction of this project, please take a look at our open issues and pull requests. We would love to hear your feedback.
67
159
 
68
- <a name="contribute"></a>
160
+ ---
69
161
 
70
- # How to Contribute
162
+ ## How to Contribute
71
163
 
72
- We encourage contribution to our libraries (you might even score some nifty swag), please see our [CONTRIBUTING](https://github.com/CoCreate-app/CoCreate-mongodb/blob/master/CONTRIBUTING.md) guide for details.
164
+ We encourage contribution to our libraries (you might even score some nifty swag), please see our `CONTRIBUTING` guide for details.
73
165
 
74
- We want this library to be community-driven, and CoCreate led. We need your help to realize this goal. To help make sure we are building the right things in the right order, we ask that you create [issues](https://github.com/CoCreate-app/CoCreate-mongodb/issues) and [pull requests](https://github.com/CoCreate-app/CoCreate-mongodb/pulls) or merely upvote or comment on existing issues or pull requests.
166
+ We want this library to be community-driven, and CoCreate led. We need your help to realize this goal. To help make sure we are building the right things in the right order, we ask that you create issues and pull requests or merely upvote or comment on existing issues or pull requests.
75
167
 
76
168
  We appreciate your continued support, thank you!
77
169
 
78
- <a name="license"></a>
79
-
80
- # License
170
+ ---
81
171
 
82
- This software is dual-licensed under the GNU Affero General Public License version 3 (AGPLv3) and a commercial license.
172
+ ## About
83
173
 
84
- - **Open Source Use**: For open-source projects and non-commercial use, this software is available under the AGPLv3. The AGPLv3 allows you to freely use, modify, and distribute this software, provided that all modifications and derivative works are also licensed under the AGPLv3. For the full license text, see the [LICENSE file](https://github.com/CoCreate-app/CoCreate-mongodb/blob/master/LICENSE).
174
+ `CoCreate-planetscale` is guided and supported by the **CoCreate Developer Experience Team**.
85
175
 
86
- - **Commercial Use**: For-profit companies and individuals intending to use this software for commercial purposes must obtain a commercial license. The commercial license is available when you sign up for an API key on our [website](https://cocreate.app). This license permits proprietary use and modification of the software without the copyleft requirements of the AGPLv3. It is ideal for integrating this software into proprietary commercial products and applications.
176
+ > Please Email the Developer Experience Team here in case of any queries.
87
177
 
88
- If you have not purchased a commercial license and intend to use this software for commercial purposes, you are required to sign up for an API key on our website.
178
+ `CoCreate-planetscale` is maintained and funded by CoCreate. The names and logos for CoCreate are trademarks of CoCreate, LLC.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/planetscale",
3
- "version": "1.0.0",
3
+ "version": "1.1.1",
4
4
  "description": "Lightweight, real-time PlanetScale CRUD wrapper and multi-tenant state routing client for the collaborative CoCreate ecosystem.",
5
5
  "keywords": [
6
6
  "planetscale",
package/release.config.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  dryRun: false,
3
- branches: ["master"],
3
+ branches: ["main"],
4
4
  plugins: [
5
5
  "@semantic-release/commit-analyzer",
6
6
  "@semantic-release/release-notes-generator",