You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Image renderer: generate SVG and PNG from JSON specs.
7
+
8
+
### New: `@json-render/image` Package
9
+
10
+
Server-side image renderer powered by Satori. Turns the same `{ root, elements }` spec format into SVG or PNG output for OG images, social cards, and banners.
11
+
12
+
-`renderToSvg(spec, options)` — render spec to SVG string
13
+
-`renderToPng(spec, options)` — render spec to PNG buffer (requires `@resvg/resvg-js`)
Copy file name to clipboardExpand all lines: AGENTS.md
+35Lines changed: 35 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,6 +73,41 @@ Do **not** add `--port` flags -- portless handles port assignment automatically.
73
73
- Skills in `skills/*/SKILL.md` (if the package has a corresponding skill)
74
74
-`AGENTS.md` (if workflow or conventions change)
75
75
76
+
## Releases
77
+
78
+
This monorepo uses [Changesets](https://github.com/changesets/changesets) for versioning and publishing.
79
+
80
+
### Fixed version group
81
+
82
+
All public `@json-render/*` packages are in a **fixed** group (see `.changeset/config.json`). A changeset that bumps any one of them bumps all of them to the same version. You only need to list the packages that actually changed in the changeset front matter — the fixed group handles the rest.
83
+
84
+
### Preparing a release
85
+
86
+
When asked to prepare a release (e.g. "prepare v0.12.0"):
87
+
88
+
1.**Create a changeset file** at `.changeset/v0-<N>-release.md` following the existing pattern:
89
+
- YAML front matter listing changed packages with bump type (`minor` for feature releases, `patch` for bug-fix-only releases)
90
+
- A one-line summary, then `### New:` / `### Improved:` / `### Fixed:` sections describing each change
91
+
- Always list `@json-render/core` plus any packages with actual code changes
92
+
2.**Do NOT bump versions** in `package.json` files — CI runs `pnpm ci:version` (which calls `changeset version`) to do that automatically
93
+
3.**Do NOT manually write `CHANGELOG.md`** entries — `changeset version` generates them from the changeset file
94
+
4.**Add new packages to the fixed group** in `.changeset/config.json` if they should be versioned together with the rest
95
+
5.**Fill documentation gaps** — every public package should have:
96
+
- A row in the root `README.md` packages table
97
+
- A renderer section in the root `README.md` (if it's a renderer)
98
+
- An API reference page at `apps/web/app/(main)/docs/api/<name>/page.mdx`
99
+
- An entry in `apps/web/lib/page-titles.ts` and `apps/web/lib/docs-navigation.ts`
100
+
- An entry in the docs-chat system prompt (`apps/web/app/api/docs-chat/route.ts`)
101
+
- A skill at `skills/json-render-<name>/SKILL.md`
102
+
- A `packages/<name>/README.md`
103
+
6.**Run `pnpm type-check`** after all changes to verify nothing is broken
104
+
105
+
### CI scripts
106
+
107
+
-`pnpm changeset` — interactively create a new changeset
0 commit comments