8000 GitHub - lqomg/ClueArk: 开源个人主题事态监测:用衡定题与绑源,从公开信源写出事态时间线,重要时再提醒你。Docker Compose 自托管。 · GitHub
[go: up one dir, main page]

Skip to content
lqomgPublic

About

开源个人主题事态监测:用衡定题与绑源,从公开信源写出事态时间线,重要时再提醒你。Docker Compose 自托管。

Topics

Resources

Contributing

Stars

56 stars

Watchers

3 watching

Forks

Repository files navigation

ClueArk Logo

ClueArk

简体中文 | English

Open-source personal topic monitoring.
Turn what you care about into a living development timeline. Heng sets the topic and sources; the system filters the noise and alerts you only when it matters.

License: MIT Demo

Demo: clueark.com · Repo: github.com/lqomg/ClueArk

MIT · full stack in this repo (user app, admin, API, worker). Self-host with Docker Compose.

ClueArk home — topics and developments

Who it’s for

  • Individuals tracking a niche beat (policy, tech, markets, people, orgs)
  • Operators who want a self-hosted topic monitor

Features

  • Heng creates topics — conversation at /app/chats: clarify intent, recommend / bind sources, and organize a ~90-day baseline
  • Official topics — browse and subscribe on Explore (/app/explore); Heng can query progress on subscribed topics
  • Unified sources — RSS/Atom, web list pages, social (X / Truth Social; Twidata by default — swap via a custom SocialUpstream for official X API, TweetAPI, etc.; see docs/sources.md)
  • Gated timeline — ingest → embed (Qdrant) → match / admission → LLM author development → notify
  • Home — morning briefing + subscribed / recommended development feeds
  • Admin console — ops UI on a separate port (users, sources, official topics, jobs, …)
  • One Compose stack — gateway, MongoDB, Redis, Qdrant, API, worker, web, admin

Quick start (Docker Compose)

Needs: Docker Compose v2. Recommended ≈ 4C8G (see deploy/README.md; smaller hosts can lower memory limits via override).

git clone https://github.com/lqomg/ClueArk.git
cd ClueArk
cp .env.example .env

Edit .env — minimum to boot and use Heng + the intel pipeline:

# Auth / DB (required on first deploy)
MONGO_INITDB_ROOT_PASSWORD=replace_with_strong_password
MONGODB_PASSWORD=replace_with_strong_password
JWT_SECRET=replace_with_long_random_string
ADMIN_PASSWORD=replace_with_strong_password

# Required to start
REDIS_URL=redis://redis:6379
QDRANT_URL=http://qdrant:6333
FEED_EMBEDDING_API_KEY=your_embedding_api_key

# Recommended (OpenAI-compatible chat LLM — Heng + development authoring)
LLM_BASE_URL=https://api.deepseek.com
LLM_API_KEY=your_llm_api_key
LLM_MODEL=deepseek-chat
docker compose up -d --build
Entry URL
Product http://<host>:${GATEWAY_PORT:-80}/
Admin http://<host>:${ADMIN_PORT:-8081}/ (ADMIN_EMAIL / ADMIN_PASSWORD)
API /api via gateway

Updates: ./deploy-main.sh. Keep volumes intact unless you mean to wipe data (docker compose down -v removes them).

Full env reference: .env.example · deploy notes: deploy/README.md

Configuration → capabilities

Config Enables
REDIS_URL / QDRANT_URL / FEED_EMBEDDING_API_KEY Process boot and the semantic match pipeline
LLM_* Heng, source recommend / baseline, and LLM development authoring
TWIDATA_API_KEY Default social upstream Twidata (X / Truth Social). Official X API / TweetAPI etc. need a custom SocialUpstream — docs/sources.md
Mail / OAuth / SMS vars Matching login and notify channels (password login and seed admin work by default)

Local development

Needs: Node 20+, plus MongoDB, Redis, and Qdrant (Compose infra-only is fine).

