Is there any way to use the cartoDB.js library with maps hosted on the CartoDB website? From the documentation it looks like the library can only be used for maps you make on your own website -- is that correct?

1 Answer 1


No, you can't run CartoDB.js without some HTML webpage. There are a lot of tools out there for hosting a simple HTML webpage though. One I often use is a GitHub Gist. Although GitHub wont display it as rendered HTML for you on its own, you can use bl.ocks to then see the result. The key is to name it index.html. You can see a ton of my Gists over on


If you want to see how I create them, I made a little movie for you here,


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.