npm.io
0.25.0 • Published 3 years ago

@tereza-tech/zettel

Licence
MIT
Version
0.25.0
Deps
7
Size
96 kB
Vulns
0
Weekly
0

Zettel

Create your own digital garden with Zettel, an open source engine that implements the Zettelkasten method.

Installation

yarn add @tereza-tech/zettel

Quickstart

Create your Zettelkasten notes in a folder, for example notes, then instantiate your Zettelkasten engine:

import { Zettelkasten } from '@tereza-tech/zettel';
import * as path from 'path';

const notesDir = path.join(process.cwd(), 'notes');

const zettelkasten = new Zettelkasten({ notesDir });

(async () => {
  const notes = await zettelkasten.getNotes();

  const blogNote = await zettelkasten.getNotes({ groups: ['blog'] });

  const tags = await zettelkasten.getTags();

  const flashcard = await zettelkasten.getFlashcard();

  const graph = await zettelkasten.getGraphData();
})();