Something went wrong. Try again.
Something went wrong. Try again.
aligned.click #
A Bluesky feed product: one big pool of posts, one main feed, and topics — each a member's literal answer to "what do you want to see?" A post joins the main feed when its embedding is close enough to a topic's embedding and the fit judge says it fits. Keywords are retrieval only; they widen the pool, they never decide membership.
Layout #
app/— the web product (aligned.click). Public reads; writing a request is a signed record in the writer's own repo. Members (private/members.json) also get fit/no-fit buttons under posts in topics — private ground truth the judge will learn from.feed/— the core.store.py(LanceDB: posts pool, keywords, topics, assignments) is the single interface between activities;quality.pygrades a post once (0-10, reused by every topic);fit.pydecides the binary per-topic membership;topics.pyowns the embedding-region membership passes;keywords.pyharvests and indexes retrieval terms.ingest/— the background worker. Jetstream forward-fill (keyword matching, request-record watching),backfill.py(search so the pool is not only forward-filled), filter management.feedgen/— the atproto custom feed server (getFeedSkeleton) for the main feed.admin/— the operator site (/admin, routed by the proxy): pool stats, keyword lifecycle, topic processing state + exemplars. Gate:private/members.json.lexicons/—click.aligned.feed.request, the record that creates a topic.auth/— the OAuth sidecar (own per product, no allowlist), the record write path, and the publisher for the lexicons + feed generator records.shared/— GreenPT transport, embeddings, post normalization, search.private/— runtime state (gitignored): the LanceDB store, sessions.deploy/— service units and the tunnel.
Run #
python3 -m venv .venv && .venv/bin/pip install -r requirements.txt
.venv/bin/python ingest/worker.py # the pool grower + judge
.venv/bin/python feedgen/server.py # the atproto feed server
.venv/bin/python app/server.py # the web product
.venv/bin/python admin/server.py # the admin site (via /admin)
Environment (.env, gitignored): GREENPT_API_KEY, the crawler's
INDEX_BLUESKY_HANDLE / INDEX_BLUESKY_APP_PASSWORD for search, and the
thresholds in feed/state.py (env-tunable).
Model #
- Pool — every post any keyword ever retrieved, embedded, deduped by at:// URI. Grades are a property of the post, computed once and reused.
- Topics — one per
click.aligned.feed.requestrecord, in the creator's repo. Their words, embedded. No keywords on a topic. - Membership —
cosine(post, topic) >= thresholdandfit(post, topic). - Keywords — widen the pool only; a topic's region gets covered by harvesting its text, but assignment never looks at keywords.
License #
GNU AGPL v3 or later. See LICENSE.