# optional: infra only
docker compose up -d mongodb redis qdrant

cd backend && cp .env.example .env   # point REDIS/QDRANT/embedding at local services
npm install && npm run dev          # API + worker

cd frontend && npm install && npm run dev
cd admin-web && npm install && npm run dev

Use backend/.env.example for local API/worker — do not mix Compose service hostnames into a bare-metal .env unless those names resolve.

Repository layout

├── backend/           # NestJS API + worker
├── frontend/          # User web (React)
├── admin-web/         # Admin console
├── data/              # Built-in source seeds
├── deploy/            # Gateway + deploy notes
├── docs/              # Deeper docs (architecture, …)
├── docker-compose.yml
└── .env.example

Stack: React + TypeScript + NestJS + MongoDB + Redis/BullMQ + Qdrant.

How Heng, gates, and the worker pipeline fit together: docs/architecture.md.
Source kinds, Twidata default, and extending social upstreams: docs/sources.md · 中文.

Roadmap

Direction: from "monitoring one topic" to "turning one topic's data directly into publishable articles / videos." Content production is the main later investment.

Near term — make monitoring accurate and fast (current users feel this)

  • Heng "edit existing topic": add / remove a single source, change the baseline window (currently ~90 days), change keywords; preview the diff (added / removed baseline developments, covered source count) before re-running
  • False-positive correction: mark a single development as not relevant and tighten admission, so the same noise class is not re-pushed
  • Official topic catalog: policy / tech / AI / markets / people categories with keyword search and tags; show subscriber count, developments in the last 7 days, and covered source count
  • Real-time delivery: push developments to home / inbox via SSE within 30 seconds of write; mobile FCM / APNs behind env toggles (falls back to web notification + email when unconfigured)
  • Localized developments: build on the existing localize_developments job to ship zh / en development body and title
  • [~] More sources without changing the Twidata default: X List, BlueSky, YouTube RSS, etc.; new social upstreams via a custom SocialUpstream per docs/sources.md

Mid term — data export: make content creatable (creator MVP)

  • Topic export: one-click Markdown / HTML / PDF timeline export with evidence source links (extends the existing share card)
  • Draft generator (drafts only): LLM platform templates — WeChat long-form, Zhihu, Xiaohongshu image-text, Weibo / X short posts; styles: brief / analysis / deep-dive; each paragraph auto-cites sources with an original-link backtrace
  • Human editing desk (required): drafts are editable sentence-by-sentence; a draft may not enter the publish queue until a human confirms it
  • Cover / evidence images: reuse extract_evidence_image extraction + re-hosting to build image-text covers and infographic cards

Later — creator pipeline: data → article / video → distribution (main investment)

  • Video generator: developments → voiceover script → storyboard → TTS → subtitles → media composition; image-carousel + narration, exported as 9:16 vertical and 16:9 horizontal
  • Platform distribution (three tiers, see note below):
    • L1 copy / download / jump-to-composer (all platforms)
    • L2 auto-publish via official API: YouTube / X / Bilibili and other open-API platforms
    • L3 semi-auto: WeChat Official Account / Toutiao / Douyin / Xiaohongshu, which lack a full open API, stay human-published
  • Sequel loop: when a topic gets new developments after a publish, auto-generate a follow-up draft from the published piece as context; topic bank: topic → outline → draft → published

Priorities: Issues.

Contributing

Issues and PRs welcome. See CONTRIBUTING.md.

Compliance

Respect laws, site terms, and robots.txt. You are responsible for crawling and third-party API use.

License

MIT — the complete product in this repository is open source.

Names and logos (ClueArk / 观枢) are covered by a separate trademark policy. MIT covers the code; it does not grant rights to present a fork as the official project.

About

开源个人主题事态监测:用衡定题与绑源,从公开信源写出事态时间线,重要时再提醒你。Docker Compose 自托管。

Topics

Resources

Contributing

Stars

56 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages

0