DEV Community

Cover image for How is LiveCodes Free?!
Hatem Hosny for LiveCodes

Posted on • Originally published at blog.livecodes.io

How is LiveCodes Free?!

LiveCodes is a feature-rich, open-source, client-side, code playground that supports 80+ languages and frameworks. Playgrounds can be embedded in web pages. A powerful, yet easy-to-use, SDK allows creating and communicating with playgrounds.

Nevertheless, LiveCodes is free, with no subscriptions, no limits to usage, no ads and no account required. It is MIT-licensed which allows its use, distribution and modification even for commercial projects.

So, how can LiveCodes be free? What is the catch?

In this article we will discuss LiveCodes business model and how it can be sustainable.

TL;DR

High quality, free product ā†’ wide adoption ā†’ use for profit ā†’ sponsors šŸŽ‰

Win/Win/Win!

LiveCodes is a Developer Tool Not a Hosting Company!

Most other code playgrounds with comparable features and language support are either paid, or have significant, progressively increasing, limitations on free plans. Limitations restrict number of users, private projects, compute time to run code, available RAM or CPU, editable playgrounds and more. This is understandable. Servers cost money, and high usage of running code on servers can be expensive.

LiveCodes solves this problem by running code on user devices not servers. So, instead of selling VMs and cloud computing, LiveCodes works on the client-side, and runs all the code (including compiling 80+ languages) in the browser. See how LiveCodes is different.

LiveCodes aims to be a developer tool that boosts productivity, enhances learning new technologies and allows the use of interactive tutorials in teaching, without having to care about spinning servers, maintaining databases, managing scaling or struggling with configuration files.

Sustainability and Scalability

Sustainability is important. Running costs should not exceed project budget.

With this in mind, here is the current technology stack and services used by LiveCodes and their running costs:

Total running costs: Almost Zero!

In addition, being a static app, the files are aggressively cached in the browser and on CDN.

With high usage, LiveCodes is served from the edge (on Cloudflare CDN) close to the users. The computation occurs on user browsers. This does not result in any significant increase in costs.

Everybody is happy!

Can LiveCodes be used for profit?

Absolutely!

LiveCodes is open-source and uses the commercial-friendly MIT-license which allows unrestricted use, distribution and modification even for commercial projects.

It can be easily self-hosted (if you wish) on any static file server. And, of course, you may use the hosted app (livecodes.io) or any of its permanent URLs.

LiveCodes offers a wide range of features. And, in fact, many of these were specifically added to allow building products on top of it (e.g. self-hosting, embedded playgrounds, SDK, headless mode, and running tests, just to name a few).

With wider adoption and happy users, more and more projects would start building on top of LiveCodes.

Examples for products that can be built on top of LiveCodes:

  • Courses/Tutorials websites: similar to FreeCodeCamp, W3Schools, etc.
  • Social coding platforms: similar to CodePen, Replit, etc.
  • Code challenge platforms: similar to Leetcode, CodeWars, etc.
  • Interactive documentations for libraries.
  • Interactive blogs.
  • Website builders and content management systems, etc.

Development and Maintenance Costs

Commercial projects built on top of LiveCodes, would value the continued development and maintenance of the project. The cost of in-house building or maintaining such a project is high. At a fraction of that cost, sponsoring LiveCodes would provide stability for the project, ensure that it continues to receive regular updates and allow having a higher priority in feature development. Sponsors can also have custom playground builds with their own logo and brand among other benefits.

In addition, such a sponsorship could enhance the sponsor's reputation, reflect goodwill and signal the commitment to technological innovation and support for the open-source community.
This is a strategic investment that pays off very well.

Win/Win/Win

In summary, this business model is beneficial for everybody:

  • The vast majority of users can continue to use LiveCodes for free and enjoy the large number of features.

  • Commercial projects that build on top of LiveCodes can make use of the well-maintained product. Some of these projects may choose to sponsor LiveCodes to support its continued development at a fraction of the cost that would be required for in-house building or maintaining such a project.

  • LiveCodes maintainers can satisfy the passion of building the project they love, see it being used by their community and get compensated for their effort.

Win/Win/Win!

How Can I Help?

I'm glad you asked! Thank you :)

  • Please continue using LiveCodes! Don't worry, it is staying free for the foreseeable future.
  • Report any issues and suggest new features here.
  • Star the project on GitHub. ā­
  • You are very welcome to contribute to the project.
  • Follow @livecodes_io on Twitter.
  • Spread the word!
  • ... and consider sponsoring LiveCodes! šŸ’š

Top comments (0)