This example adds a simple blog to the Epic Stack with Keystatic and MDX.
The blog is available at the /blog route. Posts can be edited via the MDX
files directly, or via the Keystatic Admin UI available at the /keystatic
route.
-
Install the
@keystatic/coreand@keystatic/remixpackages from npm -
Define Content schemas and storage strategy a
keystatic.config.tsxfile. This example uses thelocalstorage mode (local file system). You can usegithuborcloudmodes to enable content management from the deployed site. -
Create
app/routes/keystatic+/$.tsxandapp/routes/api+/keystatic.$.tsxroutes to enable Keystatic to truly become part of your project. -
Visit the
/keystaticroute to access the Keystatic Admin UI.
Keystatic makes Markdown, Markdoc, MDX, JSON and YAML content in your codebase editable via an elegant Admin UI. No database — the content lives in your file system and GitHub repository.
This example is setup to store content in MDX files, but you can also use Markdoc, JSON or YAML to store content and make it editable.
Visit the Keystatic website to learn more!