๐Ÿ“ฆ lyzno1 / dify-client

โ˜… 1 stars โ‘‚ 0 forks ๐Ÿ‘ 1 watching
๐Ÿ“ฅ Clone https://github.com/lyzno1/dify-client.git
HTTPS git clone https://github.com/lyzno1/dify-client.git
SSH git clone git@github.com:lyzno1/dify-client.git
CLI gh repo clone lyzno1/dify-client
lyzno1 lyzno1 feat: add shiki dependency for syntax highlighting f21652d 2 months ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“ app
๐Ÿ“ components
๐Ÿ“ lib
๐Ÿ“ public
๐Ÿ“„ .env.example
๐Ÿ“„ .gitignore
๐Ÿ“„ components.json
๐Ÿ“„ eslint.config.mjs
๐Ÿ“„ next.config.ts
๐Ÿ“„ package.json
๐Ÿ“„ pnpm-lock.yaml
๐Ÿ“„ postcss.config.mjs
๐Ÿ“„ README.md
๐Ÿ“„ tsconfig.json
๐Ÿ“„ README.md

Dify Client

A Next.js client for Dify, allowing you to manage multiple Dify applications and conversations in a unified interface.

Features

  • Multi-App Support: Switch between different Dify applications easily.
  • Conversation Management: Create, delete, and manage conversations.
  • Streaming Chat: Real-time streaming responses from Dify agents.
  • Markdown Support: Rich text rendering for AI responses.
  • Local Storage: App configurations are stored locally in your browser.

Getting Started

  • Install Dependencies
pnpm install

  • Run Development Server
pnpm dev

  • Configure Apps
  • Open the app in your browser.
  • Click on the App Switcher in the sidebar.
  • Select "Manage Apps".
  • Add your Dify App Name, API Key, and Base URL (default: https://api.dify.ai/v1).

Environment Variables

You can optionally configure default apps via environment variables (not yet implemented in this version, but planned).

Tech Stack

  • Framework: Next.js 15 (App Router)
  • Styling: Tailwind CSS + Shadcn UI
  • State Management: Zustand + TanStack Query
  • Icons: Lucide React