Focus.app is a project mainly written in ..., based on the View license.
A little menubarlet for focusing by disabling network traffic, work in progress.
Here you can find the source for focus.app available at http://therealfocusapp.com. If you have any problems feel free to email me [email protected] or tweet me @benmcredmond.