astronaut-cms 0.0.1 → 1.0.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/LICENSE +21 -0
- package/README.md +84 -3
- package/dist/admin/THIRD_PARTY_LICENSES.md +7598 -0
- package/dist/admin/assets/assistant-DkS355co.js +201 -0
- package/dist/admin/assets/badge-BXsOvOPX.js +1 -0
- package/dist/admin/assets/changes-Ba0G_GN1.js +1 -0
- package/dist/admin/assets/client-VKp75fDU.js +5 -0
- package/dist/admin/assets/clsx-DB0hHKMi.js +1 -0
- package/dist/admin/assets/collapsible-B6P_J0Bg.js +1 -0
- package/dist/admin/assets/collapsible-item-UaoJaaPw.js +1 -0
- package/dist/admin/assets/collections._collection-BE1enDCq.js +1 -0
- package/dist/admin/assets/collections._collection._entry-D3UksnCo.js +52 -0
- package/dist/admin/assets/collections._collection.index-BN5d8UIY.js +1 -0
- package/dist/admin/assets/component-lookup-CUCiK8Xh.js +4 -0
- package/dist/admin/assets/config-Pm_BHLNT.js +1 -0
- package/dist/admin/assets/copy-DezZzPMV.js +1 -0
- package/dist/admin/assets/css-BGIxQoYs.js +1 -0
- package/dist/admin/assets/css-DgaLhXQH.js +1 -0
- package/dist/admin/assets/diff-woXpYk--.js +1 -0
- package/dist/admin/assets/dist-DzkcSBZl.js +1 -0
- package/dist/admin/assets/dist-UbA1s2kM.js +1 -0
- package/dist/admin/assets/docx-BctAmX91.js +56 -0
- package/dist/admin/assets/editor-FGqMznBK.js +2 -0
- package/dist/admin/assets/empty-DSBYiI_7.js +1 -0
- package/dist/admin/assets/entry-link-CQLN2Zpf.js +158 -0
- package/dist/admin/assets/error-banner-yskeRXe8.js +159 -0
- package/dist/admin/assets/errors-DkJ5E_ak.js +1 -0
- package/dist/admin/assets/field-BDK5tt3J.js +41 -0
- package/dist/admin/assets/field-schema-CacrjSYw.js +1 -0
- package/dist/admin/assets/file-text-BzBif8ui.js +1 -0
- package/dist/admin/assets/github-dark-C-LZuMrd.js +1 -0
- package/dist/admin/assets/github-light-EUqPIrTm.js +1 -0
- package/dist/admin/assets/highlighted-body-JLMTFACH-CIQujGv2.js +1 -0
- package/dist/admin/assets/html-CvFb5cGI.js +1 -0
- package/dist/admin/assets/javascript-BzbQS41l.js +1 -0
- package/dist/admin/assets/javascript-CpIGwZ_Y.js +1 -0
- package/dist/admin/assets/json-qhed-kSA.js +1 -0
- package/dist/admin/assets/jsx-Bz0zcwM4.js +1 -0
- package/dist/admin/assets/lib-CMURo-7A.js +21 -0
- package/dist/admin/assets/library-Cr3f75Es.js +1 -0
- package/dist/admin/assets/list-skeleton-BdTNfVXs.js +1 -0
- package/dist/admin/assets/markdown-BYOwaDjH.js +1 -0
- package/dist/admin/assets/matchContext-Bq5Es9aD.js +2 -0
- package/dist/admin/assets/media-browser-9-CPTCks.js +1 -0
- package/dist/admin/assets/media._library-BfFaEZLR.js +1 -0
- package/dist/admin/assets/mermaid-WFAXDIZX-CJ3hhA0i.js +1 -0
- package/dist/admin/assets/page-header-B4nvAsVA.js +1 -0
- package/dist/admin/assets/pdf-DgessaF0.js +106 -0
- package/dist/admin/assets/python-gzcpVVnB.js +1 -0
- package/dist/admin/assets/react-kbcsfQYH.js +1 -0
- package/dist/admin/assets/rolldown-runtime-BWaJ3C7D.js +1 -0
- package/dist/admin/assets/routes-CBt04sNR.js +1 -0
- package/dist/admin/assets/routes-D7tEdYGV.js +1 -0
- package/dist/admin/assets/save-actions-Cz0TkpcP.js +32 -0
- package/dist/admin/assets/select-Bv2EoLhN.js +1 -0
- package/dist/admin/assets/separator-DlYj_PoQ.js +3 -0
- package/dist/admin/assets/shell-DBEiq06l.js +1 -0
- package/dist/admin/assets/shellscript-CLZ0U2zV.js +1 -0
- package/dist/admin/assets/skeleton-CKiqTaRh.js +1 -0
- package/dist/admin/assets/sql-CEbI0hMM.js +1 -0
- package/dist/admin/assets/syntax-BAXqRKRO.js +8 -0
- package/dist/admin/assets/toggle-Y2UpJZyU.js +1 -0
- package/dist/admin/assets/toml-BPTmHmyx.js +1 -0
- package/dist/admin/assets/tsx-udAQXfEw.js +1 -0
- package/dist/admin/assets/typescript-bsJCZSQ-.js +1 -0
- package/dist/admin/assets/ui.module.css-WaO_77ml.js +56 -0
- package/dist/admin/assets/use-entries-B2lsaiK9.js +1 -0
- package/dist/admin/assets/useSelector-CWr3iU9K.js +1 -0
- package/dist/admin/assets/yaml-rwi0_p6S.js +1 -0
- package/dist/admin/assets/zwitch-Wwuax-dJ.js +1 -0
- package/dist/admin/bootstrap.d.ts +1 -0
- package/dist/admin/bootstrap.js +1 -0
- package/dist/admin/editor.d.ts +57 -0
- package/dist/admin/editor.js +1 -0
- package/dist/server/assets.d.ts +2 -0
- package/dist/server/assets.js +30 -0
- package/dist/server/chunks/anchors-DuZ1fokt.js +86 -0
- package/dist/server/chunks/auth-DJP9ryVd.js +44 -0
- package/dist/server/chunks/cms-markers-CUqrOnfA.js +78 -0
- package/dist/server/chunks/component-lookup-DAFg_Qg8.js +128 -0
- package/dist/server/chunks/config-WQqG4mNH.d.ts +193 -0
- package/dist/server/chunks/digest-BYzWNJea.js +753 -0
- package/dist/server/chunks/entry-checks-CKMag1G4.js +608 -0
- package/dist/server/chunks/field-schema-CfdN75jT.js +48 -0
- package/dist/server/chunks/http-BnsNh57m.d.ts +35 -0
- package/dist/server/chunks/i18n-BPmx7ESy.d.ts +15 -0
- package/dist/server/chunks/index-CYbkNvu5.d.ts +22 -0
- package/dist/server/chunks/media-BhqUVVYY.js +223 -0
- package/dist/server/chunks/paths-CEW9fvg8.js +17 -0
- package/dist/server/chunks/paths-Dztx2eUw.js +13 -0
- package/dist/server/chunks/types-DOR5XaJO.js +397 -0
- package/dist/server/chunks/types-Dkx4Xovf.d.ts +359 -0
- package/dist/server/chunks/types-DwA-C6Br.d.ts +266 -0
- package/dist/server/chunks/user-config-DoypbpQf.js +283 -0
- package/dist/server/chunks/xml-D8qPILJU.js +81 -0
- package/dist/server/config.d.ts +3 -0
- package/dist/server/config.js +18 -0
- package/dist/server/content.d.ts +48 -0
- package/dist/server/content.js +89 -0
- package/dist/server/endpoint.d.ts +11 -0
- package/dist/server/endpoint.js +2712 -0
- package/dist/server/integration.d.ts +7 -0
- package/dist/server/integration.js +1174 -0
- package/dist/server/internal.d.ts +65 -0
- package/dist/server/internal.js +30 -0
- package/dist/server/server-local.d.ts +453 -0
- package/dist/server/server-local.js +336 -0
- package/dist/styles/THIRD_PARTY_LICENSES.md +193 -0
- package/dist/styles/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2 +0 -0
- package/dist/styles/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2 +0 -0
- package/dist/styles/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2 +0 -0
- package/dist/styles/assets/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
- package/dist/styles/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2 +0 -0
- package/dist/styles/styles.css +3 -0
- package/package.json +151 -5
- package/src/astro/Image.astro +28 -0
- package/src/astro/Video.astro +44 -0
- package/src/astro/admin.astro +137 -0
- package/src/astro/licenses.ts +5 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Mirko Lenz
|
|
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,4 +1,85 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Astronaut CMS
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
A Git-native headless CMS built as an Astro integration.
|
|
4
|
+
It provides a visual admin interface for managing structured content directly in your repository, with no external database and no proprietary backend, just Git.
|
|
5
|
+
|
|
6
|
+
## Features
|
|
7
|
+
|
|
8
|
+
### Zero-Config Setup
|
|
9
|
+
|
|
10
|
+
Add the integration to your Astro config and the admin panel appears at `/admin`.
|
|
11
|
+
Astronaut CMS auto-discovers your content collections, so there is nothing else to configure to get started.
|
|
12
|
+
|
|
13
|
+
### Your Zod Schemas Drive the UI
|
|
14
|
+
|
|
15
|
+
Editor forms are generated directly from the Zod schemas in your `content.config.ts`.
|
|
16
|
+
Your content types, validation, TypeScript types, and editor UI share a single source of truth.
|
|
17
|
+
|
|
18
|
+
### Built Into Astro
|
|
19
|
+
|
|
20
|
+
Astronaut CMS runs inside your Astro project rather than next to it.
|
|
21
|
+
It reads `content.config.ts` as is, including `glob()` and `file()` loaders, `reference()` and `image()` fields, and third-party schemas such as Starlight's.
|
|
22
|
+
Multilingual content follows your `i18n` config, and `base` and `trailingSlash` are honored throughout.
|
|
23
|
+
The admin and its API are injected as on-demand routes served by your SSR adapter, while the rest of the site stays prerendered.
|
|
24
|
+
In `astro dev`, it edits the working tree directly, so local editing needs no OAuth app.
|
|
25
|
+
Collections and MDX components get generated types, and secrets are declared through `astro:env`.
|
|
26
|
+
Media flows through `astro:assets` with ready-made `Image` and `Video` components.
|
|
27
|
+
Builds fail on content the admin could not save, and unreferenced library files are pruned from the output.
|
|
28
|
+
|
|
29
|
+
### Git-Native Storage
|
|
30
|
+
|
|
31
|
+
Every edit becomes a Git commit or pull/merge request.
|
|
32
|
+
You get version history, diffs, branching, and code review for content without any additional tooling.
|
|
33
|
+
No database to provision, no server to run, fully compatible with static builds.
|
|
34
|
+
|
|
35
|
+
### Atomic Batch Publishing
|
|
36
|
+
|
|
37
|
+
Stage changes across multiple collections and entries, then publish everything as a single commit or PR.
|
|
38
|
+
This prevents partial updates and keeps coordinated changes, like a new page with its assets and navigation, consistent.
|
|
39
|
+
|
|
40
|
+
### MDX Block Editor
|
|
41
|
+
|
|
42
|
+
Non-technical users compose pages from text blocks and custom components without writing raw MDX.
|
|
43
|
+
Each component is a form with Zod-validated props defined in `cms.config.ts`, and blocks can be reordered via drag-and-drop.
|
|
44
|
+
|
|
45
|
+
### Live Preview
|
|
46
|
+
|
|
47
|
+
A WYSIWYG editor renders text blocks and custom components as you type, so what you compose closely matches the final output.
|
|
48
|
+
|
|
49
|
+
### Media Library
|
|
50
|
+
|
|
51
|
+
Browse, upload, replace, rename, and delete assets with folder navigation.
|
|
52
|
+
An inline asset picker integrates directly into image and file fields.
|
|
53
|
+
Files live in the repository by default, or in any S3-compatible object store (AWS S3, Cloudflare R2, MinIO) when the library outgrows Git.
|
|
54
|
+
Uploads then go straight from the browser to the bucket through a presigned URL, and the site serves them from your CDN.
|
|
55
|
+
|
|
56
|
+
### Agent-Ready
|
|
57
|
+
|
|
58
|
+
The admin exposes its content operations to AI agents through two protocols at once.
|
|
59
|
+
A built-in assistant edits content from a chat panel inside the CMS, and [WebMCP](https://webmachinelearning.github.io/webmcp/) hands the same tools to an agent running in the editor's own browser.
|
|
60
|
+
Both go through the same server operations, so an agent reaches exactly what the interface reaches and every change still lands in the changeset for a human to review.
|
|
61
|
+
|
|
62
|
+
### GitHub and GitLab Backends
|
|
63
|
+
|
|
64
|
+
Ships with OAuth-based storage backends for both GitHub and GitLab, plus a local backend for development.
|
|
65
|
+
Adding new Git providers means implementing a single interface.
|
|
66
|
+
|
|
67
|
+
## Alternatives
|
|
68
|
+
|
|
69
|
+
Astronaut CMS is made for Astro sites that keep their content in Git.
|
|
70
|
+
It is an Astro integration rather than a separate app, so it builds on your existing content collections, routes, assets, and dev server.
|
|
71
|
+
Its editor is generated from the Zod schemas of your content collections, every change is published atomically as a commit or pull request, and pages are composed from MDX blocks without touching code.
|
|
72
|
+
|
|
73
|
+
Other content management systems with a different focus:
|
|
74
|
+
|
|
75
|
+
- [Apostrophe](https://apostrophecms.com/): database-backed CMS with in-context page editing and enterprise multisite support.
|
|
76
|
+
- [CloudCannon](https://cloudcannon.com/): commercial hosted platform with visual editing for many static site generators.
|
|
77
|
+
- [Dark Matter](https://getdarkmatter.dev): desktop app for editing local Astro content collections.
|
|
78
|
+
- [Decap CMS](https://decapcms.org/): long-established, framework-agnostic Git CMS configured through YAML.
|
|
79
|
+
- [EmDash](https://emdashcms.com): full-stack, database-backed Astro CMS in the spirit of WordPress with sandboxed plugins.
|
|
80
|
+
- [Keystatic](https://keystatic.com/): Git-based CMS with a TypeScript configuration API.
|
|
81
|
+
- [Pages CMS](https://pagescms.org/): hosted Git CMS for GitHub repositories that requires no installation.
|
|
82
|
+
- [Spinal](https://spinalcms.com/): commercial Git-based CMS tailored to content marketing teams.
|
|
83
|
+
- [StudioCMS](https://studiocms.dev/): Astro-native, database-backed CMS for server-rendered sites with a plugin ecosystem.
|
|
84
|
+
- [Sveltia CMS](https://github.com/sveltia/sveltia-cms): modern, faster drop-in replacement for Decap CMS.
|
|
85
|
+
- [TinaCMS](https://tina.io/): visual inline editing backed by Git with a GraphQL content API.
|