{"id":29182895,"url":"https://github.com/magiclabs/scrappy-twitter-api-client","last_synced_at":"2025-07-01T20:33:24.889Z","repository":{"id":54951536,"uuid":"327775897","full_name":"magiclabs/scrappy-twitter-api-client","owner":"magiclabs","description":"Scrappy Twitter API is a Go-backend project that is secured by the Magic SDK. This Next.js app authenticates the user and gives the access token required to make POST or DELETE requests with the Scrappy Twitter API.","archived":false,"fork":false,"pushed_at":"2023-03-05T19:07:42.000Z","size":635,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-06T02:38:25.966Z","etag":null,"topics":["authentication","magic-sdk","nextjs","postman","rest-api","user-identity"],"latest_commit_sha":null,"homepage":"https://scrappy-twitter-api-client-xi.vercel.app/","language":"JavaScript","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/magiclabs.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}},"created_at":"2021-01-08T02:17:39.000Z","updated_at":"2023-03-06T02:38:25.967Z","dependencies_parsed_at":"2023-02-06T07:31:54.519Z","dependency_job_id":null,"html_url":"https://github.com/magiclabs/scrappy-twitter-api-client","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/magiclabs/scrappy-twitter-api-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclabs%2Fscrappy-twitter-api-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclabs%2Fscrappy-twitter-api-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclabs%2Fscrappy-twitter-api-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclabs%2Fscrappy-twitter-api-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/magiclabs","download_url":"https://codeload.github.com/magiclabs/scrappy-twitter-api-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclabs%2Fscrappy-twitter-api-client/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263033232,"owners_count":23403118,"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":["authentication","magic-sdk","nextjs","postman","rest-api","user-identity"],"created_at":"2025-07-01T20:33:23.320Z","updated_at":"2025-07-01T20:33:24.874Z","avatar_url":"https://github.com/magiclabs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scrappy Twitter API\nScrappy Twitter API is a Go-backend project that is secured by the Magic SDK for Go. \n\n# Scrappy Twitter API (CLIENT)\nThis Next.js app authenticates the user and generates the [Decentralised ID Token (DIDT)](https://docs.magic.link/decentralized-id) required to make POST or DELETE requests with the [Scrappy Twitter API](https://github.com/seemcat/scrappy-twitter-api-server).\n\n# Noteworthy Package Dependencies:\n- [Magic SDK](https://docs.magic.link/client-sdk/web/get-started): Allows users to sign up or log in.\n- [SWR](https://github.com/vercel/swr): Lets us get user info using a hook.\n- [@hapi/iron](https://hapi.dev/module/iron/): Lets us encrypt the login cookie for more security.\n\n# Quickstart\n## Magic Setup\n1. Sign up for an account on [Magic](https://magic.link/).\n2. Create an app.\n3. Copy your app's Test Secret Key (you'll need it soon).\n\n## Client Setup\n1. `git clone https://github.com/seemcat/scrappy-twitter-api-client.git`\n2. `cd scrappy-twitter-api-client`\n3. `mv .env.local.example .env.local`\n4. Populate .env.local with the correct Test keys from your Magic app:\n    ```\n    NEXT_PUBLIC_MAGIC_TEST_PUBLISHABLE_KEY=pk_test_XXXXX\n    NEXT_PUBLIC_MAGIC_TEST_SECRET_KEY=sk_test_XXXXX\n    NEXT_PUBLIC_HAPI_IRON_SECRET=this-is-a-secret-value-with-at-least-32-characters\n    ```\n\n    **Note**: The `HAPI_IRON_SECRET` is needed by @hapi/iron to encrypt an object. Feel free to leave the default value as is in dev.\n5. yarn\n6. yarn dev\n7. Generate your DID token and keep this open (you'll need it soon).\n\n## Test with Postman\n1. Follow the steps listed [here](https://github.com/seemcat/scrappy-twitter-api-server) to spin up your own local Go server and to set up the Scrappy Twitter API Postman Collection.\n2. You'll be passing the DID token you just generated as a Bearer token into the Postman Collection’s HTTP Authorization request header. (*Don't forget to click **save**!*)\n3. Send your requests to the **DEV** Scrappy Twitter API! 🎉\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagiclabs%2Fscrappy-twitter-api-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagiclabs%2Fscrappy-twitter-api-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagiclabs%2Fscrappy-twitter-api-client/lists"}