diff --git a/epub/epub-tests.ts b/epub/epub-tests.ts
new file mode 100644
index 0000000000..6e61a26634
--- /dev/null
+++ b/epub/epub-tests.ts
@@ -0,0 +1,9 @@
+///
+import EPub = require("epub");
+
+var epub = new EPub("./file.epub");
+epub.on("end", function(){
+ epub.getChapter("chapter_id", function(err: Error, text: string) {});
+});
+
+epub.parse();
diff --git a/epub/epub.d.ts b/epub/epub.d.ts
new file mode 100644
index 0000000000..7c813e003d
--- /dev/null
+++ b/epub/epub.d.ts
@@ -0,0 +1,66 @@
+// Type definitions for epub
+// Project: https://github.com/julien-c/epub
+// Definitions by: Julien Chaumond
+// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+
+///
+
+/**
+ * new EPub(fname[, imageroot][, linkroot])
+ * - fname (String): filename for the ebook
+ * - imageroot (String): URL prefix for images
+ * - linkroot (String): URL prefix for links
+ *
+ * Creates an Event Emitter type object for parsing epub files
+ *
+ * var epub = new EPub("book.epub");
+ * epub.on("end", function () {
+ * console.log(epub.spine);
+ * });
+ * epub.on("error", function (error) { ... });
+ * epub.parse();
+ *
+ * Image and link URL format is:
+ *
+ * imageroot + img_id + img_zip_path
+ *
+ * So an image "logo.jpg" which resides in "OPT/" in the zip archive
+ * and is listed in the manifest with id "logo_img" will have the
+ * following url (providing that imageroot is "/images/"):
+ *
+ * /images/logo_img/OPT/logo.jpg
+ **/
+declare module "epub" {
+
+ import {EventEmitter} from "events";
+
+ interface TocElement {
+ level: number;
+ order: number;
+ title: string;
+ id: string;
+ href?: string;
+ }
+
+ class EPub extends EventEmitter {
+ constructor(epubfile: string, imagewebroot?: string, chapterwebroot?: string);
+
+ metadata: Object;
+ manifest: Object;
+ spine: Object;
+ flow: Array