Skip to content

Repository files navigation

Preferred.AI website

Local setup

Use Node.js 22 or newer and pnpm:

pnpm install
pnpm dev

Open http://localhost:3000.

Write a blog post manually

Create a lowercase, URL-safe Markdown file in content/posts/, then put its images in public/uploads/. A minimal post looks like this:

---
title: My New Post
date: 2026-08-29
author: Preferred.AI
excerpt: A short summary shown on the blog index.
cover: /uploads/my-new-post/cover.jpg
categories:
  - Education
tags: []
---

Write the post here.

Valid categories are Announcement, Defense, Education, Presentation, Publication, Social, Travel, and Video. The reusable starter is .github/BLOG_POST_TEMPLATE.md.

pnpm dev generates the content and image indexes when it starts. After editing Markdown or media while the server is running, refresh them in another terminal:

pnpm prepare:site

Restart pnpm dev if the page does not update.

Write with Keystatic locally

Keystatic provides a form-based alternative to editing Markdown:

pnpm --filter @preferredai/admin dev

Open http://localhost:3000/keystatic. The local admin app links directly to this repository's content/posts, content/people, public/uploads, and public/team/members directories. Its edits are ordinary local files that can be reviewed with Git. Stop the website dev server first because both commands use port 3000 by default.

Local checks

pnpm check
pnpm build
pnpm --filter @preferredai/admin typecheck

About

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages