{"action":"opened","issue":{"url":"https://api.github.com/repos/pastelsky/bundlephobia/issues/224","repository_url":"https://api.github.com/repos/pastelsky/bundlephobia","labels_url":"https://api.github.com/repos/pastelsky/bundlephobia/issues/224/labels{/name}","comments_url":"https://api.github.com/repos/pastelsky/bundlephobia/issues/224/comments","events_url":"https://api.github.com/repos/pastelsky/bundlephobia/issues/224/events","html_url":"https://github.com/pastelsky/bundlephobia/issues/224","id":502635489,"node_id":"MDU6SXNzdWU1MDI2MzU0ODk=","number":224,"title":"Tree shake-able badge","user":{"login":"conartist6","id":540777,"node_id":"MDQ6VXNlcjU0MDc3Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/540777?v=4","gravatar_id":"","url":"https://api.github.com/users/conartist6","html_url":"https://github.com/conartist6","followers_url":"https://api.github.com/users/conartist6/followers","following_url":"https://api.github.com/users/conartist6/following{/other_user}","gists_url":"https://api.github.com/users/conartist6/gists{/gist_id}","starred_url":"https://api.github.com/users/conartist6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/conartist6/subscriptions","organizations_url":"https://api.github.com/users/conartist6/orgs","repos_url":"https://api.github.com/users/conartist6/repos","events_url":"https://api.github.com/users/conartist6/events{/privacy}","received_events_url":"https://api.github.com/users/conartist6/received_events","type":"User","site_admin":false},"labels":[{"id":1397583403,"node_id":"MDU6TGFiZWwxMzk3NTgzNDAz","url":"https://api.github.com/repos/pastelsky/bundlephobia/labels/Improvement","name":"Improvement","color":"6f3aa5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-10-04T13:24:39Z","updated_at":"2019-10-04T13:24:39Z","closed_at":null,"author_association":"NONE","body":"I maintain a functional library (iter-tools). A main selling point is that it is tree shake-able, since it exports quite a lot of methods and most people only need a few. I'd love to advertise this fact with a badge that links to bundlephobia, and which serves as a data display for the tree-shakeable icon(s) that show up on the bundlephobia website itself. I propose a new endpoint of the form:\r\n```\r\n/api/tree-shaking =>\r\n{\r\n  \"tree-shakeable\": true,\r\n  \"side-effects\": false,\r\n}\r\n```\r\nThe badge itself would be implemented on shields.io, and there would be some further design work to figure out how best to combine those two pieces or information.\r\n\r\nI'm happy to code this up and submit a PR. Are there any concerns or suggestions relating to this proposal?"}}
{"actor":{"display_login":"conartist6"}}