@rapidhonlap/site-kit
v0.2.0
Published
Shared runtime for RapidHonlap sites: Astro components, content schemas, Worker runtime, contact form.
Readme
@rapidhonlap/site-kit
The shared runtime of RapidHonlap websites: Astro section components, the content schemas and the Cloudflare Worker that serves a site.
It is published as source (TypeScript and .astro files); the site's own Astro build compiles
it, and Wrangler bundles the Worker from it. A site created from the RapidHonlap starter
already has everything set up:
// src/content.config.ts
import { pageSchema } from "@rapidhonlap/site-kit";
// worker/index.ts
import { createSiteWorker } from "@rapidhonlap/site-kit/worker";
export default createSiteWorker();The contact section is a form posted to the site's own /_rh/form, which the Worker passes to
the RapidHonlap form service through the RH_FORMS service binding (protected by Cloudflare
Turnstile). Without that binding the form endpoints answer 404.
Licensed under the MIT license. A site built with it remains buildable without RapidHonlap.
