{"id":17679354,"url":"https://github.com/bbkane/taggedmarks2","last_synced_at":"2026-02-27T05:41:04.147Z","repository":{"id":87170843,"uuid":"594436576","full_name":"bbkane/taggedmarks2","owner":"bbkane","description":"Play with different SQL libraries in a CLI bookmarks app","archived":false,"fork":false,"pushed_at":"2023-03-02T04:06:32.000Z","size":45,"stargazers_count":0,"open_issues_count":15,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-12T15:34:43.959Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bbkane.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-01-28T14:54:48.000Z","updated_at":"2023-01-28T14:55:03.000Z","dependencies_parsed_at":"2023-03-12T03:01:14.884Z","dependency_job_id":null,"html_url":"https://github.com/bbkane/taggedmarks2","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/bbkane/taggedmarks2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbkane%2Ftaggedmarks2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbkane%2Ftaggedmarks2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbkane%2Ftaggedmarks2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbkane%2Ftaggedmarks2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bbkane","download_url":"https://codeload.github.com/bbkane/taggedmarks2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbkane%2Ftaggedmarks2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29886198,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T05:38:26.446Z","status":"ssl_error","status_checked_at":"2026-02-27T05:38:25.235Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2024-10-24T08:22:10.862Z","updated_at":"2026-02-27T05:41:04.130Z","avatar_url":"https://github.com/bbkane.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"A small CLI to save bookmarks to SQLite. I want to use it to experiment with different SQL libraries. All SQL libraries should be used to implement `TaggedmarkService` , which the CLI app instantiates and uses.\n\n# WTFDial Blog Notes\n\n- https://www.gobeyond.dev/packages-as-layers/\n- https://github.com/benbjohnson/wtf\n\nApplication types (really interfaces) in their own package - root package that other types depend on\n\n```go\ntype DialService interface {\n\tFindDialByID(ctx context.Context, id int) (*Dial, error)\n\tFindDials(ctx context.Context, filter DialFilter) ([]*Dial, int, error)\n\tCreateDial(ctx context.Context, dial *Dial) error\n\tUpdateDial(ctx context.Context, id int, upd DialUpdate) (*Dial, error)\n\tDeleteDial(ctx context.Context, id int) error\n}\n```\n\nThe `wtf` package implements these servicces as interfaces. The `sqlite` package implemtents these interface. In `wtf`, the main struct instantiates `sqlite`'s implementation of the interfaces, then attaches them to `http`'s struct, then calls start on the http server. The `http` package *also* implements `wtf`'s interface as a client (by making requests to the server). \n\nThe cmd/wtfd package instantiates an HTTP server (which does *NOT* fulfil the interfaces, but contains them) and shoves the `SQLite` implementation into it.\n\n# Questions\n\n- should my Tag struct have a reference to Taggedmark?\n\n# CLI\n\n```bash\ntaggedmarks \n\ttaggedmark\n\t\tcreate --url url --tag a --tag b\n\t\tread --url url # or --id id\n\t\tdelete --url url # or --id id\n\t\tlist --url --tag a\n    import --type firefoxJSON --path bookmarks.json\n\ttag  # Let's ignore this for now :)\n\t\trename --from old --from old2 --to new\n\t\tdelete --name name\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbkane%2Ftaggedmarks2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbbkane%2Ftaggedmarks2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbkane%2Ftaggedmarks2/lists"}