InsFrame (Inside iFrame) is a central hub to distribute web apps to multiple environments. You have some browsers connect to InsFrame and then send a url to it, all browsers will open the url.
InsFrame is very potential to do some solid work, such as:
- Distribute performance benchmarks
- Screen scraping
$ npm install -g insframe
Start InsFrame server:
By default InsFrame listens to port 2011. You can run InsFrame in another port, for example:
$ insframe 8081
Point some browsers to InsFrame.
Hack it locally
First clone InsFrame from our Github repository:
$ git clone git://github.com/linkedin/insframe.git
$ cd insframe && node -e "new (require('./InsFrame'))()"
open: Distribute a URL
To distribute a url, send a request to /open/?url=URL. For example:
$ curl http://localhost:2011/open/?url=http://engineering.linkedin.com
close: Close a URL
To close an url, send a request to /close/?url=URL. For example:
$ curl http://localhost:2011/close/?url=http://engineering.linkedin.com
clear: Close all URLs
To close all URLs have been distributed by InsFrame, send a request to /clear. For example:
$ curl http://localhost:2011/clear/
Clear command is run after 5 minutes timeout to make sure all browsers connecting to InsFrame have a fresh state.