Complete guide to getting started with Doclific
Prerequisites: Doclific requires node and npm to be installed on your system. The AI integration feature automatically adds skills to ~/.cursor and ~/.claude directories, which requires Node.js and npm to function properly.
Make sure you have Node.js and npm installed before proceeding:
node --version
npm --versioncurl -fsSL https://raw.githubusercontent.com/muellerluke/doclific/main/scripts/install.sh | bashThis will download the latest release for your platform, install the binary to/usr/local/bin(or ~/.local/bin if you don't have write permissions), and set up the frontend build files.
Note: Make sure ~/.local/bin(or /usr/local/bin) is in your PATH if it's not already.
Prerequisites for Windows:
wsl --install in PowerShell as Administrator.sudo apt install wsluwsl --set-default-version 2Once WSL is set up with wslu installed and interoperability enabled, you can run the standard installation command from within your WSL terminal.
~/.config/doclific/config.jsonYou can manage it using the get and set commands, or edit the file directly.
Doclific automatically integrates with AI assistants by adding documentation skills to your Cursor and Claude AI configurations. This enables AI-powered documentation creation and editing directly through your preferred AI assistant.
How it works: When you install Doclific, it automatically adds the necessary skills and instructions to:
~/.cursor - For Cursor AI integration~/.claude - For Claude AI integrationRequirements: This feature requires Node.js and npm to be installed on your system. The installation script will verify these dependencies are available.
Once installed, you can use your AI assistant (Cursor or Claude) to help create and edit documentation using Doclific's features, including ERD diagrams, whiteboards, and code snippets.
Doclific includes powerful ERD diagramming capabilities. You can create detailed Entity Relationship Diagrams directly within your documentation. With AI integration, your Cursor or Claude assistant can help generate ERDs based on your codebase structure, making it easy to visualize database relationships and schema designs.
Use the built-in whiteboarding feature to create visual architecture diagrams, system designs, and flowcharts. Perfect for documenting complex systems, planning new features, and visualizing how different components interact in your codebase.
Initialize a project:
cd /path/to/your/project
doclific initStart the server:
doclificOpen the web interface: The browser will open automatically, or navigate to http://localhost:6767
Create documentation: Use the Notion-like editor to create and edit your documentation. Use the slash menu (/) to add blocks, ERD diagrams, whiteboards, and more to visualize your architecture.
Use AI assistance: Doclific automatically integrates with Cursor and Claude AI assistants. The skills are added to ~/.cursor and ~/.claudeduring installation, enabling AI-powered documentation creation and editing through your preferred AI assistant.
doclific init, your project will have:your-project/
└── doclific/
└── [documentation folders]/
├── config.json
└── content.mdxEach documentation folder contains:
config.json: Metadata (title, icon)content.mdx: The documentation content in MDX formatInstall Doclific and start documenting your codebase today