{"id":30389340,"url":"https://github.com/thjbdvlt/polyanthea","last_synced_at":"2026-01-21T14:02:21.551Z","repository":{"id":308064883,"uuid":"1022309643","full_name":"thjbdvlt/polyanthea","owner":"thjbdvlt","description":"Bibliography manager","archived":false,"fork":false,"pushed_at":"2025-09-04T12:00:13.000Z","size":7139,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"sea","last_synced_at":"2025-10-28T01:43:42.355Z","etag":null,"topics":["bibliography","bibliography-management","command-line","markdown","reading","reading-notes"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thjbdvlt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-18T20:23:39.000Z","updated_at":"2025-09-04T12:00:17.000Z","dependencies_parsed_at":"2025-08-04T00:23:09.371Z","dependency_job_id":"3a2f4310-a4c5-4f8e-b0ea-752d324d27d8","html_url":"https://github.com/thjbdvlt/polyanthea","commit_stats":null,"previous_names":["thjbdvlt/retrolire","thjbdvlt/otlet","thjbdvlt/polyanthea"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thjbdvlt/polyanthea","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thjbdvlt%2Fpolyanthea","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thjbdvlt%2Fpolyanthea/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thjbdvlt%2Fpolyanthea/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thjbdvlt%2Fpolyanthea/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thjbdvlt","download_url":"https://codeload.github.com/thjbdvlt/polyanthea/tar.gz/refs/heads/sea","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thjbdvlt%2Fpolyanthea/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28634786,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bibliography","bibliography-management","command-line","markdown","reading","reading-notes"],"created_at":"2025-08-21T08:19:57.452Z","updated_at":"2026-01-21T14:02:21.545Z","avatar_url":"https://github.com/thjbdvlt.png","language":"Go","readme":"__Polyanthea__ - Bibliography manager named after the [Polyanthea](https://fr.wikipedia.org/wiki/Polyanthea).\n\nBefore doing anything, copy `config.def.g` to `config.go` and configure Polyanthea. Then, create the database:\n\n```bash\npolyanthea init\n```\n\nNow you want to add references, from BibTeX, CSl-JSON, ISBN, DOI...\n\n```bash\npolyanthea add bibtex mybibliography.bib\npolyanthea add json alotofbooks.json\npolyanthea add isbn 978-2-840066-234-1\npolyanthea add doi 10.3406/item.2003.1247\n```\n\nOf course, the data reach by these method will likely be incorrect, so you can add by writing it by yourself, or correct some fields afterwards:\n\n```bash\npolyanthea add template book\npolyanthea update title id:antin2002\n```\n\nHere you'll likely want to read things and takes notes to edit an entry's note file, you can:\n\n```bash\npolyanthea # use the TUI and press \u003cEnter\u003e on an entry (recommended)\npolyanthea edit # pick an entry with FZF\n```\n\nEach time you edit a note, its content is *indexed* and *parsed*: some lines will be classified as *concepts*, other as *quotes*, other as *heading* -- and everything else as *commentary*.\n\n```text\na concept = and its definition, with a locator p.32\n\u003e a wonderful quote, with a page number in parenthesis (32)\n(i hate this book -- lines in parenthesis are not indexed)\n# a heading, this is chapter 3 about cool stuff\nthis is a simple commentary of the text you're reading, e.g. a summary\n\n\u003e a quote, with *tags*, because line starting with comma are tags\n,coolquotes ,sociology ,philosophy-of-science\n```\n\nThe parsing is 100% *line-based*. Every line becomes an object in the database, with a specific class. Empty lines are ignored.\n\nNow, let's say you've some hundred of books and articles. You probable want to *search* in all these notes, all these ideas, all these cool quotes. For this, you can use plain-text search and filters. Plain-text search searches in entries titles, and in notes content. Filters are more powerfull, you can filters using CSL variables (*author*, *publisher-place*, etc.), or tags, or even *class*, using `AND`, `OR` and `NOT` boolean operators:\n\n```text\nauthor:antin,perec,quintane,pireyre\nauthor:kaplan or publisher:pol\npublisher:pol and not ,poetry ,unread\nart world =entry\n=quote sky\n=concept lexical\n```\n\nThere's also a shortcut for authors, which is `@`:\n\n```text\n@becker art world\n```\n\nSearching will not only show you *entries*, but all objects. You will see a list of entries, people (authors, translators, editors), of quotes, of concepts and definitions, of heading and commentary, and even *tags*, and *classes*.\nIf you press `\u003center\u003e` when an entry is selected, you'll edit its note. If you're on a *line object* (concept, quote...), you'll edit the note at this specific line. If you're on a person, you'll edit the attached notes, because there's also notes for people. If you're on a tag or a class, this will trigger a new search with this tag or class added as a condition.\n\nThere is no *collection* in __Polyanthea__, only tags. But tags are actually powerfull enough, and __Polyanthea__ tags are a bit like classes: a *tag* can be a subtag of another tag. You define *tags tree* (hierarchy) into a file named `.polyanthea.tags`:\n\n```text\nfiction\n science-fiction = sf\n romance\n fantasy\nhumanities\n digital-humanities = dh\n philosophy = philo\n  philosophy-of-mind\n  philosophy-of-language\n social-sciences\n  sociology\n  anthropology\ncomputing\n minimal-computing\n linux\n databases = db\n  sql\n   sqlite\n```\n\nWith this file, tag *sf* will behave just like *science-fiction*, and if you add tag *sf* to an entry, it will considered to have the tag *fiction* as well.\n\n,, ## word vectors, FTS5\n,,\n,, __Polyanthea__ not only tries to offer ways to find what you want, but also to make new links \n\n\u003c!-- TODO: Document word vectors and FTS5 --\u003e\n\n## Installation\n\n```bash\ngit clone https://github.com/thjbdvlt/polyanthea polyanthea\n\n# Here, you should configure polyanthea through \"config.go\" file.\nmake # Build polyanthea\nsudo make install # Install polyanthea\npipx install . # Install small command line python programs for \"add\" command\n```\n\nIn addition to the executable `polyanthea` (installed in /usr/bin), four other executables (python) are installed using [pipx](https://pipx.pypa.io/stable/installation/):\n\n- `csljson-update`: Builds unique _ids_ for a csl-json.\n- `fetchref`: Get a bibtex reference from a DOI or ISBN.\n\nSome commands are not available from the TUI but only from the command line:\n\nThe `list` command shows (pretty-print) the information of the chosen bibliography entries. (If no filter option is selected, it displays the entire bibliography. Unlike other options that use filters, there is no _selection_ of an entry with fzf: the `list` command displays all entries that match the filters.)\n\n```bash\npolyanthea list author:antin\n```\n\nThe `json` command works like `list`, but the entries are displayed in [csl-json](https://citeproc-js.readthedocs.io/en/last/csl-json/markup.html) format.\n\n```bash\npolyanthea json author:rédaction .inquiry\n```\n```json\n[\n    {\n        \"id\": \"larédaction2012\",\n        \"type\": \"book\",\n        \"title\": \"Les Berthier: portraits statistiques\",\n        \"author\": [{\"literal\": \"La Rédaction\"}],\n        \"issued\": {\"date-parts\": [[2012]]},\n        \"publisher\": \"Questions théoriques\",\n        \"title-short\": \"Les Berthier\"\n    }\n]\n```\n\n## Config\n\nConfiguration is done through config/config.go\nThus, yo need to compile the software in order to changes to apply.\n\n## Completion (Bash)\n\nThe completion script (bash) allows for automatic completion of __actions__, __options__, tags, and fields (variables). To use it, source it e.g. in your `.bashrc`.\n\n## dependencies\n\n- Go\n- SQLite3\n- [fzf](https://github.com/junegunn/fzf).\n\nFor the importation to the database in the python command line tools:\n \n- [orjson](https://github.com/ijl/orjson)\n\nTo get references from doi/isbn:\n\n- [isbntools](https://pypi.org/project/isbntools/)\n- [isbnlib](https://pypi.org/project/isbnlib/)\n\nCorrection, structuring, formatting, and conversion from bibtex to csl-json:\n\n- [pandoc](https://pandoc.org/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthjbdvlt%2Fpolyanthea","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthjbdvlt%2Fpolyanthea","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthjbdvlt%2Fpolyanthea/lists"}