{"id":19112388,"url":"https://github.com/actionhero/ah-sample-plugin","last_synced_at":"2025-10-06T01:37:30.315Z","repository":{"id":15157846,"uuid":"17885447","full_name":"actionhero/ah-sample-plugin","owner":"actionhero","description":"A sample actionhero plugin","archived":false,"fork":false,"pushed_at":"2018-09-26T01:57:48.000Z","size":48,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-09T11:55:15.778Z","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/actionhero.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":"2014-03-18T23:22:15.000Z","updated_at":"2019-05-07T17:19:50.000Z","dependencies_parsed_at":"2022-07-15T17:00:33.864Z","dependency_job_id":null,"html_url":"https://github.com/actionhero/ah-sample-plugin","commit_stats":null,"previous_names":["evantahler/ah-sample-plugin"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/actionhero/ah-sample-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actionhero%2Fah-sample-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actionhero%2Fah-sample-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actionhero%2Fah-sample-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actionhero%2Fah-sample-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/actionhero","download_url":"https://codeload.github.com/actionhero/ah-sample-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actionhero%2Fah-sample-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278547772,"owners_count":26004772,"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-10-05T02:00:06.059Z","response_time":54,"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-09T04:32:57.433Z","updated_at":"2025-10-06T01:37:30.278Z","avatar_url":"https://github.com/actionhero.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ah-sample-plugin\n\n[![CircleCI](https://circleci.com/gh/actionhero/ah-sample-plugin.svg?style=svg)](https://circleci.com/gh/actionhero/ah-sample-plugin)\n\nI am a simple sample plugin for actionhero.  I don't do much, as I am just an example.\nI will add timing information to each action, using a response key defined in a new config file.  If `api.config['ah-sample-plugin'].timingKey = delta`, all actions would now have `response.delta`.\n\n## Install\n\n```bash\nnpm install ah-sample-plugin --save\n```\n\nThen add it to your project's `./config/plugins.js`:\n```js\nexports['default'] = {\n  plugins: (api) =\u003e {\n    return {\n      'ah-sample-plugin': { path: __dirname + '/../node_modules/ah-sample-plugin' }\n    }\n  }\n}\n```\n\nCreate a new config file, `./config/ah-sample-plugin.js`:\n```js\nexports.default = {\n  'ah-sample-plugin': (api) =\u003e {\n    return { timingKey: 'delta' }\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factionhero%2Fah-sample-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Factionhero%2Fah-sample-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factionhero%2Fah-sample-plugin/lists"}