Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including onelang with all npm packages installed. Try it out:

var onelang = require("onelang")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

onelang v0.0.7

OneLang transpiler framework core


What is

OneLang has a hard time defining itself.

Some may call it a transpiler, a special compiler which can compile source code from an input language to another. Those will have a hard time using it, as OneLang has its own rules and does not respect those of the input language, sometimes not even its syntax.

So the question arises, is OneLang a new programming language? Although we can talk about it with words like object-oriented or generic or strongly-typed, it has its own type system and AST, would you call something a programming language which does not have its own syntax?

Thus let's just define OneLang as the following for the time being: OneLang is a tool which helps writing code in multiple langauges at the same time.

It doesn't solve the problem for you, it just helps you a bit in it. You still need to master the target languages and OneLang to be able to produce anything usable.

So you may ask:

What is its purpose?

OneLang is the love child of @koczkatamas and it was not a planned child. It just happened to be conceived on a long flight home from Vegas.

Thanks to its luck and its parent's enthusiasm for understanding different programming languages, it survived the threatening monster of early abortion (this sadly cannot be said about its brother and sister projects which may rest in peace in the Git heavens...)

So in the end, we can say OneLang came into this world without explicit purpose.

Maturity of OneLang

OneLang is six months old at the time of writing and it already speaks, but don't expect any comfortable conversation with it yet. It cannot grow without a loving family, and as a single dad I cannot take care of it alone. It needs more mommies and daddies who can help raise it up.


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free