# dirk1983/deepseek

演示站可以免费使用deepseek-r1满血模型进行AI对话，并支持使用stablediffusion模型画图。本项目是PHP版调用DeepSeek第三方接口进行问答和画图，采用Stream流模式通信，一边生成一边输出。前端采用EventSource，支持Markdown格式解析，支持公式显示，代码有着色处理，支持画图。页面UI简洁，支持上下文连续会话。源码只有几个文件，没用任何框架，支持所有PHP版本，全部开源，极易二开，适合PHP初学者。保姆级教程，账号等周边资源，欢迎进群交流，一切全免费。

Repository: https://github.com/dirk1983/deepseek
Canonical: https://ross.abutalabs.com/products/deepseek
Homepage: https://mm1.ltd
Language: JavaScript
License: MIT
License Family: permissive
Topics: chatgpt, html, php
Last push: 2025-07-24T06:39:51+00:00

## Health v2 (maintenance only)
Score: 36/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 33, release rhythm 8, longevity 92
- inputs: {"age_days": 1294, "days_push": 405, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3103, forks 7 (observed 2026-08-28T04:07:43.703100+00:00)

## What it is
A lightweight PHP demo application that calls DeepSeek/OpenAI-compatible chat APIs with streaming (EventSource) output, supporting Markdown rendering, code highlighting, formulas, contextual multi-turn conversation, and image generation via Stable Diffusion. It uses only a few plain PHP files with no framework or database, making it easy for PHP beginners to deploy and modify.

## Use cases
- build a self-hosted AI chat website in PHP
- chat with DeepSeek-R1 through a web interface
- stream LLM responses token by token in PHP
- generate images with Stable Diffusion from a chat prompt
- share an OpenAI-compatible chatbot with friends using rotating API keys
- learn how to integrate streaming LLM APIs without a framework

## When to choose
- you want a minimal, no-framework PHP codebase that is easy to modify
- you need streaming responses without a database dependency
- you are a PHP beginner wanting a tutorial-style LLM integration example
- you want lightweight personal or small-group AI chat with API key rotation

## When to avoid
- you need a production-grade, multi-user chat platform with accounts and persistence
- your stack is not PHP
- you need enterprise features like databases, auth systems, or scaling
- you require official SDK features or fine-grained API control

## Facets
- artifact type: application
- maturity: active
- function: chatbot, llm-inference, http-client, web-framework, stable-diffusion, chat-interface
- domain: large-language-models, chatbots, web-development, artificial-intelligence
- platform: php, self-hosted, cross-platform
- tags: deepseek, openai-api, streaming, eventsource, no-framework, php-beginner, image-generation, markdown-rendering, web-server

## Member repositories
- dirk1983/deepseek (main) score 36

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:43.703100+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:46:19.536802+00:00, confidence not recorded.
  - readme: https://github.com/dirk1983/deepseek (fetched 2026-08-28T04:07:43.703100+00:00, sha 0a3317405c87)
- Data as of 2026-08-30T08:39:29.467469+00:00.
