{"id":15671348,"url":"https://github.com/huntie/metalsmith-medium-data","last_synced_at":"2025-10-07T00:33:18.170Z","repository":{"id":19337535,"uuid":"86820756","full_name":"huntie/metalsmith-medium-data","owner":"huntie","description":"Metalsmith plugin to fetch latest user post data from medium.com","archived":false,"fork":false,"pushed_at":"2022-06-25T00:43:21.000Z","size":162,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-03-07T17:50:28.530Z","etag":null,"topics":["api","medium","metalsmith"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/metalsmith-medium-data","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/huntie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-31T13:13:33.000Z","updated_at":"2019-06-02T14:51:31.000Z","dependencies_parsed_at":"2022-08-20T01:51:41.251Z","dependency_job_id":null,"html_url":"https://github.com/huntie/metalsmith-medium-data","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huntie%2Fmetalsmith-medium-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huntie%2Fmetalsmith-medium-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huntie%2Fmetalsmith-medium-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huntie%2Fmetalsmith-medium-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/huntie","download_url":"https://codeload.github.com/huntie/metalsmith-medium-data/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246278827,"owners_count":20751836,"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":["api","medium","metalsmith"],"created_at":"2024-10-03T15:01:59.034Z","updated_at":"2025-10-07T00:33:13.134Z","avatar_url":"https://github.com/huntie.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Metalsmith Medium data\n\nMetalsmith plugin to fetch latest user post data from [medium.com](https://medium.com/) as metadata for template usage.\n\n## Installation\n\n    $ npm install metalsmith-medium-data\n\n## Usage\n\nAdd an `metalsmith-medium-data` entry in `metalsmith.json` or pass the plugin to `metalsmith.use()` in a JavaScript file.\n\n**metalsmith.json**\n\n```json\n{\n    \"plugins\": {\n        \"metalsmith-medium-data\": {\n            \"username\": \"huntie\"\n        }\n    }\n}\n```\n\n**JavaScript file**\n\n```js\nimport medium from 'metalsmith-medium-data';\n\nmetalsmith.use(medium({\n    username: 'huntie'\n});\n```\n\nThe plugin will add a new metadata object on build under the key `medium` for use in templates.\n\n| Property | Type | Description |\n| --- | --- | --- |\n| `medium.user` | `Object` | The user profile data. |\n| `medium.posts` | `Array` | The collection of most recent user posts. |\n\n## Options\n\n| Name | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `username` | `String`  | Yes | `null` | The Medium account user from which to fetch posts. |\n| `key` | `String` | No | `\"medium\"` | The name of the key to set in metadata. |\n| `limit` | `Number` | No | `10` | The maximum number of `posts` to include. |\n\n## Contributing\n\nIf you discover a problem or have a feature request, please [create an issue](https://github.com/huntie/metalsmith-medium-data/issues) or feel free to fork this repository and make improvements.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuntie%2Fmetalsmith-medium-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuntie%2Fmetalsmith-medium-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuntie%2Fmetalsmith-medium-data/lists"}