{"id":20334963,"url":"https://github.com/mdb/gram","last_synced_at":"2025-09-17T19:21:21.880Z","repository":{"id":43993636,"uuid":"223750925","full_name":"mdb/gram","owner":"mdb","description":"View one's recent Instagram media, with CORS support","archived":false,"fork":false,"pushed_at":"2023-01-24T00:49:20.000Z","size":232,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-17T16:55:28.067Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/mdb.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":"2019-11-24T13:45:11.000Z","updated_at":"2023-01-02T13:44:14.000Z","dependencies_parsed_at":"2023-02-01T03:00:23.954Z","dependency_job_id":null,"html_url":"https://github.com/mdb/gram","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mdb/gram","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdb%2Fgram","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdb%2Fgram/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdb%2Fgram/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdb%2Fgram/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdb","download_url":"https://codeload.github.com/mdb/gram/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdb%2Fgram/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275649330,"owners_count":25503208,"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","status":"online","status_checked_at":"2025-09-17T02:00:09.119Z","response_time":84,"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":[],"created_at":"2024-11-14T20:38:45.474Z","updated_at":"2025-09-17T19:21:21.837Z","avatar_url":"https://github.com/mdb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Actions Status](https://github.com/mdb/gram/workflows/CI/badge.svg)](https://github.com/mdb/gram/actions)\n\n# gram\n\nA micro-y service for fetching one's recent Instagram media, with CORS support.\n\n## Running\n\n```\nexport IG_ACCESS_TOKEN=\u003cyour token\u003e\n```\n\n```\nnpm install\nnpm run start\n```\n\n## Usage\n\n`gram` has 2 endpoints:\n\n1. `GET /` - a basic health check\n\n    Example:\n\n    ```bash\n    curl  http://localhost:3000\n    {\"message\":\"hello world\"}\n    ```\n\n2. `GET /recent-media` - get the 8 most recent media posts from the Instagram user with whom the `IG_ACCESS_TOKEN` is associated:\n\n    Example:\n    ```bash\n    curl http://localhost:3000/recent-media | jq -r '.[0].permalink'\n      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                     Dload  Upload   Total   Spent    Left  Speed\n    100 12652  100 12652    0     0  40194      0 --:--:-- --:--:-- --:--:-- 40292\n    https://www.instagram.com/p/CEbmnwBDYMR/\n    ```\n\n## Development \u0026 Testing\n\n```\nnpm install\nnpm test\n```\n\n## Deploying to Heroku\n\nAssuming you have a [Heroku](http://heroku.com/) account and the `heroku` CLI...\n\n1. login: `heroku login`\n2. create an app: `heroku create`\n3. deploy: `git push heroku master`\n4. configure an access token: `heroku config:set IG_ACCESS_TOKEN=\u003cyour token\u003e`\n5. give your app a custom name (optional): `heroku apps:rename \u003cyour-new-name\u003e`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdb%2Fgram","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdb%2Fgram","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdb%2Fgram/lists"}