The notifications service, written in Go, had originally been written to send notifications to the non-Mac-App-Store edition of OmniFocus for Mac. (It may be a surprise to hear that we have a lot of Python experience.
![omnifocus web omnifocus web](https://2672686a4cf38e8c2458-2712e00ea34e3076747650c92426bbb5.ssl.cf1.rackcdn.com/2018-05-30-06-47-11.jpeg)
It also cleans up idle instances and takes care of API host scaling.
#OMNIFOCUS WEB CODE#
The coordinator initiates an instance of the shared model code for each user, and makes sure that user is connected to that instance.
#OMNIFOCUS WEB OFFLINE#
We run more than one of these, so that if we need to take one offline (for an upgrade, for instance) then OmniFocus for the Web will continue working. The front end doesn’t talk directly to the shared code - instead, we’ve created an API, and the front end talks to one of our API hosts, which then talks to the shared model code. API HostsĪPI hosts sit between the front end and the shared model code. They are: API hosts, the coordinator, the notifications sytem, and the front end (the user interface). In addition to that shared model code, the web version has additional components that aren’t shared - they’re only for the web app. But it’s not the only thing running on the web. It means that, when you’re using OmniFocus for the Web, you’re actually connecting to a sandboxed instance of that same OmniFocus code that’s running on your Mac, iPhone, or iPad. Given that this code is all under-the-hood code - it’s not user interface code - we realized that we could run it on the web, too, as long as we’re using Mac servers. Something that works perfectly in one place might not work in another, or might work subtly differently.
![omnifocus web omnifocus web](https://img.macg.co/2018/1/macgpic-1517231037-12070922670732-jpt.jpg)
But that would have meant more work up front and more ongoing work, as both versions would have to be in step with each other.Īnd it’s likely that each version would have different bugs.
#OMNIFOCUS WEB FOR MAC#
Our model code - the code that manages the database and syncing - was already shared between OmniFocus for Mac and iOS, and it’s a mix of Objective-C and Swift code.įor OmniFocus for the Web, we could have written a new version of this code in another language such as Go or Ruby. It actually makes complete sense! Shared Database and Syncing Code John’s right: it’s so Omni, and it does sound a little nutty - but only because it’s not what most companies do. It’s so very Omni to do something so nutty-sounding. Crazy, right? And so for all of the consternation that people like us, and all the anger we have at developers who make web apps and put it in a shell and call it their Mac app, The Omni Group has done the right thing! They took their Mac app and now it’s on the web! Super-super great.
![omnifocus web omnifocus web](https://discourse.omnigroup.com/uploads/default/original/3X/f/4/f4c5d9673159f1b5836e11be64bee85190b0ffea.jpeg)
…instead, what these crazy people did is they’re using the same Objective-C and Swift code that OmniFocus for Mac is built with, and they’re running it on Mac servers, and they just have web output display from the same code. If you listen to The Talk Show Live from WWDC 2019, near the beginnning (around 3:33) you’ll hear the host John Gruber talk about OmniFocus for the Web: