Skip to content

Getting Started

OpenCode GH-4 Candidate edited this page Dec 2, 2026 · 6 revisions

Getting Started

New here? This page is the short path from a clean machine to your first cooked recipe. Everything below works without an account. AI is optional.

Before you begin: The published release is v0.9.0. Current main includes newer Signature Edition, SHISO and native desktop work. There is no public desktop installer yet. You can run the web app from source, or build the native Linux development app from source.

The default clone is current development source, not the v0.9.0 tag. For the published release's original setup instructions, see the tagged v0.9.0 README.

Choose how to run it

Path Best for What you need
Web app from source Trying the product quickly, development, Chromium-based browsing Git, Bun, a current Chromium browser for folder access
Native Linux development build A real local Vault, native folder picker, desktop integration Git, Bun, Node 22, a C++17 compiler, N-API headers, Linux openat2.h headers, Electron Linux runtime libraries
Existing Obsidian vault Reusing Markdown recipes you already own A writable folder of Markdown recipe notes; Obsidian itself is optional

Windows, macOS, mobile and hosted distributions are not currently offered.

Run the web app from source

Requirements: Git, Bun, and a current Node-compatible runtime.

git clone https://github.com/kryptek2000/The-Kitchen-Codex.git
cd The-Kitchen-Codex
bun install --frozen-lockfile
cp .env.example .env    # optional: review AI/provider settings
bun run dev

Open http://localhost:3000.

In a supported Chromium-based browser — Chrome, Edge, Brave or Arc — choose Connect Vault → Live Directory Sync → Choose Local Obsidian Vault Folder to grant local folder access through the File System Access API.

Firefox and Safari do not provide the same writable folder-access workflow. You can still use the read-only folder upload described below.

Build the native Linux app

Native packaging is a development workflow today, not a public installer. The verified native CI runs on Ubuntu 24.04 with Node 22.

1. Install the system prerequisites

Ubuntu 24.04 package names used by the desktop CI:

sudo apt-get update
sudo apt-get install -y build-essential linux-libc-dev xvfb xauth \
  libnss3 libgbm1 libgtk-3-0t64 libatk-bridge2.0-0t64 libasound2t64
test -f /usr/include/linux/openat2.h
g++ --version

libnss3, libgbm1, libgtk-3-0t64, libatk-bridge2.0-0t64 and libasound2t64 are Electron Linux runtime dependencies. xvfb and xauth are used by the CI smoke test. Other distributions need equivalent packages.

2. Use a Node executable and locate N-API headers

The native scripts call node directly. Node 22 is the verified native CI baseline.

node --version
NODE_HEADERS="$(node -p 'require("node:path").join(require("node:path").dirname(process.execPath), "..", "include", "node")')"
test -f "$NODE_HEADERS/node_api.h"
export TKC_NODE_HEADERS="$NODE_HEADERS"

If the headers live elsewhere, set TKC_NODE_HEADERS to the directory containing node_api.h.

3. Install dependencies and the Electron runtime

The repository's explicit Bun trusted-dependency list does not include Electron, so the Electron binary can be absent after bun install. Use the CI-equivalent conditional installer. Do not add Electron to the trust list or change package.json.

ELECTRON_SKIP_BINARY_DOWNLOAD=1 ONNXRUNTIME_NODE_INSTALL_CUDA=skip \
  bun install --frozen-lockfile

if [ ! -x node_modules/electron/dist/electron ]; then
  node node_modules/electron/install.js
fi
test -x node_modules/electron/dist/electron
test -f node_modules/electron/dist/chrome-sandbox
test -f node_modules/electron/dist/resources/default_app.asar
test -f node_modules/electron/dist/icudtl.dat
node -p "require('./node_modules/electron/package.json').version"

The reported version must match the electron pin in package.json — 45.3.2 at this baseline. Verify the binary before packaging.

4. Build and package

bun run build
node scripts/build-desktop-native.mjs
test -f desktop/native/tkc_vault.node
npm run desktop:package

The native Vault helper is platform- and architecture-specific and is generated during the build. npm run desktop:package is the packaging command used by CI; it runs the repository script and does not install a second dependency tree. See the repository's desktop guide for the security boundary and packaging details.

Before launching, read Launch with the sandbox intact.

5. Launch with the sandbox intact

The packaged app includes Chromium's chrome-sandbox helper. A successful npm run desktop:package only means the package was assembled; it does not prove that Chromium's sandbox can start on the host.

On Ubuntu 24.04, unprivileged user namespaces are restricted for unconfined applications. The development package may therefore require an appropriately installed sandbox helper, or another supported distribution-specific sandbox configuration, prepared by an administrator. Other Linux distributions may use a different sandbox model.

The development package is not a production installer and does not include a privileged sandbox installation step. Production installer packaging and sandbox configuration are future distribution engineering work. If the required sandbox configuration is not available, stop; do not launch the application with the sandbox disabled.

