{"id":19512422,"url":"https://github.com/vmchale/librarian","last_synced_at":"2025-07-21T20:32:09.551Z","repository":{"id":128761311,"uuid":"75143729","full_name":"vmchale/librarian","owner":"vmchale","description":"Tools to manage a home library","archived":false,"fork":false,"pushed_at":"2017-06-06T04:40:18.000Z","size":101,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-25T23:17:16.315Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vmchale.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2016-11-30T02:38:00.000Z","updated_at":"2019-12-05T06:35:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"5b2443a4-7a26-4466-b951-6de754f5bb12","html_url":"https://github.com/vmchale/librarian","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vmchale/librarian","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmchale%2Flibrarian","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmchale%2Flibrarian/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmchale%2Flibrarian/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmchale%2Flibrarian/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vmchale","download_url":"https://codeload.github.com/vmchale/librarian/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmchale%2Flibrarian/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266375417,"owners_count":23919561,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-10T23:25:52.532Z","updated_at":"2025-07-21T20:32:09.534Z","avatar_url":"https://github.com/vmchale.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Install\nFirst, you'll need to get the C library `libqrencode` from [here](https://github.com/fukuchi/libqrencode) and the C library `Zbar` from [here](https://github.com/ZBar/ZBar), or get them from your distro.\n\nThen type `stack install` in the appropriate library.\n\nTo make sure bash completions run correctly, run any command with the `--install` flag. \n\n## Test suite\nTo run the test suite, type `stack build --test` in the project directory. \n\n## Config\nFirst, find the file called `.pw` and edit it appropriately so that you can send reminder emails to delinquent patrons. It is formatted like so:\n\n```\nserver: smtp.domain.org\nport: 465\nemail: name@doman.org\npassord: *******\n```\n\n## Usage\nTo help you get started, there is a bash file called `examples` in the appropriate directory, which has many of the common commands you will issue. \n\n### Example\nTo add a user record, a book record, and print/view the user's library card:\n\n```\nvanessa@laptop $ mkdir -p hamlet/cards\nvanessa@laptop $ library add-user -u \"Vanessa McHale\" -e \"tmchale@wisc.edu\" -j\n{\n    \"_record\": [],\n    \"_name\": \"Vanessa McHale\",\n    \"_email\": \"tmchale@wisc.edu\"\n}\nvanessa@laptop $ library print-card -e \"tmchale@wisc.edu\"\n()\nvanessa@laptop $ library new-book --title \"War and Peace\" --author \"Leo Tolstoy\"\nvanessa@laptop $ library new-book --title \"Memoirs\" --author \"Vanessa McHale\" -j \n{\n    \"_publicationYear\": null,\n    \"_author\": \"Vanessa McHale\",\n    \"_checkoutLength\": 21,\n    \"_isbn\": null,\n    \"_publisher\": null,\n    \"_title\": \"Memoirs\"\n}\nvanessa@laptop $ library qrgen\n()\nQR codes generated successfully.\nalready generated, skipping...\nvanessa@laptop $ gnome-open hamlet/cards/tmchale.html\n```\n\n### Going deeper\nYou might also want to use\n\n```stack ghci```\n\nif you want more fine-grained control of things.\n\n```stack build --haddock```\n\nwill generate documentation of the exported functions. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvmchale%2Flibrarian","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvmchale%2Flibrarian","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvmchale%2Flibrarian/lists"}