Skip to content

lramsey/klickr-chrome-1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Klickr.io

Contents

What is Klickr.io?
Is Klickr.io live?
Meet the Team
Screenshots
Tech Stack
Technical Challenges
Roadmap for Codebase

Following the age-old mantra of "a picture speaks a thousand words," Klickr.io makes it super easy to create shareable tutorial-style snippets of web content and share them with others. We address the problem of how difficult it to put together instructions to teach someone how to do even the simplest of tasks.

Using our Chrome extension, you can record and annotate a web snippet, or Klick, on your browser which you can share with others. These snippets are not videos - they play back natively on the Chrome browser.

In short, yes. Visit us at http://klickr.io.

Note that Klickr is in Beta. It has bugs and lacks important features. That said, even with its current flaws, we believe it brings enough value to make it useful, fun and share-worthy. We also want you to try it and let us know what you think.

###Willson Mock Willson Image

###Justin Yek Justin Image

###Luke Ramsey Klickr.io Home Page

###Stephan Dacosta Klickr.io Home Page

Home Page

Klickr.io Home Page

Gallery Page

Klickr.io Gallery Page

Klickr is comprised of a Chrome extension and a web application. The tech stack we used is as follows:

Chrome extension: Manifest 2, Angular

Web application: Backend: Node, Express, MongoDB and Mongoose; Frontend: Angular.js, CSS3

  • Architecture: Engineering Klickr required access beyond the browser DOM. We considered desktop apps, browser plugins, bookmarklets and node apps before choosing a Chrome extension.

  • Chrome Extension: We had to work extensively in a new technology, the Chrome extension framework, which involved asyncronous messaging between webpage and application level code. We applied our knowledge from other MVC frameworks and organized our chrome extension in a component-based, Backbone inspired manner.

  • Recording and Playback Architecture: As there were no existing solutions we could work on, we designed and implemented a proprietary recording, annotation and playback framework without any dependencies to suit our needs of recording and playing back natively on the browser.

  • Playback: Webpages are not designed for native playbacks. We implemented several workarounds to enable compatability with different screen sizes, annotations, trigger clicks, keypresses, scrolling and multipage playback in the browser by injecting Javascript into the page DOM.

Our codebase has two separate components: one representing the front- and back-end interface for running our web application and another for the chrome browser plugin.

Key files for backend:

  1. server.js and server-config.js
  2. server/models/klicks.js

We used Yeoman to scaffold our front- and back-end web application so it should follow a familiar layout. Starting with the backend experience, the server.js and server-config.js are standard setups for Express servers. We set up our Mongo connection in server/config.js and maintain one schema for collecting all our Klickr data in server/models/klicks.js. The CRUD aspect of our application logic can be found in the route-handlers within lib/request-handler.js.

Key files for frontend:

  1. landing.html and gallery.html
  2. scripts/

The frontend component consists of Angular. Our landing view consists of some added features where we add custom directives for handling how certain elements scroll into place. Our gallery view is currently a listing of all saved Klickr's from all users. We added functionality to filter by Klickr description and included the initial concept of building "hype" around each Klickr, in addition to being able to see basic statistics such as the duration and total number of views for each Klickr.

Key files:

  1. manifest.json
  2. popups/popup.html and popups/app.js
  3. bg/ * background.js * bg-recorder.js * bg-player.js * bg-editor.js
  4. content-scripts/ * recorder.js * player.js * message.js

Manifest.json

The manifest.json file is the configuration file for our chrome browser plugin. There are two main sections within the manifest.json that have significant ramifications for how we developed our application: 1) background, and 2) content_scripts. The scripts within the background section describe the JavaScript files that consist of the background process that stays persistent while the chrome browser is open. Therefore, these files are particular useful for holding data that needs to be kept around across multiple DOM sessions (such as multi-page recordings). The content script section describes the JavaScript files that will be injected into each DOM page whenever a user loads a new one. Of particular note is that the files within these two sections do not have direct communication with each other because they exist in different JavaScript execution contexts. This is where the PubSub paradigm is prevalent and message passing occurs between the two sets of files.

Popup.html and App.js

The popup.html file represents the primary front end interface for our end users. This is where all our buttons exist - play, stop, replay, pause, annotate, delete, and save. This file combined with the app.js file represent the entire Angular frontend. The functions defined within the PopupCtrl control when the buttons should appear for users based on the status of the different parts of our application.

Background.js

The background.js file adds a Klickr class, and instances of this class represent the overall controller between instances of BgEditor, BgPlayer and BgRecorder.

Bg-recorder.js

The bg-recorder.js file represents our Background Recorder class. The primary purpose of a bg-recorder instance is to aggregate all of the movement data captured from a recorder instance and package this information into a Klickr object. The Klickr object is fed to a player instance in order to enable playback. The mechanism in which a bg-recorder instance is able to aggregate the movement data is through listeners set up to listen for messages from a recorder instance.

Bg-player.js

The bg-player.js file represents our Background Player class. The primary purpose of a bg-player instance is to control the timing in which a player instance will play the movement data aggregated by the bg-recorder instance. The bg-player instance acts as a coordinator with the player instance and has listeners set up to listen for messages from

Bg-editor.js

The bg-editor.js file represents our Editor class. You can think of an editor instance as the controller between a particular player and recorder instance. It dictates when a player instance can pause and resume playback, and when a user can add annotations to a Klickr recording.

Recorder.js

The recorder.js file represents our Recorder class. The primary purpose of a recorder instance is to capture movements on screen and then log each of those movements to a bg-recorder instance. This mechanism is necessary because the bg-recorder instance is able to hold onto all of the movement data even during a multi-page recording.

Player.js

The player.js file represents our Player class. The primary purpose of a player instance is to play all of the movement data captured from a recorder instance (and stored in a bg-recorder instance). As part of the playback functionality, a player instance also ensures that playback will scale to the user's screen dimensions.

Message.js

The message.js file represents our Message class. You can think of a message instance as any of annotations that appear on screen. Each message instance has the ability to fade out from the screen when appropriate.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published