@kyro-cms/core 0.1.9 → 0.2.0

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 (2) hide show
  1. package/README.md +6 -1
  2. package/package.json +2 -8
package/README.md CHANGED
@@ -24,6 +24,7 @@ Kyro is built for **Astro** from the ground up. Unlike other CMS solutions that
24
24
  - **Multi-Vendor** - Built-in tenant scoping and row-level access control
25
25
  - **E-Commerce Ready** - Products, orders, customers, inventory, coupons out of the box
26
26
  - **Plugin System** - Extend with SEO, analytics, reviews, and more
27
+ - **Shared Utilities** - Reusable API helpers, i18n, validation via `@kyro-cms/utils`
27
28
  - **Any Styling** - Tailwind, CSS Modules, Styled Components, or plain CSS
28
29
 
29
30
  ---
@@ -189,6 +190,7 @@ const newPost = await client.posts.create.mutate({
189
190
  To support **Astro's islands architecture** and prevent Node.js-only dependencies (like Redis, bcrypt, or database drivers) from crashing your browser bundle, Kyro Core provides two distinct entrypoints:
190
191
 
191
192
  ### 1. `@kyro-cms/core` (Server-Only)
193
+
192
194
  Use this for backend logic, API routes, database configuration, and authentication adapters. This entrypoint includes all Node.js built-ins.
193
195
 
194
196
  ```typescript
@@ -196,6 +198,7 @@ import { createKyro, drizzleAdapter, RedisAuthAdapter } from "@kyro-cms/core";
196
198
  ```
197
199
 
198
200
  ### 2. `@kyro-cms/core/client` (Browser-Safe)
201
+
199
202
  Use this for **Astro components**, React/Vue/Svelte islands, styling, and types. This entrypoint is guaranteed to be free of Node.js dependencies.
200
203
 
201
204
  ```typescript
@@ -433,9 +436,11 @@ await versions.publishVersion({
433
436
  Kyro includes a full admin dashboard:
434
437
 
435
438
  ```bash
436
- npm install @kyro-cms/admin
439
+ npm install @kyro-cms/admin @kyro-cms/utils
437
440
  ```
438
441
 
442
+ The admin uses `@kyro-cms/utils` for API calls, date formatting, and validation.
443
+
439
444
  ```astro
440
445
  ---
441
446
  // admin/index.astro
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kyro-cms/core",
3
- "version": "0.1.9",
3
+ "version": "0.2.0",
4
4
  "description": "Astro-native headless CMS with multi-database adapters, multi-protocol APIs, and multi-vendor support",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -11,12 +11,6 @@
11
11
  "name": "Kyro CMS",
12
12
  "url": "https://kyro.dev"
13
13
  },
14
- "workspaces": [
15
- ".",
16
- "admin",
17
- "packages/utils",
18
- "packages/create-kyro"
19
- ],
20
14
  "main": "./dist/index.js",
21
15
  "module": "./dist/index.js",
22
16
  "types": "./dist/index.d.ts",
@@ -171,4 +165,4 @@
171
165
  "optional": true
172
166
  }
173
167
  }
174
- }
168
+ }