Where a privileged helper is required:

  • Use trusted, verified binaries from the package you built or a trusted source.
  • Keep the installation and helper paths under administrator control, with ownership and permissions that prevent replacement by unprivileged users.
  • Do not grant setuid permissions to helpers inside an arbitrary user-writable build directory.
  • Launch the application as your regular user, never as root.

The pinned CI workflow demonstrates that a correctly prepared Ubuntu 24.04 environment can launch the package with the sandbox enabled: desktop-linux.yml. It is verification evidence for the development package, not a universal end-user installation procedure.

After the sandbox prerequisite is satisfied, launch as your regular user:

./desktop-dist/TheKitchenCodex-linux-x64/TheKitchenCodex

Do not use --no-sandbox, do not use --disable-setuid-sandbox as a blanket workaround, and do not weaken system-wide namespace or security settings.

First launch: starter collection or your own Vault

On current main, The Kitchen Codex can show the Signature Nine starter collection before you connect anything. These are read-only templates: you can browse, scale and cook from them, but edits require a personal copy.

There are three common starting points:

1. Start with the managed desktop Vault

In the native app, your first save creates the managed Vault:

<Documents>/The Kitchen Codex/My Recipe Vault

The nine starter recipes are seeded there once when that Vault is created. Your own recipe is then written through the same canonical save path.

2. Connect an existing folder

Use Connect Vault → Live Directory Sync → Choose Local Obsidian Vault Folder in both the native app and a Chromium browser. The app reads the folder in place and writes changes back to your files.

Existing Vaults are not automatically seeded or migrated. You can save an individual starter recipe, or use the optional Add the Signature Nine action if you want the collection in that Vault. Existing files are not overwritten.

3. Import a folder read-only

You can drop a recipe folder, or choose files, in the Vault connection screen. This creates a read-only session import: recipes, notes, Meal Plan.md and Shopping List.md are read into the app, but nothing is written to disk.

To save durably, connect a writable Vault folder first.

💡 New to the Vault idea? The Kitchen Codex Vault explains the storage model, the file layout and what "portable" actually means.

Add your first recipe

You have three routes:

Route How it works
Save a starter recipe Open a Signature Nine recipe and choose Save to My Vault. You get an editable personal copy; the original stays read-only.
Create a note Choose New Recipe Note and write the recipe yourself.
Import from the web Choose Grab from Web, paste a recipe URL, or paste recipe text/HTML when a site blocks automated access.

What importing does — and does not do

The grabber extracts what it can: title, ingredients, steps, times and servings. Extraction quality varies by site. Well-structured recipe pages work best; some sites actively make automated reading difficult.

The Kitchen Codex does not fill gaps by guessing. If the source page does not state the servings or cook time, the imported recipe will not invent one. You review the result before saving.

It is better to leave a field blank than to make up a number. You can always complete it yourself.

Find, cook and plan

  • Search and filter by ingredient, cuisine, course, difficulty, time and tags.
  • Favorites keep the recipes you return to close at hand.
  • Ratings (current main) are personal, 1–5, and are never presented as a community average.
  • Scaling adjusts servings while preserving the recipe's underlying measurements; nutrition figures follow where available.
  • Cooking Mode gives you a large-type, step-by-step surface with per-step timers and a finished-state view.
  • Meal Planner fills a seven-day week for breakfast, lunch and dinner.
  • Shopping List turns planned meals into a categorized grocery list.
  • Recipe Card Studio composes a printable card as PNG, print output or Markdown.

See Everyday Cooking for the full workflow.

Set up AI — only if you want it

AI is optional. Core recipe management, Meal Planner, Shopping List, Cooking Mode and Basic Nutrition work without it.

If you want SHISO, recipe generation, nutrition analysis or AI images:

  1. Open AI Studio.
  2. Choose a text provider and model, and add a provider credential.
  3. Review the capability and pricing information before running a paid action.
  4. Keep in mind that provider usage is billed by the provider, not by The Kitchen Codex.

See Kitchen Intelligence for providers, credentials and costs, and SHISO for the companion experience.

Public deployment note: AI endpoints can be protected by AI_ENDPOINT_TOKEN. The current browser client does not attach that bearer token, so protected public browser AI calls fail closed. Local development and the native desktop path are the supported AI configurations today.

A quick reality check

Question Answer
Do I need an account? No, not for local recipe management.
Do I need Obsidian? No. It is an optional compatibility path.
Does it work offline? Core recipe, planning and cooking work locally. Current main Basic Nutrition is local and AI-free. Web import and AI need a network and provider.
Is there a public installer? Not yet. Native Linux builds are produced from source.
Is v1.0.0 out? No. It is the planned next flagship objective, with no announced date.

Next: The Kitchen Codex Vault · Everyday Cooking · SHISO · FAQ

Clone this wiki locally