Kaper

by nikoneex
5
4
3
2
1
New Plugin

Description

This plugin has not been manually reviewed by Obsidian staff. Edit and preview Kaper recipes inline as structured blocks.

Reviews

No reviews yet.

Stats

stars
203
downloads
0
forks
0
days
NaN
days
NaN
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
0
commits

Latest Version

Invalid date

Changelog

README file from

Github

Kaper for Obsidian

Recipes that live in your vault.

Kaper is a local-first recipe manager — plain markdown files, no cloud, no account. This plugin brings it into your Obsidian vault.

A markdown file with a ```kaper block becomes a structured recipe — preview, form editor, drag-to-reorder ingredients, the lot — rendered inline with the rest of your prose. No external app, no extra database, no second source of truth. Just one more thing your vault knows how to do.

Why bother

You already chose Obsidian because your notes belong on your disk. Recipes deserve the same treatment. Kaper turns plain .md files into a real recipe manager:

  • Lives in your vault. A recipe is a markdown file with kaper: true in frontmatter and a YAML block in the body. That's it. Anything outside the block is normal markdown — notes, intros, links, photos.
  • Renders inline in Live Preview. No separate panel, no modal. The kaper block becomes a rendered recipe right where it sits. Switch to Source mode to see the raw YAML any time.
  • Form editor for the YAML-shy. Title, servings, prep/cook time, tags, ingredient groups (drag to reorder), steps with notes, tips, warnings, durations. Auto-saves on every change.
  • Themed by Obsidian. Uses your accent color and surface palette. Looks at home in any theme you've installed.

Cook Mode at kaper.me

When it's time to actually cook, click Cook mode in any rendered Kaper block. You'll land in kaper.me with that recipe loaded in big-text, hands-free, gesture-friendly view. No copy-paste. No app switch. Just the recipe ready to follow at the stove.

File format

A Kaper recipe is two markers — frontmatter kaper: true and a fenced ```kaper YAML block. Anything else in the file is regular markdown.

---
kaper: true
---

A true Roman classic — no cream, no shortcuts.

```kaper
title: Classic Pasta Carbonara
servings: 2
difficulty: medium
time:
  cook: 20m
tags: [italian, pasta, weeknight]
ingredients:
  pasta:
    - amount: 200
      unit: g
      name: spaghetti
  sauce:
    - amount: 100
      unit: g
      name: guanciale
      sub: pancetta
steps:
  - title: Bring a large pot of salted water to a boil.
    note: The water should taste like the sea.
  - title: Cook guanciale in a cold skillet until crispy.
    duration: 8m
version: 1
```

Tips and notes go here as regular markdown.

Required keys: title, servings, ingredients, steps. Everything else is optional.

Use it

  • New recipe — click the utensils icon in the left ribbon, or run Kaper: Create recipe from the command palette.
  • Convert a note — run Kaper: Convert current note to Kaper recipe to add the frontmatter and starter block to any open .md file.
  • Edit — open any kaper file in Live Preview. Toggle Preview and Form at the top of the rendered block.
  • Cook — click Cook mode to launch kaper.me.
  • Raw YAML — switch to Source mode (top-right pane icon).

Works with the rest of Kaper

Kaper recipe files are 100% portable. The same .md file works in:

  • This Obsidian plugin
  • The Kaper web app at kaper.me
  • The Kaper desktop app (coming soon)

There's no sync layer to set up. Your files move through whatever you already use — iCloud, Dropbox, Syncthing, git, USB stick. Open the same folder anywhere.

Privacy

The plugin makes no network requests of its own. The only outbound link it adds is the Cook Mode button, which opens kaper.me?from=obsidian in your browser — and even that only carries the URL parameter telling the web app where you arrived from. Your recipe files never leave your vault.

There is no Kaper server. We literally cannot read your files.

One exception, and it's yours to make. You can point a recipe's coverImage or a step image at a remote http(s) URL if you like — and when the recipe renders, Obsidian will load that image straight from wherever it points. That request goes to a host we have no connection to, so whatever it logs or tracks is strictly between you and that server, not us. Use remote URLs only for sources you trust; to keep everything local, point images at vault-relative paths or use the form's image upload instead.

Installation

Community Plugins

Pending submission to the Obsidian Community Plugin registry.

Manual

  1. Download main.js, manifest.json, and styles.css from the latest GitHub release.
  2. Drop them into your vault's .obsidian/plugins/kaper/ folder.
  3. Settings → Community plugins → enable Kaper.

Built on

Obsidian's editor is built on CodeMirror 6. This plugin extends CodeMirror directly — recipe blocks render as block widgets inside the editor itself, sharing the same rendering pipeline as headings, embeds, and Live Preview. There's no second UI on top of the editor, just one editor that knows how to render kaper blocks.

Open-source pieces under the hood:

  • @dnd-kit/sortable — accessible drag-and-drop for ingredient reordering (keyboard, touch, mouse).
  • js-yaml — YAML parsing and round-trip serialization.

Development

git clone https://github.com/nikoneex/obsidian-kaper.git
cd obsidian-kaper
npm install
npm run dev    # watch mode → main.js

Symlink the repo into a test vault:

ln -s "$PWD" "/path/to/test-vault/.obsidian/plugins/kaper"

Run tests:

npm test

Contributing

Thank you for the interest — it genuinely means a lot. This plugin is a one-person, spare-time project, so a few guidelines help me keep it clean and stable for everyone. If you'd like to contribute:

  • Open an issue first. Discuss any new feature, architecture change, or major refactor before writing code. Uncoordinated PRs get closed.
  • No AI-generated bulk. Large, AI-generated PRs aren't accepted. Code should be human-readable, minimal, and match the style already here.
  • Pass the checks. Before you push, run Prettier (npm run format), make sure the branch type-checks and builds clean (npm run build), and the tests pass (npm test).
  • Keep it small. One PR, one issue.

Bug fixes and pre-discussed features are always welcome.

License

MIT — see LICENSE.


Want the full Kaper experience? Open any folder of recipes at kaper.me. No install. No signup.