{"id":22472323,"url":"https://github.com/ckampfe/cap","last_synced_at":"2025-03-27T16:22:05.350Z","repository":{"id":48901689,"uuid":"176625588","full_name":"ckampfe/cap","owner":"ckampfe","description":"capture stdin/argument text to a sqlite db","archived":false,"fork":false,"pushed_at":"2021-07-06T11:16:01.000Z","size":89,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T20:11:21.989Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ckampfe.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}},"created_at":"2019-03-20T01:12:01.000Z","updated_at":"2020-05-11T05:49:14.000Z","dependencies_parsed_at":"2022-09-12T22:11:02.792Z","dependency_job_id":null,"html_url":"https://github.com/ckampfe/cap","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/ckampfe%2Fcap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckampfe%2Fcap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckampfe%2Fcap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckampfe%2Fcap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ckampfe","download_url":"https://codeload.github.com/ckampfe/cap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245879100,"owners_count":20687321,"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-12-06T12:14:21.820Z","updated_at":"2025-03-27T16:22:05.321Z","avatar_url":"https://github.com/ckampfe.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"cap\n===\n\nQuickly capture stream-of-thought text to a timestamped sqlite database.\n\n[![CircleCI](https://circleci.com/gh/ckampfe/cap.svg?style=svg)](https://circleci.com/gh/ckampfe/cap)\n\n## use\n\n```\n$ cap \"some text you want to remember\"\n# or:\n$ echo \"some text you want to remember\" | cap\n# or:\n$ some_program_with_useful_output | cap\n```\n\nThis inserts the text into a sqlite database that by default lives at `~/cap.db`.\nYou can make your own database in any other location, and then alias `cap` to specify\nyour custom location like `cap -l /some/other/location/cap.db`. The name of the db is\nnot significant, and is only a default.\n\n\nYou can then view your data with [cap_viewer](https://github.com/ckampfe/cap_viewer) (a simple webapp) or\nquery it like:\n\n```\n$ sqlite3 ~/cap.db\nsqlite\u003e SELECT * FROM entries\n```\n\n\nThe schema of the entries table is:\n\n```\nCREATE TABLE IF NOT EXISTS entries (\n  id INTEGER PRIMARY KEY AUTOINCREMENT,\n  body TEXT,\n  created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP\n)\n```\n\n## install\n\n```\n$ brew install sqlite\n$ git clone git@github.com:ckampfe/cap.git\n$ cd cap\n$ cargo install --path . --force\n```\n\n## help\n\n```\nclark$\u003e cap -h\ncap 0.1.0\nClark Kampfe \u003cclark.kampfe@gmail.com\u003e\n\nUSAGE:\n    cap [OPTIONS] [entry]\n\nFLAGS:\n    -h, --help       Prints help information\n    -V, --version    Prints version information\n\nOPTIONS:\n    -l, --database-location \u003cdb_location\u003e\n\nARGS:\n    \u003centry\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fckampfe%2Fcap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fckampfe%2Fcap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fckampfe%2Fcap/lists"}