Early immediately The Iconfactory launched their newest app, a easy internet server utility known as WorldWideWeb. Solidly developer-focused in scope, the app serves information from an area listing to an robotically generated URL, making these information out there to any system in your native community. While there are certain to be extra creative use circumstances for such a utility, its normal objective is for testing easy web sites constructed on the Web’s best primitive: HTML.
WorldWideWeb’s killer function is simplicity. The app’s complete major interface consists of two tiny sections: within the first you choose a folder, and within the second you begin or cease the online server. When the server is activated, a URL is generated. The app makes use of Bonjour to make the deal with out there to any system on the identical Wi-Fi community because the host. Just copy and paste the URL or press the ‘Open in Browser’ button to view the web site natively in an online browser.
The main advantage of a instrument like that is to allow builders to check their web sites in an setting that matches that of their customers. While many coding apps for Mac assist built-in previews of HTML web sites, these previews can differ in habits from the precise internet browsers that customers might be viewing web sites from in manufacturing. Furthermore, simulating system sizes isn’t fairly as efficient as viewing an internet site on the units themselves. WorldWideWeb permits builders to simply open their in-development web site on an precise smartphone- or tablet-sized system somewhat than utilizing a simulator. They can then make modifications to their information and merely reload the browser tab to see these modifications reside.
If you’re an online developer on the Mac, you’re in all probability accustomed to another companies that offer this use case. While I battle to think about a neater out-of-the-box resolution to the issue than WorldWideWeb, its simplicity additionally hamstrings it in lots of situations. The app’s superior configuration choices are exceedingly restricted, making it unusable for server-rendered web sites reminiscent of these written in React or PHP. This hole will sadly forestall many (most?) fashionable internet builders from having a use case for it.
The story right here is sort of a bit completely different for the iPad and iPhone. These units have beforehand had no well-known technique to obtain the performance that WorldWideWeb is offering, and definitely not with all the convenience and magnificence of an app by The Iconfactory. Now, alongside the superb code editor Runestone (which I lined right here final month), WorldWideWeb completes a possible end-to-end pipeline for internet improvement on Apple’s cell platforms. Of course we’re primarily speaking concerning the iPad right here, and this addition continues to stoke my pleasure concerning the state of improvement instruments on iPadOS. If you’re creating an internet site utilizing customary HTML, CSS, and JavaScript, you might now significantly take into account switching to iPad as your full-time improvement machine. There’s nonetheless a methods to go for most builders contemplating iPadOS, but it surely’s thrilling to see extra holes within the course of being stuffed.
Regarding the Mac, sooner or later I’d like to see The Iconfactory increase WorldWideWeb to serve extra use circumstances. I believe they might really achieve this pretty simply by making their app do even much less. Currently it requires you to decide on a folder and then sends requests to the information inside it. I’d like to have the ability to skip selecting a folder, and as a substitute simply give the app a port which it might pipe localhost site visitors to. This would permit me to spin up my extra superior Docker improvement setting, however nonetheless get the advantage of a one-click Bonjour internet server which I might then entry from any system on my community.
For now, the app serves a extra restricted use case, though it does embody just a few superior choices for builders. Using the gear icon within the app’s internet server part, you’ll be able to select default file sorts, change the port that the server runs on, inform the app to verify different file sorts if an extension is lacking, or output request logs to a selected location. These choices are nonetheless pretty restricted, however The Iconfactory factors out of their weblog submit introducing the app that you might use them to serve some static testing information for API endpoints. I really feel like there are higher methods to attain one thing like that given WorldWideWeb’s in any other case extraordinarily restricted utility for superior improvement wants, however your mileage might differ should you’re keen to get inventive.
WorldWideWeb has positioned itself in a venerable, if dwindling area of interest of internet improvement. I like its dedication to the sacred artwork of unalloyed HTML. While the app is exceptionally fashionable in implementation, it calls delightfully again to an earlier period of the online; reminding us of a time earlier than rampant adverts, bloated webpages, and invasive monitoring. While my present improvement wants don’t match into the app’s slender scope, I’m hoping that future updates would possibly open a path for me to put it to use.
WorldWideWeb is accessible for free through the App Store on macOS, iPadOS, and iOS.
https://www.macstories.net/reviews/worldwideweb-a-simple-web-server-utility-for-mac-ipad-and-iphone/