postloom 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- postloom-0.1.0/.gitignore +30 -0
- postloom-0.1.0/.python-version +1 -0
- postloom-0.1.0/CHANGELOG.md +78 -0
- postloom-0.1.0/LICENSE.md +105 -0
- postloom-0.1.0/PKG-INFO +405 -0
- postloom-0.1.0/README.md +367 -0
- postloom-0.1.0/docs/architecture.md +496 -0
- postloom-0.1.0/docs/guide.md +270 -0
- postloom-0.1.0/install.ps1 +113 -0
- postloom-0.1.0/install.sh +107 -0
- postloom-0.1.0/pyproject.toml +139 -0
- postloom-0.1.0/scripts/calibrate_embeddings.py +128 -0
- postloom-0.1.0/scripts/check.sh +27 -0
- postloom-0.1.0/scripts/ci/check_install.ps1 +46 -0
- postloom-0.1.0/scripts/ci/check_install.sh +55 -0
- postloom-0.1.0/scripts/demo/library.py +501 -0
- postloom-0.1.0/scripts/demo/og_image.py +66 -0
- postloom-0.1.0/scripts/demo/screenshots.py +174 -0
- postloom-0.1.0/scripts/demo/tour_audio.py +321 -0
- postloom-0.1.0/scripts/release.sh +36 -0
- postloom-0.1.0/src/postloom/__init__.py +37 -0
- postloom-0.1.0/src/postloom/__main__.py +18 -0
- postloom-0.1.0/src/postloom/about.py +137 -0
- postloom-0.1.0/src/postloom/adapters/__init__.py +1 -0
- postloom-0.1.0/src/postloom/adapters/clock.py +10 -0
- postloom-0.1.0/src/postloom/adapters/export/__init__.py +15 -0
- postloom-0.1.0/src/postloom/adapters/export/cypher.py +151 -0
- postloom-0.1.0/src/postloom/adapters/export/graphml.py +119 -0
- postloom-0.1.0/src/postloom/adapters/export/property_graph.py +239 -0
- postloom-0.1.0/src/postloom/adapters/export/rdf.py +640 -0
- postloom-0.1.0/src/postloom/adapters/llm/__init__.py +1 -0
- postloom-0.1.0/src/postloom/adapters/llm/anthropic.py +195 -0
- postloom-0.1.0/src/postloom/adapters/llm/base.py +320 -0
- postloom-0.1.0/src/postloom/adapters/llm/chat.py +67 -0
- postloom-0.1.0/src/postloom/adapters/llm/content.py +183 -0
- postloom-0.1.0/src/postloom/adapters/llm/embeddings.py +93 -0
- postloom-0.1.0/src/postloom/adapters/llm/gateway.py +134 -0
- postloom-0.1.0/src/postloom/adapters/llm/gemini.py +261 -0
- postloom-0.1.0/src/postloom/adapters/llm/http.py +105 -0
- postloom-0.1.0/src/postloom/adapters/llm/local_embeddings.py +82 -0
- postloom-0.1.0/src/postloom/adapters/llm/ollama.py +214 -0
- postloom-0.1.0/src/postloom/adapters/llm/openai_compat.py +329 -0
- postloom-0.1.0/src/postloom/adapters/llm/prompts.py +283 -0
- postloom-0.1.0/src/postloom/adapters/llm/providers.py +261 -0
- postloom-0.1.0/src/postloom/adapters/llm/structured.py +127 -0
- postloom-0.1.0/src/postloom/adapters/storage/__init__.py +0 -0
- postloom-0.1.0/src/postloom/adapters/storage/cached.py +283 -0
- postloom-0.1.0/src/postloom/adapters/storage/codec.py +229 -0
- postloom-0.1.0/src/postloom/adapters/storage/database.py +176 -0
- postloom-0.1.0/src/postloom/adapters/storage/journaled.py +108 -0
- postloom-0.1.0/src/postloom/adapters/storage/memory.py +154 -0
- postloom-0.1.0/src/postloom/adapters/storage/reviews.py +81 -0
- postloom-0.1.0/src/postloom/adapters/storage/search.py +241 -0
- postloom-0.1.0/src/postloom/adapters/storage/sqlite.py +245 -0
- postloom-0.1.0/src/postloom/adapters/storage/stamps.py +42 -0
- postloom-0.1.0/src/postloom/adapters/storage/usage.py +101 -0
- postloom-0.1.0/src/postloom/adapters/vault/__init__.py +0 -0
- postloom-0.1.0/src/postloom/adapters/vault/journal.py +114 -0
- postloom-0.1.0/src/postloom/adapters/vault/markdown_vault.py +520 -0
- postloom-0.1.0/src/postloom/adapters/vault/media_files.py +79 -0
- postloom-0.1.0/src/postloom/adapters/vault/notes.py +118 -0
- postloom-0.1.0/src/postloom/adapters/vault/reader.py +514 -0
- postloom-0.1.0/src/postloom/application/__init__.py +5 -0
- postloom-0.1.0/src/postloom/application/defaults.py +14 -0
- postloom-0.1.0/src/postloom/application/errors.py +41 -0
- postloom-0.1.0/src/postloom/application/ports/__init__.py +52 -0
- postloom-0.1.0/src/postloom/application/ports/chat.py +30 -0
- postloom-0.1.0/src/postloom/application/ports/clock.py +10 -0
- postloom-0.1.0/src/postloom/application/ports/embeddings.py +35 -0
- postloom-0.1.0/src/postloom/application/ports/extraction.py +121 -0
- postloom-0.1.0/src/postloom/application/ports/graph_export.py +40 -0
- postloom-0.1.0/src/postloom/application/ports/journal.py +28 -0
- postloom-0.1.0/src/postloom/application/ports/media.py +42 -0
- postloom-0.1.0/src/postloom/application/ports/repository.py +134 -0
- postloom-0.1.0/src/postloom/application/ports/reviews.py +60 -0
- postloom-0.1.0/src/postloom/application/ports/search_index.py +62 -0
- postloom-0.1.0/src/postloom/application/ports/thread_parser.py +44 -0
- postloom-0.1.0/src/postloom/application/ports/usage.py +68 -0
- postloom-0.1.0/src/postloom/application/ports/vault.py +201 -0
- postloom-0.1.0/src/postloom/application/use_cases/__init__.py +134 -0
- postloom-0.1.0/src/postloom/application/use_cases/ask_question.py +526 -0
- postloom-0.1.0/src/postloom/application/use_cases/browse_content.py +164 -0
- postloom-0.1.0/src/postloom/application/use_cases/curation.py +372 -0
- postloom-0.1.0/src/postloom/application/use_cases/discussions.py +272 -0
- postloom-0.1.0/src/postloom/application/use_cases/export_graph.py +106 -0
- postloom-0.1.0/src/postloom/application/use_cases/graph_view.py +126 -0
- postloom-0.1.0/src/postloom/application/use_cases/index_content.py +199 -0
- postloom-0.1.0/src/postloom/application/use_cases/ingest_article.py +309 -0
- postloom-0.1.0/src/postloom/application/use_cases/links.py +313 -0
- postloom-0.1.0/src/postloom/application/use_cases/media.py +191 -0
- postloom-0.1.0/src/postloom/application/use_cases/mentions.py +573 -0
- postloom-0.1.0/src/postloom/application/use_cases/overview.py +104 -0
- postloom-0.1.0/src/postloom/application/use_cases/people.py +215 -0
- postloom-0.1.0/src/postloom/application/use_cases/posts.py +265 -0
- postloom-0.1.0/src/postloom/application/use_cases/relations.py +285 -0
- postloom-0.1.0/src/postloom/application/use_cases/reply_drafts.py +195 -0
- postloom-0.1.0/src/postloom/application/use_cases/search_content.py +185 -0
- postloom-0.1.0/src/postloom/application/use_cases/seed_topics.py +34 -0
- postloom-0.1.0/src/postloom/application/use_cases/usage.py +130 -0
- postloom-0.1.0/src/postloom/application/use_cases/vault_sync.py +384 -0
- postloom-0.1.0/src/postloom/bootstrap.py +460 -0
- postloom-0.1.0/src/postloom/config.py +56 -0
- postloom-0.1.0/src/postloom/domain/__init__.py +6 -0
- postloom-0.1.0/src/postloom/domain/chunking.py +105 -0
- postloom-0.1.0/src/postloom/domain/content.py +143 -0
- postloom-0.1.0/src/postloom/domain/discussion.py +261 -0
- postloom-0.1.0/src/postloom/domain/entities.py +102 -0
- postloom-0.1.0/src/postloom/domain/errors.py +25 -0
- postloom-0.1.0/src/postloom/domain/graph.py +115 -0
- postloom-0.1.0/src/postloom/domain/media.py +153 -0
- postloom-0.1.0/src/postloom/domain/people.py +119 -0
- postloom-0.1.0/src/postloom/domain/provenance.py +58 -0
- postloom-0.1.0/src/postloom/domain/text.py +428 -0
- postloom-0.1.0/src/postloom/interfaces/__init__.py +4 -0
- postloom-0.1.0/src/postloom/interfaces/cli/__init__.py +0 -0
- postloom-0.1.0/src/postloom/interfaces/cli/doctor.py +179 -0
- postloom-0.1.0/src/postloom/interfaces/cli/main.py +729 -0
- postloom-0.1.0/src/postloom/interfaces/desktop/__init__.py +1 -0
- postloom-0.1.0/src/postloom/interfaces/desktop/icons/postloom.icns +0 -0
- postloom-0.1.0/src/postloom/interfaces/desktop/icons/postloom.ico +0 -0
- postloom-0.1.0/src/postloom/interfaces/desktop/icons/postloom.png +0 -0
- postloom-0.1.0/src/postloom/interfaces/desktop/ollama.py +196 -0
- postloom-0.1.0/src/postloom/interfaces/desktop/shortcuts.py +385 -0
- postloom-0.1.0/src/postloom/interfaces/web/__init__.py +1 -0
- postloom-0.1.0/src/postloom/interfaces/web/app.py +1077 -0
- postloom-0.1.0/src/postloom/interfaces/web/schemas.py +689 -0
- postloom-0.1.0/src/postloom/interfaces/web/static/app.js +3116 -0
- postloom-0.1.0/src/postloom/interfaces/web/static/fonts/Geist-Medium.woff2 +0 -0
- postloom-0.1.0/src/postloom/interfaces/web/static/fonts/Geist-OFL.txt +93 -0
- postloom-0.1.0/src/postloom/interfaces/web/static/fonts/Geist-Regular.woff2 +0 -0
- postloom-0.1.0/src/postloom/interfaces/web/static/fonts/Geist-SemiBold.woff2 +0 -0
- postloom-0.1.0/src/postloom/interfaces/web/static/fonts/SourceSerif4-OFL.md +93 -0
- postloom-0.1.0/src/postloom/interfaces/web/static/fonts/SourceSerif4Variable-Italic.ttf.woff2 +0 -0
- postloom-0.1.0/src/postloom/interfaces/web/static/fonts/SourceSerif4Variable-Roman.ttf.woff2 +0 -0
- postloom-0.1.0/src/postloom/interfaces/web/static/icon.svg +12 -0
- postloom-0.1.0/src/postloom/interfaces/web/static/index.html +81 -0
- postloom-0.1.0/src/postloom/interfaces/web/static/style.css +1028 -0
- postloom-0.1.0/src/postloom/interfaces/web/static/theme.js +16 -0
- postloom-0.1.0/src/postloom/py.typed +0 -0
- postloom-0.1.0/src/postloom/settings.py +437 -0
- postloom-0.1.0/tests/__init__.py +0 -0
- postloom-0.1.0/tests/architecture/test_layers.py +62 -0
- postloom-0.1.0/tests/asgi.py +110 -0
- postloom-0.1.0/tests/conftest.py +21 -0
- postloom-0.1.0/tests/contract/test_repository.py +318 -0
- postloom-0.1.0/tests/contract/test_search_index.py +167 -0
- postloom-0.1.0/tests/contract/test_usage_ledger.py +50 -0
- postloom-0.1.0/tests/e2e/__init__.py +0 -0
- postloom-0.1.0/tests/e2e/test_ui.py +583 -0
- postloom-0.1.0/tests/fake_ollama.py +48 -0
- postloom-0.1.0/tests/fakes.py +306 -0
- postloom-0.1.0/tests/fancy.py +57 -0
- postloom-0.1.0/tests/fixtures/README.md +14 -0
- postloom-0.1.0/tests/fixtures/comments/caching_thread.txt +52 -0
- postloom-0.1.0/tests/fixtures/semantic_caching_part3/article.txt +1 -0
- postloom-0.1.0/tests/fixtures/semantic_caching_part3/post.txt +1 -0
- postloom-0.1.0/tests/graph_library.py +144 -0
- postloom-0.1.0/tests/home_support.py +130 -0
- postloom-0.1.0/tests/integration/__init__.py +0 -0
- postloom-0.1.0/tests/integration/test_local_embeddings.py +39 -0
- postloom-0.1.0/tests/integration/test_scale.py +205 -0
- postloom-0.1.0/tests/llm_support.py +77 -0
- postloom-0.1.0/tests/unit/adapters/test_anthropic_ollama.py +193 -0
- postloom-0.1.0/tests/unit/adapters/test_cached_repository.py +47 -0
- postloom-0.1.0/tests/unit/adapters/test_gateway.py +126 -0
- postloom-0.1.0/tests/unit/adapters/test_gemini.py +494 -0
- postloom-0.1.0/tests/unit/adapters/test_graph_export.py +222 -0
- postloom-0.1.0/tests/unit/adapters/test_http_transport.py +77 -0
- postloom-0.1.0/tests/unit/adapters/test_image_description.py +87 -0
- postloom-0.1.0/tests/unit/adapters/test_markdown_vault.py +74 -0
- postloom-0.1.0/tests/unit/adapters/test_openai_compat.py +212 -0
- postloom-0.1.0/tests/unit/adapters/test_sqlite_repository.py +100 -0
- postloom-0.1.0/tests/unit/adapters/test_vault_reading.py +546 -0
- postloom-0.1.0/tests/unit/application/test_ask_and_browse.py +172 -0
- postloom-0.1.0/tests/unit/application/test_curation.py +296 -0
- postloom-0.1.0/tests/unit/application/test_discussions.py +254 -0
- postloom-0.1.0/tests/unit/application/test_export_graph.py +46 -0
- postloom-0.1.0/tests/unit/application/test_fancy_text.py +85 -0
- postloom-0.1.0/tests/unit/application/test_grounded_chat.py +169 -0
- postloom-0.1.0/tests/unit/application/test_ingest_article.py +188 -0
- postloom-0.1.0/tests/unit/application/test_links.py +214 -0
- postloom-0.1.0/tests/unit/application/test_media.py +182 -0
- postloom-0.1.0/tests/unit/application/test_mentions.py +406 -0
- postloom-0.1.0/tests/unit/application/test_people.py +150 -0
- postloom-0.1.0/tests/unit/application/test_posts.py +240 -0
- postloom-0.1.0/tests/unit/application/test_reply_drafts.py +178 -0
- postloom-0.1.0/tests/unit/application/test_search.py +176 -0
- postloom-0.1.0/tests/unit/application/test_vault_sync.py +328 -0
- postloom-0.1.0/tests/unit/domain/test_chunking.py +90 -0
- postloom-0.1.0/tests/unit/domain/test_discussion.py +150 -0
- postloom-0.1.0/tests/unit/domain/test_graph.py +65 -0
- postloom-0.1.0/tests/unit/domain/test_people.py +74 -0
- postloom-0.1.0/tests/unit/domain/test_text.py +293 -0
- postloom-0.1.0/tests/unit/interfaces/test_cli.py +486 -0
- postloom-0.1.0/tests/unit/interfaces/test_desktop.py +123 -0
- postloom-0.1.0/tests/unit/interfaces/test_web.py +1175 -0
- postloom-0.1.0/tests/unit/test_bootstrap.py +74 -0
- postloom-0.1.0/tests/unit/test_command.py +44 -0
- postloom-0.1.0/tests/unit/test_config.py +166 -0
- postloom-0.1.0/tests/unit/test_site.py +73 -0
- postloom-0.1.0/uv.lock +1740 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Python
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*.egg-info/
|
|
5
|
+
build/
|
|
6
|
+
dist/
|
|
7
|
+
.venv/
|
|
8
|
+
.python-version.local
|
|
9
|
+
|
|
10
|
+
# Tooling caches
|
|
11
|
+
.pytest_cache/
|
|
12
|
+
.ruff_cache/
|
|
13
|
+
.coverage
|
|
14
|
+
coverage.xml
|
|
15
|
+
htmlcov/
|
|
16
|
+
|
|
17
|
+
# Local secrets and user data — never commit these
|
|
18
|
+
.env
|
|
19
|
+
*.env.local
|
|
20
|
+
/data/
|
|
21
|
+
/vault/
|
|
22
|
+
*.db
|
|
23
|
+
*.db-journal
|
|
24
|
+
*.db-wal
|
|
25
|
+
*.db-shm
|
|
26
|
+
|
|
27
|
+
# Editors / OS
|
|
28
|
+
.idea/
|
|
29
|
+
.vscode/
|
|
30
|
+
.DS_Store
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.12
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to postloom. The format follows
|
|
4
|
+
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and versions follow
|
|
5
|
+
[Semantic Versioning](https://semver.org/). Before 1.0, a minor version may change how
|
|
6
|
+
data is stored; postloom upgrades your data folder itself when it starts.
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
## [0.1.0] - 2026-11-26
|
|
11
|
+
|
|
12
|
+
The first public release.
|
|
13
|
+
|
|
14
|
+
### Your library
|
|
15
|
+
- Paste a LinkedIn article and the post that shared it. postloom restores the formatting,
|
|
16
|
+
files it under your topics, links its series and indexes it for search. Stand-alone
|
|
17
|
+
posts get their own page too, with or without a model.
|
|
18
|
+
- Paste a post's comment section to save every conversation under it, with who answered
|
|
19
|
+
whom. Review each message before it is saved; pasting again later adds only new ones.
|
|
20
|
+
- Mentions: postloom proposes the people, organisations, places, events, projects,
|
|
21
|
+
datasets, methods and links a post or article names, with the sentence that names each,
|
|
22
|
+
and new topics. Only what you confirm enters your graph; every entry can be renamed,
|
|
23
|
+
recategorised, merged or deleted later.
|
|
24
|
+
- People: everyone who commented, their headline history, your private notes and every
|
|
25
|
+
conversation you had with them, across all your posts.
|
|
26
|
+
- Images and videos: add the pictures, slides and videos you posted. They are found by
|
|
27
|
+
your captions, by what a model sees in an image (including the text in it) and by a
|
|
28
|
+
video's subtitles.
|
|
29
|
+
- A Library page with search, filters and sorting, and a graph you can focus on any
|
|
30
|
+
article, topic, person or mention. Everything stays quick with hundreds of articles and
|
|
31
|
+
thousands of people.
|
|
32
|
+
- Edit an article's title, summary, topics, series, date and link; delete articles and
|
|
33
|
+
posts; add, rename, merge and remove topics.
|
|
34
|
+
|
|
35
|
+
### Asking and replying
|
|
36
|
+
- Search by meaning and by keyword across articles, posts, comments, images and videos,
|
|
37
|
+
in many languages, including right-to-left scripts and text written with LinkedIn
|
|
38
|
+
"fancy text" converters.
|
|
39
|
+
- Chat across the library, about one article or post, or about one person. Answers come
|
|
40
|
+
only from your own content and cite their sources; answers that cite nothing are
|
|
41
|
+
flagged. People, topics and series named in a question are looked up in the graph.
|
|
42
|
+
- Reply drafts in your voice, from the article, the whole conversation and what you know
|
|
43
|
+
about the person. postloom never posts anything.
|
|
44
|
+
|
|
45
|
+
### Your data
|
|
46
|
+
- Everything is plain Markdown in an Obsidian-compatible vault, and the vault is the
|
|
47
|
+
source of truth: notes edited in Obsidian are read back, and a lost index is rebuilt
|
|
48
|
+
from the folder, including which links you accepted or dismissed.
|
|
49
|
+
- Notes postloom can't read are named and nothing is guessed; files it no longer needs go
|
|
50
|
+
to a trash folder, never deleted; your own notes are never touched.
|
|
51
|
+
- Delete a person: erases their profile, notes and every message they wrote, everywhere,
|
|
52
|
+
for data-removal requests.
|
|
53
|
+
- Export the whole graph, with where every link came from, as RDF (Turtle or JSON-LD, with
|
|
54
|
+
schema.org, SKOS and PROV-O), as a Cypher script for Neo4j, or as GraphML for Gephi,
|
|
55
|
+
yEd, Cytoscape and NetworkX. The vocabulary is published at
|
|
56
|
+
https://postloom-app.vercel.app/ns.
|
|
57
|
+
|
|
58
|
+
### Models and cost
|
|
59
|
+
- Bring your own key: Gemini, Claude, OpenAI, OpenRouter, any OpenAI-compatible server,
|
|
60
|
+
or free local models with Ollama, set up from Settings without a terminal.
|
|
61
|
+
- Free local embeddings for search, in English or many languages.
|
|
62
|
+
- A usage page per task and model, and an optional monthly budget that stops paid calls.
|
|
63
|
+
When a provider's small model is overloaded, reading falls back to a larger one.
|
|
64
|
+
- `postloom doctor` makes one tiny real call per configured model and explains slow ones.
|
|
65
|
+
|
|
66
|
+
### Install and use
|
|
67
|
+
- One-line installers for macOS, Linux and Windows that need nothing installed first and
|
|
68
|
+
no administrator rights. They add a Postloom icon, update when run again and uninstall
|
|
69
|
+
without touching your data.
|
|
70
|
+
- Clear forms that say what to paste and where, a text size setting, light and dark
|
|
71
|
+
themes, and an About page with the license and credits.
|
|
72
|
+
|
|
73
|
+
### Privacy
|
|
74
|
+
- Runs only on your computer and listens only on 127.0.0.1. API keys stay in your data
|
|
75
|
+
folder and are never sent to the browser. No account, no telemetry.
|
|
76
|
+
|
|
77
|
+
[Unreleased]: https://github.com/mdhabibi/postloom/compare/v0.1.0...HEAD
|
|
78
|
+
[0.1.0]: https://github.com/mdhabibi/postloom/releases/tag/v0.1.0
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# Functional Source License, Version 1.1, ALv2 Future License
|
|
2
|
+
|
|
3
|
+
## Abbreviation
|
|
4
|
+
|
|
5
|
+
FSL-1.1-ALv2
|
|
6
|
+
|
|
7
|
+
## Notice
|
|
8
|
+
|
|
9
|
+
Copyright 2026 Mahdi Habibi
|
|
10
|
+
|
|
11
|
+
## Terms and Conditions
|
|
12
|
+
|
|
13
|
+
### Licensor ("We")
|
|
14
|
+
|
|
15
|
+
The party offering the Software under these Terms and Conditions.
|
|
16
|
+
|
|
17
|
+
### The Software
|
|
18
|
+
|
|
19
|
+
The "Software" is each version of the software that we make available under
|
|
20
|
+
these Terms and Conditions, as indicated by our inclusion of these Terms and
|
|
21
|
+
Conditions with the Software.
|
|
22
|
+
|
|
23
|
+
### License Grant
|
|
24
|
+
|
|
25
|
+
Subject to your compliance with this License Grant and the Patents,
|
|
26
|
+
Redistribution and Trademark clauses below, we hereby grant you the right to
|
|
27
|
+
use, copy, modify, create derivative works, publicly perform, publicly display
|
|
28
|
+
and redistribute the Software for any Permitted Purpose identified below.
|
|
29
|
+
|
|
30
|
+
### Permitted Purpose
|
|
31
|
+
|
|
32
|
+
A Permitted Purpose is any purpose other than a Competing Use. A Competing Use
|
|
33
|
+
means making the Software available to others in a commercial product or
|
|
34
|
+
service that:
|
|
35
|
+
|
|
36
|
+
1. substitutes for the Software;
|
|
37
|
+
|
|
38
|
+
2. substitutes for any other product or service we offer using the Software
|
|
39
|
+
that exists as of the date we make the Software available; or
|
|
40
|
+
|
|
41
|
+
3. offers the same or substantially similar functionality as the Software.
|
|
42
|
+
|
|
43
|
+
Permitted Purposes specifically include using the Software:
|
|
44
|
+
|
|
45
|
+
1. for your internal use and access;
|
|
46
|
+
|
|
47
|
+
2. for non-commercial education;
|
|
48
|
+
|
|
49
|
+
3. for non-commercial research; and
|
|
50
|
+
|
|
51
|
+
4. in connection with professional services that you provide to a licensee
|
|
52
|
+
using the Software in accordance with these Terms and Conditions.
|
|
53
|
+
|
|
54
|
+
### Patents
|
|
55
|
+
|
|
56
|
+
To the extent your use for a Permitted Purpose would necessarily infringe our
|
|
57
|
+
patents, the license grant above includes a license under our patents. If you
|
|
58
|
+
make a claim against any party that the Software infringes or contributes to
|
|
59
|
+
the infringement of any patent, then your patent license to the Software ends
|
|
60
|
+
immediately.
|
|
61
|
+
|
|
62
|
+
### Redistribution
|
|
63
|
+
|
|
64
|
+
The Terms and Conditions apply to all copies, modifications and derivatives of
|
|
65
|
+
the Software.
|
|
66
|
+
|
|
67
|
+
If you redistribute any copies, modifications or derivatives of the Software,
|
|
68
|
+
you must include a copy of or a link to these Terms and Conditions and not
|
|
69
|
+
remove any copyright notices provided in or with the Software.
|
|
70
|
+
|
|
71
|
+
### Disclaimer
|
|
72
|
+
|
|
73
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR
|
|
74
|
+
IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR
|
|
75
|
+
PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
|
|
76
|
+
|
|
77
|
+
IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE
|
|
78
|
+
SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES,
|
|
79
|
+
EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.
|
|
80
|
+
|
|
81
|
+
### Trademarks
|
|
82
|
+
|
|
83
|
+
Except for displaying the License Details and identifying us as the origin of
|
|
84
|
+
the Software, you have no right under these Terms and Conditions to use our
|
|
85
|
+
trademarks, trade names, service marks or product names.
|
|
86
|
+
|
|
87
|
+
## Grant of Future License
|
|
88
|
+
|
|
89
|
+
We hereby irrevocably grant you an additional license to use the Software under
|
|
90
|
+
the Apache License, Version 2.0 that is effective on the second anniversary of
|
|
91
|
+
the date we make the Software available. On or after that date, you may use the
|
|
92
|
+
Software under the Apache License, Version 2.0, in which case the following
|
|
93
|
+
will apply:
|
|
94
|
+
|
|
95
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
96
|
+
this file except in compliance with the License.
|
|
97
|
+
|
|
98
|
+
You may obtain a copy of the License at
|
|
99
|
+
|
|
100
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
101
|
+
|
|
102
|
+
Unless required by applicable law or agreed to in writing, software distributed
|
|
103
|
+
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
104
|
+
CONDITIONS OF ANY KIND, either express or implied. See the License for the
|
|
105
|
+
specific language governing permissions and limitations under the License.
|
postloom-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,405 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: postloom
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A private, local-first memory of your LinkedIn articles, posts, comments and the people in them: search, chat, a knowledge graph and reply drafts, with any LLM.
|
|
5
|
+
Project-URL: Homepage, https://postloom-app.vercel.app/
|
|
6
|
+
Project-URL: Source, https://github.com/mdhabibi/postloom
|
|
7
|
+
Project-URL: Issues, https://github.com/mdhabibi/postloom/issues
|
|
8
|
+
Project-URL: Changelog, https://github.com/mdhabibi/postloom/blob/main/CHANGELOG.md
|
|
9
|
+
Author: Dr. Mahdi Habibi
|
|
10
|
+
License-Expression: FSL-1.1-ALv2
|
|
11
|
+
License-File: LICENSE.md
|
|
12
|
+
Keywords: graph-rag,knowledge-graph,linkedin,llm,local-first,obsidian,ollama,personal-knowledge-management,privacy,rag,semantic-search
|
|
13
|
+
Classifier: Development Status :: 4 - Beta
|
|
14
|
+
Classifier: Environment :: Web Environment
|
|
15
|
+
Classifier: Intended Audience :: Developers
|
|
16
|
+
Classifier: Intended Audience :: End Users/Desktop
|
|
17
|
+
Classifier: Natural Language :: English
|
|
18
|
+
Classifier: Operating System :: MacOS
|
|
19
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
20
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
21
|
+
Classifier: Programming Language :: Python :: 3
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
26
|
+
Classifier: Topic :: Office/Business
|
|
27
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
28
|
+
Classifier: Topic :: Text Processing :: Indexing
|
|
29
|
+
Classifier: Typing :: Typed
|
|
30
|
+
Requires-Python: >=3.11
|
|
31
|
+
Requires-Dist: fastembed>=0.5; sys_platform != 'darwin' or platform_machine != 'x86_64'
|
|
32
|
+
Requires-Dist: pydantic>=2.7
|
|
33
|
+
Requires-Dist: pyyaml>=6.0
|
|
34
|
+
Requires-Dist: starlette>=0.40
|
|
35
|
+
Requires-Dist: truststore>=0.10
|
|
36
|
+
Requires-Dist: uvicorn>=0.30
|
|
37
|
+
Description-Content-Type: text/markdown
|
|
38
|
+
|
|
39
|
+
<div align="center">
|
|
40
|
+
|
|
41
|
+
<img src="https://raw.githubusercontent.com/mdhabibi/postloom/main/site/img/icon.svg" width="72" height="72" alt="">
|
|
42
|
+
|
|
43
|
+
# postloom
|
|
44
|
+
|
|
45
|
+
**Your LinkedIn, remembered.**
|
|
46
|
+
|
|
47
|
+
A private, local-first memory of your articles, posts, every comment under them and the
|
|
48
|
+
people who wrote them: search, chat, a knowledge graph and reply drafts, with any AI model
|
|
49
|
+
or none.
|
|
50
|
+
|
|
51
|
+
[](https://github.com/mdhabibi/postloom/actions/workflows/ci.yml)
|
|
52
|
+
[](#install)
|
|
53
|
+
[](#install)
|
|
54
|
+
[](https://github.com/mdhabibi/postloom/blob/main/LICENSE.md)
|
|
55
|
+
|
|
56
|
+
[**Website**](https://postloom-app.vercel.app/) · [**Tour**](https://postloom-app.vercel.app/tour) · [**Install**](#install) ·
|
|
57
|
+
[**User guide**](https://github.com/mdhabibi/postloom/blob/main/docs/guide.md) · [**What's new**](https://github.com/mdhabibi/postloom/blob/main/CHANGELOG.md)
|
|
58
|
+
|
|
59
|
+
</div>
|
|
60
|
+
|
|
61
|
+
You publish a post or an article, and a conversation starts in the comments. A week later
|
|
62
|
+
it's all buried in the feed. postloom keeps it: paste in your post or article, and it becomes
|
|
63
|
+
a connected note in your own graph, linked to its topics, its series, the links and hashtags
|
|
64
|
+
you used, and every comment and reply. Then you can chat with anything you wrote and its
|
|
65
|
+
discussion, see who engages with your work, and draft replies grounded in what you actually
|
|
66
|
+
wrote.
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
https://github.com/user-attachments/assets/0b2f2c29-c153-4e21-a0fa-3c1486bf95ab
|
|
70
|
+
|
|
71
|
+
*A two-minute tour with a fictional library. [Watch it on the website](https://postloom-app.vercel.app/tour), chapter by chapter.*
|
|
72
|
+
|
|
73
|
+

|
|
74
|
+
|
|
75
|
+
<p align="center">
|
|
76
|
+
<img src="https://raw.githubusercontent.com/mdhabibi/postloom/main/site/img/chat.png" width="49%" alt="A question about the library answered with numbered sources from the author's own posts and comments">
|
|
77
|
+
<img src="https://raw.githubusercontent.com/mdhabibi/postloom/main/site/img/graph.png" width="49%" alt="The graph focused on one person: the articles they discussed, their topics and the other people in those conversations">
|
|
78
|
+
</p>
|
|
79
|
+
|
|
80
|
+
*Screenshots use a fictional library: the author, the people and the numbers are invented.
|
|
81
|
+
`scripts/demo/screenshots.py` rebuilds it and retakes them.*
|
|
82
|
+
|
|
83
|
+
## Why postloom
|
|
84
|
+
|
|
85
|
+
- **Runs on your machine.** Your writing and the people you talk to stay on your computer.
|
|
86
|
+
No account, no cloud, no telemetry.
|
|
87
|
+
- **Any model, your key.** Gemini, Claude, OpenAI, OpenRouter, any OpenAI-compatible
|
|
88
|
+
server, or free local models with Ollama. Search runs on your computer for free. A usage
|
|
89
|
+
page shows what every task costs, and an optional monthly budget caps it.
|
|
90
|
+
- **Your files, not a database you can't read.** Everything lives in a plain Markdown folder
|
|
91
|
+
that is also a valid [Obsidian](https://obsidian.md) vault. It is the source of truth:
|
|
92
|
+
edit a note and postloom reads the change; lose the index and postloom rebuilds itself
|
|
93
|
+
from the folder. Backing up that one folder backs up everything.
|
|
94
|
+
- **A graph you can trust.** Links postloom reads from your own text are facts; links an AI
|
|
95
|
+
suggests stay suggestions until you accept them. Nothing you decided is ever overwritten,
|
|
96
|
+
and history is kept instead of deleted.
|
|
97
|
+
- **Answers you can check.** Chat answers only from your own articles, posts and comments,
|
|
98
|
+
cites the passage behind every claim, and says "not found" instead of guessing.
|
|
99
|
+
- **Knows your audience.** Every commenter becomes a person in the graph, identified by their
|
|
100
|
+
LinkedIn profile URL, with every article they've interacted with. Anyone can be removed
|
|
101
|
+
completely when they ask.
|
|
102
|
+
|
|
103
|
+
## Install
|
|
104
|
+
|
|
105
|
+
Four steps, about two minutes. You don't need Python or anything else first, and nothing
|
|
106
|
+
needs an administrator password. After that, postloom is an app with its own icon.
|
|
107
|
+
|
|
108
|
+
### Mac
|
|
109
|
+
|
|
110
|
+
1. **Open Terminal.** Press <kbd>⌘</kbd> and <kbd>Space</kbd> together, type **Terminal**
|
|
111
|
+
and press <kbd>Return</kbd>.
|
|
112
|
+
2. **Copy the install line** (the copy button is at the right of the box):
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
curl -LsSf https://raw.githubusercontent.com/mdhabibi/postloom/main/install.sh | sh
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
3. **Paste it into Terminal and press Return.** Click in the Terminal window, press
|
|
119
|
+
<kbd>⌘</kbd> <kbd>V</kbd>, then <kbd>Return</kbd>. Text scrolls by while postloom
|
|
120
|
+
installs.
|
|
121
|
+
4. **Wait for postloom to open in your browser.** You can close Terminal then. Next time,
|
|
122
|
+
open postloom from Launchpad or Applications, like any app.
|
|
123
|
+
|
|
124
|
+
### Windows
|
|
125
|
+
|
|
126
|
+
1. **Open PowerShell.** Click Start, type **PowerShell** and press <kbd>Enter</kbd>.
|
|
127
|
+
2. **Copy the install line:**
|
|
128
|
+
|
|
129
|
+
```powershell
|
|
130
|
+
irm https://raw.githubusercontent.com/mdhabibi/postloom/main/install.ps1 | iex
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
3. **Paste it into PowerShell and press Enter.** Right-click inside the window (or press
|
|
134
|
+
<kbd>Ctrl</kbd> <kbd>V</kbd>), then press <kbd>Enter</kbd>.
|
|
135
|
+
4. **Wait for postloom to open in your browser.** You can close PowerShell then. Next time,
|
|
136
|
+
open postloom from the Start menu or the desktop icon.
|
|
137
|
+
|
|
138
|
+
### Linux
|
|
139
|
+
|
|
140
|
+
1. **Open a terminal** (<kbd>Ctrl</kbd> <kbd>Alt</kbd> <kbd>T</kbd> on most systems).
|
|
141
|
+
2. **Copy the install line:**
|
|
142
|
+
|
|
143
|
+
```bash
|
|
144
|
+
curl -LsSf https://raw.githubusercontent.com/mdhabibi/postloom/main/install.sh | sh
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
3. **Paste it** with <kbd>Ctrl</kbd> <kbd>Shift</kbd> <kbd>V</kbd> and press <kbd>Enter</kbd>.
|
|
148
|
+
4. **Wait for postloom to open in your browser.** Next time, open it from your applications
|
|
149
|
+
menu.
|
|
150
|
+
|
|
151
|
+
Stuck? [Tell us what you see](https://github.com/mdhabibi/postloom/issues/new/choose).
|
|
152
|
+
|
|
153
|
+
<details>
|
|
154
|
+
<summary><b>Update, quit or uninstall</b></summary>
|
|
155
|
+
|
|
156
|
+
- **Update:** do the same steps again. Your data is never touched.
|
|
157
|
+
- **Quit:** choose **Quit postloom** at the bottom of the sidebar.
|
|
158
|
+
- **Uninstall:** run the line for your computer the same way. Your data folder is kept;
|
|
159
|
+
delete it yourself if you want.
|
|
160
|
+
|
|
161
|
+
Mac or Linux:
|
|
162
|
+
|
|
163
|
+
```bash
|
|
164
|
+
curl -LsSf https://raw.githubusercontent.com/mdhabibi/postloom/main/install.sh | sh -s -- --uninstall
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
Windows:
|
|
168
|
+
|
|
169
|
+
```powershell
|
|
170
|
+
$env:POSTLOOM_UNINSTALL = 1; irm https://raw.githubusercontent.com/mdhabibi/postloom/main/install.ps1 | iex
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
</details>
|
|
174
|
+
|
|
175
|
+
The installer uses [uv](https://docs.astral.sh/uv/), which downloads its own copy of Python
|
|
176
|
+
for postloom, so it never changes the Python on your computer. Everything else postloom
|
|
177
|
+
needs (its database, search engine and local search model) is inside it or downloaded on
|
|
178
|
+
first use: there is no database server to install.
|
|
179
|
+
|
|
180
|
+
**For developers:** `uvx postloom start` runs it from PyPI, `uv tool install postloom` keeps
|
|
181
|
+
it installed, and `uv sync && uv run postloom start` runs a clone.
|
|
182
|
+
|
|
183
|
+
## Getting started
|
|
184
|
+
|
|
185
|
+
postloom opens in your browser (dark by default; switch to light at the bottom of the
|
|
186
|
+
sidebar). Press <kbd>⌘K</kbd> or <kbd>Ctrl K</kbd> anywhere to search your
|
|
187
|
+
articles and people, ask a question, or jump to a page. On first run:
|
|
188
|
+
|
|
189
|
+
1. Open **Settings**, pick a model provider, paste your API key and click **Test
|
|
190
|
+
connection**. Keys are saved only in your Postloom folder. No key? Choose **Ollama**:
|
|
191
|
+
postloom walks you through installing it, suggests a model that fits your computer's
|
|
192
|
+
memory and downloads it, all without a terminal.
|
|
193
|
+
2. Click **Add**. For an article, paste it and the post that announced it; postloom
|
|
194
|
+
restores the formatting, files it under your topics and indexes it. For a post that
|
|
195
|
+
stands on its own, choose **Post** and paste it (no model needed; with one, postloom
|
|
196
|
+
also picks its topics).
|
|
197
|
+
3. Open the article to read it and ask questions about it, or use the search box to search
|
|
198
|
+
and ask across everything you've written. Answers cite the sections they come from, and
|
|
199
|
+
when nothing relevant exists postloom says so instead of guessing.
|
|
200
|
+
|
|
201
|
+
## Choosing a model
|
|
202
|
+
|
|
203
|
+
| Provider | Key | Good for |
|
|
204
|
+
|---|---|---|
|
|
205
|
+
| Google Gemini | [aistudio.google.com](https://aistudio.google.com/apikey) | A free tier to start with |
|
|
206
|
+
| Anthropic Claude | [console.anthropic.com](https://console.anthropic.com/settings/keys) | Reply drafts that sound like you |
|
|
207
|
+
| OpenAI | [platform.openai.com](https://platform.openai.com/api-keys) | GPT models |
|
|
208
|
+
| OpenRouter | [openrouter.ai](https://openrouter.ai/keys) | One key for hundreds of models, exact cost per call |
|
|
209
|
+
| Ollama | none | Free and fully private; needs a capable computer |
|
|
210
|
+
| Other OpenAI-compatible | depends | LM Studio, Groq, Mistral, DeepSeek, Together, vLLM... |
|
|
211
|
+
|
|
212
|
+
Each task has its own model, with sensible defaults: a cheap model restores articles,
|
|
213
|
+
reads comments and answers questions, and a stronger one writes reply drafts. Change any
|
|
214
|
+
of them under **Models** in Settings.
|
|
215
|
+
|
|
216
|
+
**What it costs.** Rough figures at list prices on 2026-10-25 (the usage page shows your
|
|
217
|
+
real numbers):
|
|
218
|
+
|
|
219
|
+
| | Gemini (default models) | Claude (Haiku, Sonnet for replies) |
|
|
220
|
+
|---|---|---|
|
|
221
|
+
| Adding a 2,000-word article | ~$0.01 | ~$0.002 |
|
|
222
|
+
| A question about an article | ~$0.005 | under $0.001 |
|
|
223
|
+
| A reply draft | ~$0.006 | ~$0.02 |
|
|
224
|
+
| A month of daily articles, 5 questions and 2 replies a day | ~$1.40 | ~$1.40 |
|
|
225
|
+
|
|
226
|
+
Search, related-article suggestions, the graph and the people pages cost nothing: they
|
|
227
|
+
run on your computer. (On Intel Macs, where the local embedding runtime isn't available,
|
|
228
|
+
postloom uses your provider's embeddings for search instead, or keywords.) Nothing runs in
|
|
229
|
+
the background; a model is only called when you click something.
|
|
230
|
+
|
|
231
|
+
**Local models with Ollama.** Choose Ollama in Settings. postloom checks whether
|
|
232
|
+
[Ollama](https://ollama.com) is installed and running (and starts it for you), suggests a
|
|
233
|
+
model for your computer's memory (Qwen 3.5 in 4B, 9B or 27B), downloads it with a progress
|
|
234
|
+
bar and uses it for every task. Models you already pulled are offered too. Reading
|
|
235
|
+
comments and chat work well with mid-size models. Restoring long articles needs a capable
|
|
236
|
+
model (14B parameters or more, so 32 GB of memory helps) and can take several minutes.
|
|
237
|
+
postloom sizes Ollama's context for every request and refuses, with a clear message, texts
|
|
238
|
+
too long for the limit you set, instead of letting them be silently cut off.
|
|
239
|
+
|
|
240
|
+
## What you can do
|
|
241
|
+
|
|
242
|
+
- **Comments and replies:** paste a comment section; postloom works out who answered whom,
|
|
243
|
+
and drafts replies in your voice from the article and the whole thread.
|
|
244
|
+
- **People:** everyone who engaged with you, across all your posts, with your private notes.
|
|
245
|
+
- **Mentions:** the people, organisations, events and links your writing names, confirmed
|
|
246
|
+
by you before they enter your graph.
|
|
247
|
+
- **Images and videos:** found by your captions, by what a model sees in them and by
|
|
248
|
+
subtitles.
|
|
249
|
+
- **Ask questions:** answers only from your own library, with sources you can open.
|
|
250
|
+
- **The graph:** articles, topics, series, people and mentions, focused on whatever you pick.
|
|
251
|
+
- **Export the graph:** RDF (Turtle, JSON-LD) with schema.org and PROV-O, Cypher for
|
|
252
|
+
Neo4j, or GraphML for Gephi, with the provenance of every link
|
|
253
|
+
([how](#export-your-graph)).
|
|
254
|
+
- **Your vault:** plain Markdown you can open in Obsidian, edit, back up or move.
|
|
255
|
+
- **Command line:** everything the app does, scriptable.
|
|
256
|
+
|
|
257
|
+
The [user guide](https://github.com/mdhabibi/postloom/blob/main/docs/guide.md) explains each of them in detail, with every setting.
|
|
258
|
+
|
|
259
|
+
## Export your graph
|
|
260
|
+
|
|
261
|
+
Take your whole graph into the tools you already use: every article, post, comment,
|
|
262
|
+
person and mention, every link between them, and where each link came from (parsed from
|
|
263
|
+
your text, suggested by a model, or confirmed by you).
|
|
264
|
+
|
|
265
|
+
1. Open **Settings** and scroll to **Export your graph**.
|
|
266
|
+
2. Pick a format:
|
|
267
|
+
|
|
268
|
+
| Format | Pick it for |
|
|
269
|
+
|---|---|
|
|
270
|
+
| **RDF (Turtle)** | A triple store (GraphDB, Apache Jena, Stardog) and SPARQL |
|
|
271
|
+
| **RDF (JSON-LD)** | The same RDF as JSON, for your own code |
|
|
272
|
+
| **Cypher for Neo4j** | Neo4j (or Memgraph) and Cypher queries |
|
|
273
|
+
| **GraphML** | Gephi, yEd, Cytoscape, NetworkX or igraph |
|
|
274
|
+
|
|
275
|
+
3. Choose what goes in. **Include what was written** (on by default) adds article bodies,
|
|
276
|
+
posts, comments and your notes on people; turn it off to share only the structure
|
|
277
|
+
(names, titles, dates). **Include history** adds links that were replaced or that you
|
|
278
|
+
dismissed, marked as not current.
|
|
279
|
+
4. Click **Export the graph**. The file lands in your downloads, named like
|
|
280
|
+
`postloom-graph-2026-11-26.ttl`.
|
|
281
|
+
|
|
282
|
+
From the terminal: `postloom export turtle` (or `jsonld`, `cypher`, `graphml`), with
|
|
283
|
+
`--history`, `--no-text` and `-o <file>`.
|
|
284
|
+
|
|
285
|
+
<details>
|
|
286
|
+
<summary><b>Load it into Neo4j</b></summary>
|
|
287
|
+
|
|
288
|
+
With Neo4j running, load the script with `cypher-shell` (it comes with Neo4j):
|
|
289
|
+
|
|
290
|
+
```bash
|
|
291
|
+
cypher-shell -u neo4j -p <your password> -f postloom-graph-2026-11-26.cypher
|
|
292
|
+
```
|
|
293
|
+
|
|
294
|
+
Or open Neo4j Browser, turn on **Enable multi statement query editor** in its settings,
|
|
295
|
+
paste the file and run it. Loading the same file again changes nothing, and a newer export
|
|
296
|
+
updates what changed. Then try:
|
|
297
|
+
|
|
298
|
+
```cypher
|
|
299
|
+
MATCH (p:Person)-[:AUTHORED]->(:Comment)-[:COMMENTED_ON]->(:Post)-[:ANNOUNCES]->(a:Article)
|
|
300
|
+
RETURN p.name, count(DISTINCT a) AS articles ORDER BY articles DESC LIMIT 10;
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
Every node has the label `Postloom`, its kind (`Article`, `Post`, `Comment`, `Person`,
|
|
304
|
+
`Topic`, `Series`, `Entity`, `Media`) and a unique `id`. Relationships (`BELONGS_TO`,
|
|
305
|
+
`PART_OF`, `ANNOUNCES`, `COMMENTED_ON`, `REPLIED_TO`, `AUTHORED`, `RELATED_TO`, `LINKS_TO`,
|
|
306
|
+
`MENTIONS`) carry `origin`, `grade` (`verified`, `asserted` or `rejected`), `producer` and
|
|
307
|
+
`recorded_at`. With history, filter on `r.current = true` for today's graph.
|
|
308
|
+
|
|
309
|
+
</details>
|
|
310
|
+
|
|
311
|
+
<details>
|
|
312
|
+
<summary><b>Load it into a triple store and query it with SPARQL</b></summary>
|
|
313
|
+
|
|
314
|
+
- **GraphDB:** create a repository, then **Import → Upload RDF files**, choose the `.ttl`
|
|
315
|
+
file and click **Import**. Query it under **SPARQL**.
|
|
316
|
+
- **Apache Jena:** `sparql --data postloom-graph-2026-11-26.ttl --query query.rq`
|
|
317
|
+
- **Python:** `rdflib.Graph().parse("postloom-graph-2026-11-26.ttl")`
|
|
318
|
+
|
|
319
|
+
Who comments most:
|
|
320
|
+
|
|
321
|
+
```sparql
|
|
322
|
+
PREFIX pl: <https://postloom-app.vercel.app/ns#>
|
|
323
|
+
PREFIX schema: <https://schema.org/>
|
|
324
|
+
SELECT ?name (COUNT(?comment) AS ?comments) WHERE {
|
|
325
|
+
?person pl:authored ?comment ; schema:name ?name .
|
|
326
|
+
} GROUP BY ?name ORDER BY DESC(?comments) LIMIT 10
|
|
327
|
+
```
|
|
328
|
+
|
|
329
|
+
Links a model made that you haven't confirmed yet, using the provenance records:
|
|
330
|
+
|
|
331
|
+
```sparql
|
|
332
|
+
PREFIX pl: <https://postloom-app.vercel.app/ns#>
|
|
333
|
+
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
|
334
|
+
PREFIX prov: <http://www.w3.org/ns/prov#>
|
|
335
|
+
SELECT ?from ?link ?to ?producer WHERE {
|
|
336
|
+
?record a pl:EdgeRecord ; pl:grade pl:Asserted ; pl:producer ?producer ;
|
|
337
|
+
rdf:subject ?from ; rdf:predicate ?link ; rdf:object ?to .
|
|
338
|
+
FILTER NOT EXISTS { ?record prov:invalidatedAtTime ?until }
|
|
339
|
+
}
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
Nodes use schema.org (`schema:Article`, `schema:Comment`, `schema:Person`...) and SKOS
|
|
343
|
+
for topics, and are named `urn:postloom:<id>`. Relations are `pl:` properties mapped to
|
|
344
|
+
schema.org and Dublin Core; the vocabulary is at
|
|
345
|
+
[postloom-app.vercel.app/ns](https://postloom-app.vercel.app/ns) and inside every export.
|
|
346
|
+
Each link is also a `pl:EdgeRecord` (an `rdf:Statement`) with its origin, grade, producer
|
|
347
|
+
and PROV-O times.
|
|
348
|
+
|
|
349
|
+
</details>
|
|
350
|
+
|
|
351
|
+
<details>
|
|
352
|
+
<summary><b>Open it in Gephi, yEd or NetworkX</b></summary>
|
|
353
|
+
|
|
354
|
+
- **Gephi:** **File → Open**, choose the `.graphml` file, keep **Directed** and click
|
|
355
|
+
**OK**. Under **Appearance**, colour nodes by the `labels` attribute (partition) and size
|
|
356
|
+
them by degree; run **ForceAtlas 2** under **Layout**.
|
|
357
|
+
- **yEd:** **File → Open**, then **Layout → Organic**.
|
|
358
|
+
- **NetworkX:** `networkx.read_graphml("postloom-graph-2026-11-26.graphml")`
|
|
359
|
+
- **Neo4j:** copy the file into Neo4j's `import` folder, then run
|
|
360
|
+
`CALL apoc.import.graphml("file:///postloom-graph-2026-11-26.graphml", {readLabels: true})`
|
|
361
|
+
(needs the APOC plugin and `apoc.import.file.enabled=true`).
|
|
362
|
+
|
|
363
|
+
</details>
|
|
364
|
+
|
|
365
|
+
The file holds the names and comments of the people in your library, so share it with the
|
|
366
|
+
same care as your vault. The [user guide](https://github.com/mdhabibi/postloom/blob/main/docs/guide.md#exporting-the-graph) has the full
|
|
367
|
+
data model.
|
|
368
|
+
|
|
369
|
+
## Privacy
|
|
370
|
+
|
|
371
|
+
postloom runs only on your computer and listens only on `127.0.0.1`, so nothing on your
|
|
372
|
+
network can reach it. It refuses requests that don't come from its own page, so other
|
|
373
|
+
websites you visit can't use it either. It stores the names, headlines and profile URLs of
|
|
374
|
+
people who comment on your posts, locally and only for your own use. If one of them asks
|
|
375
|
+
to be removed, **Delete this person** erases them from the app, its history, the search
|
|
376
|
+
index and your vault.
|
|
377
|
+
|
|
378
|
+
When you use a hosted model, the text a feature needs (the article you add, the comments
|
|
379
|
+
you paste, the passages behind an answer, an image you ask it to describe) is sent to that
|
|
380
|
+
provider under its terms. Check them: free tiers may use your data for training. Search
|
|
381
|
+
embeddings run on your computer by default, and with Ollama nothing leaves your computer
|
|
382
|
+
at all.
|
|
383
|
+
|
|
384
|
+
postloom is not affiliated with or endorsed by LinkedIn.
|
|
385
|
+
|
|
386
|
+
## Documentation
|
|
387
|
+
|
|
388
|
+
- [User guide](https://github.com/mdhabibi/postloom/blob/main/docs/guide.md): every feature and setting
|
|
389
|
+
- [Architecture](https://github.com/mdhabibi/postloom/blob/main/docs/architecture.md): how postloom is built, and why
|
|
390
|
+
- [Changelog](https://github.com/mdhabibi/postloom/blob/main/CHANGELOG.md): what changed in each version
|
|
391
|
+
- [Contributing](https://github.com/mdhabibi/postloom/blob/main/.github/CONTRIBUTING.md), [code of conduct](https://github.com/mdhabibi/postloom/blob/main/.github/CODE_OF_CONDUCT.md) and
|
|
392
|
+
[security policy](https://github.com/mdhabibi/postloom/blob/main/.github/SECURITY.md)
|
|
393
|
+
|
|
394
|
+
## Contributing
|
|
395
|
+
|
|
396
|
+
Contributions are welcome. See [CONTRIBUTING.md](https://github.com/mdhabibi/postloom/blob/main/.github/CONTRIBUTING.md). Something missing?
|
|
397
|
+
[Suggest an idea](https://github.com/mdhabibi/postloom/issues/new?template=idea.yml).
|
|
398
|
+
|
|
399
|
+
## License
|
|
400
|
+
|
|
401
|
+
postloom is **fair source**, under the [Functional Source License 1.1](https://github.com/mdhabibi/postloom/blob/main/LICENSE.md)
|
|
402
|
+
(FSL-1.1-ALv2). You can read, run, modify and share the code for anything except offering
|
|
403
|
+
a competing commercial product or service. Using postloom for your own work, including
|
|
404
|
+
your business, is allowed. Each release becomes Apache-2.0 two years after it is
|
|
405
|
+
published. The postloom name and logo aren't covered by the license.
|