New Project
This example shows how to build a Linear-inspired collaborative issue tracker using Liveblocks, and Next.js. Users can create issues with a rich-text editor, giving them priorities, progress state, and labels. Comments can be left on issues and users receive notifications if they've been mentioned.
You can optionally enable an AI assistant that you can mention it comments and will stream in replies. The assistant can create new issues, and edit the current issue, showing AI presence as it works.
Run the following command to try this example locally:
npx create-liveblocks-app@latest --example nextjs-linear-like-issue-tracker --api-key
This will download the example and ask permission to open your browser, enabling you to automatically get your API key from your liveblocks.io account.
You need to set up webhooks to use all features in this example.
/api/liveblocks-webhook path.env.local as the
LIVEBLOCKS_WEBHOOK_SECRET_KEY environment variableYou need your own Anthropic API key to run the AI agent.
.env.local as the ANTHROPIC_API_KEY
environment variableAlternatively, you can set up your project manually:
npm install.env.local file and add your secret key as the
LIVEBLOCKS_SECRET_KEY environment variablenpm run dev and go to http://localhost:3000You can optionally run this example locally using the Liveblocks dev server.
npx liveblocks dev to start the serverbaseUrl: "http://localhost:1153" option to LiveblocksProvider and
new Liveblockssecret in new Liveblocks with "sk_localdev"npm run dev and go to http://localhost:3000To both deploy on Vercel, and run the example locally, use the following command:
npx create-liveblocks-app@latest --example nextjs-linear-like-issue-tracker --vercel
This will download the example and ask permission to open your browser, enabling you to deploy to Vercel.
After forking
this example
on CodeSandbox, create the LIVEBLOCKS_SECRET_KEY environment variable as a
secret.