@kdrgny/justjson 1.0.1 → 1.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.
- package/README.md +7 -3
- package/dist/cli.js +573 -14
- package/dist/editor/assets/index-BoAqd15W.js +612 -0
- package/dist/editor/assets/index-CP_v5575.css +1 -0
- package/dist/editor/assets/public-sans-latin-ext-wght-normal-MQgHevqp.woff2 +0 -0
- package/dist/editor/assets/public-sans-latin-wght-normal-DdeTHZLK.woff2 +0 -0
- package/dist/editor/assets/public-sans-vietnamese-wght-normal-CtlIRbEm.woff2 +0 -0
- package/dist/editor/assets/space-mono-latin-400-normal-Rg4St2Dn.woff2 +0 -0
- package/dist/editor/assets/space-mono-latin-400-normal-_3DlpgIW.woff +0 -0
- package/dist/editor/assets/space-mono-latin-700-normal-D7A851RN.woff +0 -0
- package/dist/editor/assets/space-mono-latin-700-normal-mWgeinG7.woff2 +0 -0
- package/dist/editor/assets/space-mono-latin-ext-400-normal-D4cJI_B-.woff +0 -0
- package/dist/editor/assets/space-mono-latin-ext-400-normal-DTLbW2xa.woff2 +0 -0
- package/dist/editor/assets/space-mono-latin-ext-700-normal-B2s3bDs2.woff2 +0 -0
- package/dist/editor/assets/space-mono-latin-ext-700-normal-B_E7P90g.woff +0 -0
- package/dist/editor/assets/space-mono-vietnamese-400-normal-B0PMp_xB.woff +0 -0
- package/dist/editor/assets/space-mono-vietnamese-400-normal-BNOj0Qhp.woff2 +0 -0
- package/dist/editor/assets/space-mono-vietnamese-700-normal-D-KrLuLr.woff +0 -0
- package/dist/editor/assets/space-mono-vietnamese-700-normal-DWQgDHuA.woff2 +0 -0
- package/dist/editor/index.html +2 -2
- package/package.json +3 -14
- package/dist/editor/assets/index-BN_YWkOH.css +0 -1
- package/dist/editor/assets/index-DsfRA4dz.js +0 -400
package/README.md
CHANGED
|
@@ -22,22 +22,26 @@ It runs entirely on your machine. Nothing is uploaded anywhere; your content is
|
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
24
|
cd my-project/
|
|
25
|
-
npx @kdrgny/justjson init # start from a template (blog, cv) — or scratch
|
|
26
25
|
npx @kdrgny/justjson # opens the editor in your browser
|
|
27
26
|
```
|
|
28
27
|
|
|
28
|
+
On an empty folder the editor greets you with a picker: start from a **template**, from **scratch**, or **import your own JSON** — an existing `_schema.json`, or plain content (say, an export from another tool) whose structure JustJSON figures out for you.
|
|
29
|
+
|
|
29
30
|
Design your schema, enter content, upload images. Everything is written to `content/*.json` in your folder. Commit it, deploy it, import it in your build — your flow.
|
|
30
31
|
|
|
31
32
|
## What you get
|
|
32
33
|
|
|
33
34
|
| | |
|
|
34
35
|
|---|---|
|
|
36
|
+
| **Start from a template** | Blog, CV, portfolio, docs or changelog — each card previews the collections and fields it creates. |
|
|
37
|
+
| **Bring your own JSON** | Paste any content JSON and JustJSON infers the structure: lists become collections, objects become singletons, HTML becomes rich text. |
|
|
35
38
|
| **Visual schema builder** | Define collections and fields in the UI. Pick a field type from icon cards — no config file to hand-write. |
|
|
36
39
|
| **Searchable content table** | Entries listed by title, slug and date. Search and edit instantly — content, not a pile of slugs. |
|
|
37
40
|
| **Rich-text editor** | Headings, bold, lists, quotes — WYSIWYG, saved to disk as clean, diffable Markdown. |
|
|
38
41
|
| **Image uploads** | Drop an image; it's resized to WebP in the browser and written under `content/media/`. |
|
|
39
42
|
| **Type-safe output** | Generates `types.ts` from your schema, so your content is fully typed in your project. |
|
|
40
|
-
| **
|
|
43
|
+
| **Export any time** | One click downloads schema + content + types as a ZIP. Nothing is ever locked in. |
|
|
44
|
+
| **The endpoint is yours** | Wherever you put the JSON becomes your API — repo raw, jsDelivr, your build. |
|
|
41
45
|
|
|
42
46
|
Field types: `text` · `richtext` · `number` · `boolean` · `date` · `select` · `relation` (multi) · `image`.
|
|
43
47
|
|
|
@@ -46,7 +50,7 @@ Field types: `text` · `richtext` · `number` · `boolean` · `date` · `select`
|
|
|
46
50
|
| Command | What it does |
|
|
47
51
|
|---|---|
|
|
48
52
|
| `npx @kdrgny/justjson` (or `serve`) | Starts the local editor and opens it in your browser |
|
|
49
|
-
| `npx @kdrgny/justjson init [template]` | Scaffolds a schema from a template (`blog`, `cv`) |
|
|
53
|
+
| `npx @kdrgny/justjson init [template]` | Scaffolds a schema from a template (`blog`, `cv`, `portfolio`, `docs`, `changelog`) |
|
|
50
54
|
| `npx @kdrgny/justjson types` | Generates `types.ts` from your schema |
|
|
51
55
|
| `npx @kdrgny/justjson export` | Exports a ZIP snapshot (schema + content + types) |
|
|
52
56
|
|