Open-source and local-first Slack and Notion alternative that puts you in control of your data
TypeScript chatchat-applicationcrdteditorelectronknowledge-baselocal-firstnotionnotion-alternativerealtime-collaborationself-hostedslacksqliteteam-collaborationwikiyjs
import { z } from 'zod/v4';
import {
richTextContentSchema,
RichTextContent,
} from '@colanode/core/registry/documents/rich-text';
export const documentContentSchema = z.discriminatedUnion('type', [
richTextContentSchema,
]);
export type DocumentContent = RichTextContent;
export type DocumentType = DocumentContent['type'];