This release marks a huge first step in simplifying LikeC4 integration with any Vite-based application.
🚀 Features
-
🔌 Vite Plugin
The new Vite plugin allows you to embed LikeC4 views directly into your application or documentation website.
Configure:import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' import { LikeC4VitePlugin } from 'likec4/vite-plugin' export default defineConfig({ plugins: [ react(), LikeC4VitePlugin({}), ], })
Use:
import { StrictMode } from 'react' import { createRoot } from 'react-dom/client' import { LikeC4View } from 'likec4:react' createRoot(document.getElementById('root')!).render( <StrictMode> <LikeC4View viewId='index' /> </StrictMode> )
-
📂 Multi-Project Workspaces
This release adds multi-project support in both the CLI and VS Code.
Simply create a likec4.config.json file in a folder, and it will be recognized as a LikeC4 project. -
llms.txt support
Thanks to @simonwfarrow for suggesting this in #1683.
likec4.dev now provides: