Coder Social home page Coder Social logo

minibook's Introduction

miniBook

Welcome!

This is a compression challenge for Web developers.

The goal is to compress this HTML page containing the complete work of William Shakespeare,
based on the version hosted on Project Gutenberg.

All means are allowed to compress the file, but the decompression must happen entirely in the browser.

The page is encoded in UTF-8 with BOM and has a size of 5,324,821 bytes.
All characters are ASCII. (\n !"&'(),-.0123456789:;<>?ABCDEFGHIJKLMNOPQRSTUVWXYZ[]_abcdefghijklmnopqrstuvwxyz|})

More info on on ANALYSIS.md

Rules

  • Fork this repo.
  • Copy the "example" folder and rename the copy with your Github username.
  • Your folder contains a file called index.html, containing a <xmp> HTML tag followed by a long text.
  • You can create other text and/or binary files at your convenience.
  • Compress the file as much as you can without altering the output.
  • The decompression must happen in the browser, without any user input, and use a reasonable amount of time (<30 min) and memory (<4GB) on a modern computer.
  • You can use HTML & JavaScript only, no PHP (or any server-side language), no VBScript.
  • You CAN use HTML entities to replace any characters.
  • You CAN use gzip (or concurrent) compression algorithms, other charsets than UTF-8, binary packing, neural networks...
  • You CAN use temporary elements (text, canvas...), but need to hide them or remove them from the DOM at the end.
  • You can NOT perform network queries or read any file that's not present in your folder.
  • You can NOT use browser extensions, JS error messages, or the built-in spellchecker.
  • You can NOT store data in file names, HTTP headers or anything that wouldn't appear in the byte count.
  • Your score is the total size, in bytes, of the file(s) present in your folder.
  • Add a readme file explaining your process.
  • Open a merge request to appear in the leaderboard.

Reward

  • A first reward of 50€ (via Paypal) will be granted to the first person that beats 1050kb (i.e. 15kb bigger than paq8hp12's score for this file)
  • Then, a reward of 10 + X€ will be granted to each person that beats the previous record by Xkb.

Leaderboard

  • winstonewert: 1 971 890 bytes (using PNG bootstrap) demo, readme
  • jeremyrixon: 2 961 629 bytes (using Unicode and LZW) demo, readme

minibook's People

Contributors

xem avatar jeremyrixon avatar winstonewert avatar

Watchers

Matt Mastracci avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.