{"id":50336993,"url":"https://github.com/kaf-lamed-beyt/ghosted","last_synced_at":"2026-05-29T14:01:34.192Z","repository":{"id":304647649,"uuid":"1015455532","full_name":"kaf-lamed-beyt/ghosted","owner":"kaf-lamed-beyt","description":"Find out when someone follows or unfollows you on GitHub","archived":false,"fork":false,"pushed_at":"2025-11-01T16:00:24.000Z","size":311,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-08T11:48:55.196Z","etag":null,"topics":["following","followings","github","githubprofile","unfollow","unfollower"],"latest_commit_sha":null,"homepage":"https://ghostd.dev","language":"TypeScript","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/kaf-lamed-beyt.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-07T14:24:40.000Z","updated_at":"2025-10-29T12:52:15.000Z","dependencies_parsed_at":"2025-07-14T13:56:59.303Z","dependency_job_id":"517eaf0c-fc12-42d3-86a1-353b7503b980","html_url":"https://github.com/kaf-lamed-beyt/ghosted","commit_stats":null,"previous_names":["kaf-lamed-beyt/ghosted"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/kaf-lamed-beyt/ghosted","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaf-lamed-beyt%2Fghosted","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaf-lamed-beyt%2Fghosted/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaf-lamed-beyt%2Fghosted/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaf-lamed-beyt%2Fghosted/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaf-lamed-beyt","download_url":"https://codeload.github.com/kaf-lamed-beyt/ghosted/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaf-lamed-beyt%2Fghosted/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33655441,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["following","followings","github","githubprofile","unfollow","unfollower"],"created_at":"2026-05-29T14:01:33.218Z","updated_at":"2026-05-29T14:01:34.176Z","avatar_url":"https://github.com/kaf-lamed-beyt.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Ghosted! 👻\n\nGitHub followers come and go, now you'll know.\n\n## Why?\n\nI spend a lot of time on GitHub. Sometimes, I'd randomly notice that the follower count on my profile increased and vice versa.\n\nThere's no way for me to know. I want to.\n\nSo I decided to embark on this. I'm glad it is here now after procrastinating for seven months \u0026mdash; mostly because of \"skill issues\".\n\n## Want to contribute?\n\nCreate a version of this repo on your account by making a fork, clone it, and install the dependencies.\n\n### Grab the .env variables\n\nRun the command below to get the content of `.env.tpl` into `.env`\n\n```shell\ncp .env.tpl .env\n```\n\n### Setup psql\n\nBefore you go any further, you'll need to install postgres. [This article](https://www.tigerdata.com/blog/how-to-install-psql-on-mac-ubuntu-debian-windows) covers how to on Ubuntu, macOS and Windows.\n\nWhen you're done with the postgres setup, you'll need to create a dev db. Start a postgres session with this command in your terminal\n\n```shell\npsql postgres\n```\n\nThis takes you into the default interactive shell environment where you can write sql queries.\n\n```sql\ncreate database ghosted_local;\ncreate role admin with login password 'dodo';\ngrant all privileges on database ghosted_local to admin;\n```\n\nIf the above seems like a lot of work, you can simply do the following and you'll have a db created for you.\n\n```shell\ncreatedb ghosted_local\n```\n\nNow that you have a database, you need to run the migrations. with this command\n\n```shell\npnpm db:migrate\n```\n\n### Create an Oauth app\n\nFor authentication, it is just ideal that I go with GitHub Oauth. At this point, you'll need to create an Oauth app.\n\nGo to your [settings page](https://github.com/settings/developers) on GitHub and create a new one. Copy the `client_id` and `client_secret` and assign them as values to `GITHUB_CLIENT_ID` and `GITHUB_CLIENT_SECRET` repectively in your `.env` file.\n\nBecause Oauth apps can not have callback routes pointing to `http://localhost:3000`, i'd recommend you tunnel the app with ngrok so you get a temporary link to include as the callback or homepage URL.\n\nWith that said, you'd update the `NEXT_PUBLIC_APP_URL` variable with your ngrok link.\n\n### Basic encryption\n\nFor session management, I'm doing something basic by encrypting the data via the crypto module. So you don't run into any error(s), you'll need to generate a passphrase with:\n\n```shell\nopenssl rand -hex 32\n```\n\nCopy the result and assign it to `CRY_KEY` in the `.env` file.\n\n### Email delivery\n\nI use Resend to manage emails for the snapshot job. If you need to work on any bug/feature related to this, get an API key on [Resend](https://resend.com)\n\nWhen you're done with the steps outlined, you can install the dependencies with `pnpm i` and start the dev server.\n\n## Jobs\n\nUpstash provides the jobs instantiation \u0026mdash; bi-hourly and weekly. So you don't run into issues, I doubt you would though, so long as you don't `curl` the routes explicitly locally.\n\nBut, say, you get the urge to do so, please get the necessary API keys on [Upstash](https://upstash.com). You'd need to switch to the **QStash** tab, and create the respective jobs under **\"Schedules\"**.\n\n_[Sidenote]_: make sure to always do `pnpm format` before you push so the CI can pass.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaf-lamed-beyt%2Fghosted","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaf-lamed-beyt%2Fghosted","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaf-lamed-beyt%2Fghosted/lists"}