Skip to content
Proyectos

Acerca de

Vibe-Blog is a multi-agent AI assistant that turns a single prompt into a 10,000-word technical article. It combines deep research, smart illustrations, Mermaid diagrams, code integration, and professional formatting to transform complex technologies into clear, engaging content, making daily long-form publishing effortless.

Diseño y multimedia

Cómo se miden estas cifras

Crecimiento de estrellas medido

in 24h
0
in 7 days
0
in 15 days
-1
in 1 month
Recopilando historial

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

Alpha software: Vibe Blog is under active development. Features and data formats may change. Please report problems through GitHub Issues.

Vibe Blog logo

Vibe Blog

Turn complex technology into long-form stories people can understand.

English | 简体中文

Version Python Vue Flask LangGraph

An AI writing workspace that coordinates research, outlining, drafting, code examples, illustrations, review, and document assembly for substantial technical articles.

Quick start · Architecture · Testing · Changelog

Overview

Vibe Blog is a Flask + Vue 3 application built around a LangGraph multi-agent workflow. Give it a topic or supporting material, choose the desired article shape, and follow generation through real-time Server-Sent Events (SSE). The result is stored as Markdown and can be reviewed, edited, and exported from the web interface.

The project is designed for technical writers, developer advocates, educators, product teams, and learners who need more depth than a short chat response can provide.

Topic and source material
        ↓
Research and knowledge-gap discovery
        ↓
Outline planning and optional confirmation
        ↓
Section writing, questioning, and review
        ↓
Code examples and visual assets
        ↓
Assembly, history, and export

What It Does

Area Current capability
Research Multi-round web research, source curation, optional deep scraping, and local material retrieval
Planning Structured outlines, audience and learning-objective analysis, and an outline confirmation flow
Writing Section-by-section generation with depth checks, revision, fact checking, and style cleanup
Visuals Mermaid diagrams plus optional AI-generated covers, search-based illustrations, and cover animation
Knowledge File parsing, reusable knowledge material, article history, and blog-to-book aggregation
Operations SSE progress, cancellation, task recovery, dashboard views, and scheduled generation
Observability Structured task logs, token tracking, and optional Langfuse tracing

Optional and experimental integrations are disabled or inactive until their corresponding environment variables and feature flags are configured. See backend/.env.example for the authoritative list.

Product Preview

Writing Workspace

Vibe Blog home screen

Start with a topic, select an article type and length, attach material when needed, and inspect the generated outline before the full workflow continues.

Article Output

Generated technical article

The detail view renders Markdown, syntax-highlighted code, Mermaid diagrams, references, and generated media in one reading surface.

Book Aggregation

Book library Book reader

Related articles can be organized into a book structure and read through the built-in book interface. Book scanning is controlled by BOOK_SCAN_ENABLED.

Multi-Agent Workflow

Multi-agent architecture

The workflow uses specialized agents with a shared typed state:

Agent group Responsibility
Researcher and Search Coordinator Gather sources, refine queries, and address knowledge gaps
Planner Convert evidence and objectives into a structured outline
Writer Draft coherent sections for the target audience
Questioner, Reviewer, and Fact Checker Challenge depth, quality, consistency, and factual support
Coder and Artist Produce code examples, diagrams, AI-generated or search-based illustrations, and optional cover animation
Humanizer, Voice Checker, and Thread Checker Improve tone, voice, and cross-section continuity
Assembler and Summary Generator Build the final document and derived summary

Agents are orchestrated by LangGraph and communicate through a shared Pydantic/TypedDict state contract. The browser receives progress and terminal events over SSE.

Architecture

Layer Technology Purpose
Frontend Vue 3, Vite, Pinia, TipTap Generation controls, live progress, editing, history, books, and dashboard
API Flask, Pydantic HTTP/SSE endpoints, validation, task lifecycle, and compatibility boundaries
Workflow LangGraph, LangChain Agent orchestration, retries, context management, and tool execution
Services Python service packages LLMs, research, documents, media, publishing, review, and scheduling
Runtime artifacts var/ by default Logs, generated files, uploads, caches, and screenshots
Persistent data backend/data/ SQLite databases for articles, tasks, schedules, and writing sessions
vibe-blog/
├── backend/                 # Flask API, agents, services, tests
│   └── data/                # Persistent SQLite databases
├── frontend/                # Vue 3 application and Vitest tests
├── tests/e2e/               # Playwright end-to-end scenarios
├── docker/                  # Local and container startup tooling
├── docs/                    # Architecture, testing, and project assets
└── var/                     # Local runtime data (created as needed)

