@kimoxstudio/git-provider-stub
v0.2.1
Published
In-memory stub git provider for kimox-fw development.
Readme
@kimoxstudio/git-provider-stub
In-memory git provider for development.
A GitProvider that keeps everything in memory, so an app boots and renders
without any GitHub setup.
import { createStubGitProvider } from "@kimoxstudio/git-provider-stub";
const git = createStubGitProvider({
branches: { main: { "content/pages/index.json": JSON.stringify(doc) } },
});Handy for local development, tests and demos. Edits do not persist across
restarts (and on serverless each instance has its own state), so use
@kimoxstudio/git-provider-github for anything real.
Part of kimox-fw
kimox-fw is a JSON-document + template site framework for Next.js (App Router): pages are declarative JSON documents rendered by Zod-typed templates, with content stored in git and edited through a visual admin using draft branches ("variations").
Scaffold a whole site with npx create-kx-app.
MIT © Kimox Studio
