{"id":20534414,"url":"https://github.com/qbit/openbsd.app","last_synced_at":"2025-04-14T06:55:01.683Z","repository":{"id":60069434,"uuid":"540642976","full_name":"qbit/openbsd.app","owner":"qbit","description":"Website for https://openbsd.app","archived":false,"fork":false,"pushed_at":"2025-03-24T17:20:38.000Z","size":197,"stargazers_count":22,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-14T06:54:42.176Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qbit.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":"support/crontab","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-23T22:59:31.000Z","updated_at":"2025-03-24T17:20:42.000Z","dependencies_parsed_at":"2023-10-10T16:11:45.584Z","dependency_job_id":"d74912eb-702a-48ee-8ba7-1b6a389efc6d","html_url":"https://github.com/qbit/openbsd.app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qbit%2Fopenbsd.app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qbit%2Fopenbsd.app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qbit%2Fopenbsd.app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qbit%2Fopenbsd.app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qbit","download_url":"https://codeload.github.com/qbit/openbsd.app/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248837281,"owners_count":21169374,"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","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-16T00:26:41.763Z","updated_at":"2025-04-14T06:55:01.675Z","avatar_url":"https://github.com/qbit.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenBSD.app\n\nA site that allows quick full-text searching of OpenBSD packages for -stable and -current.\n\n## Hacking\n\n### Generating FTS5 databases\n\n\n```\n$ sqlite3 stable.db\n\u003e ATTACH DATABASE '/usr/local/share/sqlports' AS ports;\n\u003e CREATE VIRTUAL TABLE\n\t    ports_fts\n\tUSING fts5(\n\t    FULLPKGNAME,\n\t    FULLPKGPATH,\n\t    COMMENT,\n\t    DESCRIPTION);\n\u003e INSERT INTO\n\t    ports_fts\n\t(FULLPKGNAME, FULLPKGPATH, COMMENT, DESCRIPTION)\n\tSELECT\n\t    fullpkgname,\n\t    _paths.fullpkgpath,\n\t    comment,\n\t    _descr.value\n\tFROM\n\t    ports._ports\n\tJOIN _paths ON _paths.id=_ports.fullpkgpath\n\tJOIN _descr ON _descr.fullpkgpath=_ports.fullpkgpath;\n\u003e .quit\n```\n\n.. and the same for `current.db` using `sqlports` from -current.\n\n### Running on OpenBSD\n\n```\n$ doas pkg_add p5-Mojolicious p5-Text-Markdown p5-Mojo-SQLite sqlports\n$ morbo openbsd.app.pl\n```\n\n### Running with nix/NixOS\n\n```\nnix shell\nmorbo openbsd.app.pl\n```\n\n\n## TODOs\n\n- [X] `use OpenBSD::Pledge` / `use OpenBSD::Unveil`.\n- [X] Automate building of the fts DBs.\n    - Fetch $release sqlports and $current sqlports and create.\n- [X] OpenSearch support.\n- [X] ~~Parse input to match `Full-text Query Syntax`: https://www.sqlite.org/fts5.html .~~\n    - Only searching for letters for now.\n- [X] Style.\n- [X] Stable and unstable search.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqbit%2Fopenbsd.app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqbit%2Fopenbsd.app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqbit%2Fopenbsd.app/lists"}