Detailed boundary documentation lives in docs/architecture/.

Quick Start

Prerequisites

  • Python 3.10 or newer
  • Node.js 20 or newer with npm
  • API credentials for at least one configured text model provider
  • lsof on macOS/Linux when using the local startup script

1. Clone and install

git clone https://github.com/datawhalechina/vibe-blog.git
cd vibe-blog

python -m venv .venv
source .venv/bin/activate
pip install -r backend/requirements.txt

On Windows, activate the environment with .venv\Scripts\activate.

2. Configure

cp backend/.env.example backend/.env

Edit backend/.env. A minimal OpenAI-compatible configuration looks like this:

AI_PROVIDER_FORMAT=openai
OPENAI_API_KEY=your-api-key
OPENAI_API_BASE=https://your-provider.example/v1
TEXT_MODEL=your-model-name

Do not commit .env or real credentials.

3. Start frontend and backend on macOS, Linux, or WSL

bash docker/start-local.sh

The script installs missing frontend dependencies, starts both services, and writes logs under ${VIBE_RUNTIME_DIR:-var}/logs/.

Press Ctrl+C in the startup terminal to stop both services. The script requires Bash and lsof, claims ports 5173 and 5001, and terminates processes already using them.

4. Start manually, including on Windows

Run the backend and frontend in separate terminals:

# Terminal 1
cd backend
python app.py
# Terminal 2
cd frontend
npm install
npm run dev

The same frontend and backend URLs apply. Stop each process in its own terminal.

Docker

Use the checked-in Compose stack after creating backend/.env:

docker compose -f docker/docker-compose.yml up -d --build
docker compose -f docker/docker-compose.yml ps

The current Nginx configuration serves HTTP on port 80. Configure TLS in Nginx before exposing the application publicly.

Configuration

The checked-in backend/.env.example is the source of truth. Key groups include:

Group Representative variables Required?
Text model AI_PROVIDER_FORMAT, OPENAI_API_KEY, OPENAI_API_BASE, TEXT_MODEL Yes, for the OpenAI-compatible path
Research ZAI_SEARCH_API_KEY, SERPER_API_KEY, JINA_API_KEY, TAVILY_API_KEY, ANYSEARCH_API_KEY, DOUBAO_WEB_SEARCH_API_KEY, DOUBAO_IMAGE_SEARCH_API_KEY Optional
Documents MINERU_TOKEN, local material settings Optional
Media NANO_BANANA_API_KEY, OSS and video settings, DOUBAO_IMAGE_SEARCH_API_KEY for search-based illustrations Optional
Tracing TRACE_ENABLED, LANGFUSE_PUBLIC_KEY, LANGFUSE_SECRET_KEY Optional
Feature flags Book, XHS, derivatives, deep scraping, and agent switches Optional

Keep credentials in backend/.env. Generated artifacts, logs, uploads, and caches belong under var/ unless VIBE_RUNTIME_DIR is set; persistent SQLite databases remain under backend/data/.

Testing

Frontend unit tests

cd frontend
npm test

Backend tests

cd backend
python -m pytest tests/ -v

End-to-end tests

Start the application first, then run from the repository root:

RUN_E2E_TESTS=1 python -m pytest tests/e2e/ -v

Set E2E_HEADED=1 to show the browser. Screenshots are written to the configured runtime output area. More testing notes are available in docs/testing/README.md.

Contributing

Issues and pull requests are welcome:

  • Report bugs or propose features in GitHub Issues.
  • Keep implementation work scoped and include tests proportional to the change.
  • Update CHANGELOG.md with every commit, following the repository contribution rules.

For Datawhale project support and governance, see the Datawhale Open-Source Project Management Committee.

Vibe Blog community QR code

License

This project is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Explorar proyectos relacionados

Cargando…