@krantho/next 0.0.0-stage → 1.0.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 (3) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +57 -2
  3. package/package.json +21 -3
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Descoped
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,58 @@
1
- # Temporary Holding Version
1
+ # @krantho/next
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ One-install convenience bundle for building a krantho site with **Next.js**.
4
+
5
+ ```bash
6
+ pnpm add @krantho/next
7
+ ```
8
+
9
+ That single install pulls in everything a typical Next.js krantho project needs:
10
+
11
+ | Bundled package | Role |
12
+ |-----------------|------|
13
+ | `@krantho/server-next` | Next.js App Router adapter (`createApiRouteHandlers`, Studio route handler) |
14
+ | `@krantho/ui-react` | React content components + server helpers |
15
+ | `@krantho/studio` | Studio SPA (served at `/studio`) |
16
+ | `@krantho/media-local` | Local disk file store for media (`media.provider: 'local'`) |
17
+ | `@krantho/seo` | Schema.org archetypes, JSON-LD, rich result tooling |
18
+
19
+ The content engine, schema system, API, and SQLite/filesystem persistence come in
20
+ transitively through `@krantho/server-next`.
21
+
22
+ This is a **dependency-only** package — it has no runtime code of its own. Import
23
+ APIs from the real packages:
24
+
25
+ ```ts
26
+ import { createApiRouteHandlers } from '@krantho/next/server-next'
27
+ ```
28
+
29
+ is **not** how it works. Import from the underlying packages directly:
30
+
31
+ ```ts
32
+ import { createApiRouteHandlers } from '@krantho/server-next'
33
+ import { CMSTextServer, resolveSeoContent } from '@krantho/ui-react/server'
34
+ import { composeFromConfig } from '@krantho/seo'
35
+ ```
36
+
37
+ Under a strict, non-hoisted `node_modules` layout (pnpm's default) a transitive
38
+ dependency cannot be imported by name. List the packages your code imports —
39
+ typically `@krantho/config`, `@krantho/schema` and `@krantho/server-next` — as direct
40
+ dependencies too.
41
+
42
+ ## SEO is included but opt-in
43
+
44
+ `@krantho/seo` is installed but only activated when `krantho.config.ts` carries a
45
+ `seo` block. Zero overhead if unused.
46
+
47
+ ## Postgres
48
+
49
+ The default persistence is SQLite. For Postgres, add the adapter and driver:
50
+
51
+ ```bash
52
+ pnpm add @krantho/next @krantho/persistence-postgres postgres
53
+ ```
54
+
55
+ ## Prefer modular installs?
56
+
57
+ The bundle exists for a fast start. Power users can install the individual
58
+ packages (`@krantho/server-next`, `@krantho/ui-react`, …) and swap any piece.
package/package.json CHANGED
@@ -1,6 +1,24 @@
1
1
  {
2
2
  "name": "@krantho/next",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "1.0.1",
4
+ "description": "One-install krantho bundle for Next.js — server adapter, React UI, Studio, media, and SEO.",
5
+ "license": "MIT",
6
+ "homepage": "https://krantho.com",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/descoped/krantho.git",
10
+ "directory": "packages/next"
11
+ },
12
+ "bugs": {
13
+ "url": "https://github.com/descoped/krantho/issues"
14
+ },
15
+ "author": "oranheim",
16
+ "type": "module",
17
+ "dependencies": {
18
+ "@krantho/server-next": "1.0.1",
19
+ "@krantho/media-local": "1.0.1",
20
+ "@krantho/studio": "1.0.1",
21
+ "@krantho/seo": "1.0.1",
22
+ "@krantho/ui-react": "1.0.1"
23
+ }
6
24
  }