An open-source Notion-style WYSIWYG editor build with shadcn/ui and tailwind.
npm install alphonse
"use client";
import React from "react";
import {
AlphonseProvider,
AlphonseEditorProvider,
AlphonseEditor,
} from "alphonse";
const content = `
<h1>Hello World! 🌎️</h1>
<p>The best notion like editor</p>
`;
export const Editor = () => {
return (
<>
<AlphonseProvider>
<AlphonseEditorProvider content={content}>
<AlphonseEditor />
</AlphonseEditorProvider>
</AlphonseProvider>
</>
);
};
Alphonse is built on the following stack:
- Tiptap - headless Editor
- Tailwindcss - styles
- shadcn/ui - components library
- typescript - types
This repo includes the following packages/apps:
web
: a Next.js app as an example of usagealphonse
: The editor itselft will be delivery as a npm package in the future@alphonse/ui
: shadcn/ui components and custom components for alphonse editor
Each package/app is 100% TypeScript.
To build all apps and packages, run the following command:
cd alphonse
pnpm install
pnpm build
To develop all apps and packages, run the following command:
cd alphonse
pnpm install
pnpm dev