wiki

@motioneffector/wiki

A TypeScript library for creating interconnected knowledge bases with bidirectional linking and graph analysis.

npm version license TypeScript

Features

Read the full manual →

Quick Start

import { createWiki } from '@motioneffector/wiki'

// Create a wiki instance
const wiki = createWiki()

// Create pages with [[wikilinks]]
await wiki.createPage({
  title: 'Home',
  content: 'Welcome! Check out [[Getting Started]] and [[Features]].'
})

await wiki.createPage({
  title: 'Getting Started',
  content: 'Link back to [[Home]] anytime.'
})

// Get backlinks automatically
const homePage = wiki.getPageByTitle('Home')
const backlinks = wiki.getBacklinks(homePage.id) // ['getting-started']

// Find dead links
const deadLinks = wiki.getDeadLinks() // [{ source: 'home', target: 'features' }]

Testing & Validation

License

MIT © motioneffector