Github url


by liriliri

liriliri /eruda

Console for mobile browsers

8.8K Stars 720 Forks Last release: 2 months ago (v2.3.3) MIT License 756 Commits 53 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:



Join the chat at versionBuild statusTest coverageLicense

Console for Mobile Browsers.




Browse it on your phone:

In order to try it for different sites, execute the script below on browser address bar.

javascript:(function () { var script = document.createElement('script'); script.src="//"; document.body.appendChild(script); script.onload = function () { eruda.init() } })();


  • Console: Display JavaScript logs.
  • Elements: Check dom state.
  • Network: Show requests status.
  • Resource: Show localStorage, cookie information.
  • Info: Show url, user agent info.
  • Snippets: Include snippets used most often.
  • Sources: Html, js, css source viewer.


You can get it on npm.

npm install eruda --save

Add this script to your page.

<script src="node_modules/eruda/eruda.js"></script><script>eruda.init();</script>

It's also available on jsDelivr and cdnjs.

<script src="//"></script><script>eruda.init();</script>

The JavaScript file size is quite huge(about 100kb gzipped) and therefore not suitable to include in mobile pages. It's recommended to make sure eruda is loaded only when eruda is set to true on url(, for example:

;(function () { var src = '//'; if (!/eruda=true/.test(window.location) && localStorage.getItem('active-eruda') != 'true') return; document.write('<scr src="'%20+%20src%20+%20'"></scr>'); document.write('<scr>eruda.init();</scr>'); })();


When initialization, a configuration object can be passed in.

  • container: Container element. If not set, it will append an element directly under html root element.
  • tool: Choose which default tools you want, by default all will be added.

For more information, please check the documentation.

let el = document.createElement('div'); document.body.appendChild(el); eruda.init({ container: el, tool: ['console', 'elements'] });


If you want to create a plugin yourself, follow the guides here.

Related Projects


Read Contributing Guide for development setup instructions.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.