{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/node/issues/2948","labels_url":"https://api.github.com/repos/nodejs/node/issues/2948/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node/issues/2948/comments","events_url":"https://api.github.com/repos/nodejs/node/issues/2948/events","html_url":"https://github.com/nodejs/node/issues/2948","id":107160110,"number":2948,"title":"Build the lightest node binary possible","user":{"login":"jsdario","id":5166506,"avatar_url":"https://avatars.githubusercontent.com/u/5166506?v=3","gravatar_id":"","url":"https://api.github.com/users/jsdario","html_url":"https://github.com/jsdario","followers_url":"https://api.github.com/users/jsdario/followers","following_url":"https://api.github.com/users/jsdario/following{/other_user}","gists_url":"https://api.github.com/users/jsdario/gists{/gist_id}","starred_url":"https://api.github.com/users/jsdario/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsdario/subscriptions","organizations_url":"https://api.github.com/users/jsdario/orgs","repos_url":"https://api.github.com/users/jsdario/repos","events_url":"https://api.github.com/users/jsdario/events{/privacy}","received_events_url":"https://api.github.com/users/jsdario/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nodejs/node/labels/build","name":"build","color":"eb6420"},{"url":"https://api.github.com/repos/nodejs/node/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-09-18T08:58:35Z","updated_at":"2015-09-25T15:38:30Z","closed_at":null,"body":"I am working right now onto installing node.js onto OpenWRT routers. Due to memory restrictions I am afraid that it employs more space that we actually pursue, and sometimes way more than routers can actually hold.\r\n\r\n### How can we achieve the smallest node binary possible?\r\n\r\n> We want to (cross-)compile node from source to achieve the minimal disk use possible\r\n> SSL/TLS is mandatory for us, but for example npm is not. \r\n\r\nLinks will be appreciated. I have been querying google for a couple of days now, but got little information. Thank you all. Hope that this question is reusable for the community.\r\n"},"comment":{"url":"https://api.github.com/repos/nodejs/node/issues/comments/143254562","html_url":"https://github.com/nodejs/node/issues/2948#issuecomment-143254562","issue_url":"https://api.github.com/repos/nodejs/node/issues/2948","id":143254562,"user":{"login":"piranna","id":532414,"avatar_url":"https://avatars.githubusercontent.com/u/532414?v=3","gravatar_id":"","url":"https://api.github.com/users/piranna","html_url":"https://github.com/piranna","followers_url":"https://api.github.com/users/piranna/followers","following_url":"https://api.github.com/users/piranna/following{/other_user}","gists_url":"https://api.github.com/users/piranna/gists{/gist_id}","starred_url":"https://api.github.com/users/piranna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piranna/subscriptions","organizations_url":"https://api.github.com/users/piranna/orgs","repos_url":"https://api.github.com/users/piranna/repos","events_url":"https://api.github.com/users/piranna/events{/privacy}","received_events_url":"https://api.github.com/users/piranna/received_events","type":"User","site_admin":false},"created_at":"2015-09-25T15:38:30Z","updated_at":"2015-09-25T15:38:30Z","body":"As @heavyk [commented](https://github.com/NodeOS/NodeOS/issues/170#issuecomment-141584801) on NodeOS issues, I would start by moving all the build-in modules from the `/lib` to an external `node_modules` folder and force Node.js to use it, so the binary gets smaller and you can be able to remove the modules that you are not using."}}