Inject. Execute.
Have fun!

A lightweight, CRT-style command interface for your web projects.
Activated via the Konami code.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
<script>
  (function (d, s, id, config) {
    var js, el = d.getElementsByTagName(s)[0];
    // avoids loading the script twice by mistake
    if (d.getElementById(id)) return;
    // create a script tag
    js = js.createElement(s);
    // assign an id so we can detect if we already added it
    js.id = id;
    // assign the src to the script's widget URL
    js.src = 'dist/firelin.min.js';
    js.defer = true;
    el.parentNode.insertBefore(js, el);
    // initializes the widget when the script is ready
    js.onload = function () {
      if (window.FirelinTerminal) {
        window.FirelinTerminal.create(config);
      }
    };
  })(document, 'script', 'firelin-terminal-js', {
    theme: 'amber',                                   // 'phosphor' | 'amber' | 'ayu' | 'noctis'
    title: 'mysite — bash',                           // titlebar label
    osName: 'firelin',                                // used across the app
    user: 'guest',                                    // default logged in user
    welcomeMessage: 'Hello from my site!',            // string or array of strings
    history: ['ls /projects', 'whoami'],              // pre-seeded history entries
    curl: [{                                          // custom curl endpoints
      url: 'https://api.mysite.com/status',
      status: 200
      statusText: 'OK'
      delay: 420
      headers: ['Content-Type': 'application/json']
      body: '{"status":"ok"}'
    }]
    packages: {                                       // package manager config
      registry: 'https://myregistry.com/index.json'// Your custom alternative registry
      preload: ['hello'],                             // auto-install from public registry
      local: [{                                       // private commands (your server)
        name: 'myapp',
        description: 'My company commands',
        version: '1.0.0',
        src: '/js/myapp-cmd.js',
        commands: ['myapp']
      }]
    }
  });
</script>

Access Protocol

To summon the terminal overlay on desktop environments, implement the script and execute the sequence below on your keyboard.

B
A