6 ms·
Show HN: Express CDN, deliver optimized and CDN-hosted assets in Node.js
- niftylettuce 14y agobuilt in 2 days, would love help with the lazywebs such as adding tests and more CDN hosts
- jameswyse 14y agoReplacing url() calls inside stylus is pretty high on my requirements, If I've got some time I'll work on that. Though perhaps that would be better implemented as a stylus function, like: http://learnboost.github.com/stylus/docs/functions.url.html http://learnboost.github.com/stylus/docs/functions.url.html
- jameswyse 14y agoAwesome. I'm working on a project right now and was close to writing this myself.
- mqzaidi 14y agoI wrote something similar, a connect middleware, but not as feature rich as this one. https://github.com/qzaidi/magickwand/blob/master/examples/cdn.js https://github.com/qzaidi/magickwand/blob/master/examples/cd... I guess there would be several things I can pick up from here.
- mathrawka 14y agoThis is exactly what I was looking for but couldn't find, so I was resigned into building something like this over a weekend sometime. Looks like I'll be testing this library out in my production setup instead this weekend :D
- robbiet480 14y agoThis is amazing. Nice job niftylettuce.
- niftylettuce 14y ago\o thx Robbie
- rmoriz 14y agoNo offense but even after some years still most npm don't come with any tests. Is that considered normal or to hard to do with the current javascript test libraries?
- niftylettuce 14y agoadded tests to lazyweb requests, thx pull requests welcome
- jahewson 14y agoIt's a shame that "CDN-Hosted" means only "Amazon CloudFront hosted".
- niftylettuce 14y agothx for suggestion, added to lazyweb requests planned on adding MaxCDN and Rackspace support
- jameswyse 14y agoI would separate each service into an add-on package, eg: 'express-cdn-rackspace'
- niftylettuce 14y agosimilar to passport, good idea
- deleted 14y ago[deleted]
- krmmalik 14y agoI'm really looking forward to the MaxCDN support, as our company uses it for most of our projects. Currently we've been manually doing all the optimisations and uploading and whatnot. Though to be fair, we're not using Node.js for any of our existing projects, but i started a new project this week using Node.js and something like this would be a godsend when it comes to scaling the application up. Thanks for creating this.
- KaoruAoiShiho 14y agoCan you run image optimizers on your application server? Would that slow down everything else?