explaingit

wenyan-lang/wenyan

Analysis updated 2026-06-21

20,257TypeScriptAudience · developerComplexity · 2/5Setup · easy

TLDR

An esoteric programming language where code is written in Classical Chinese, you write ancient-style Chinese prose and it compiles to JavaScript, Python, or Ruby and actually runs.

Mindmap

mindmap
  root((repo))
    What It Does
      Code in Chinese
      Compiles to JS Python Ruby
      Turing complete
    Tech Stack
      TypeScript compiler
      npm package
      Browser IDE
    Use Cases
      Artistic coding
      Esoteric experiments
      Classic algorithms
    Getting Started
      Online IDE
      VS Code plugin
      npm install
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Write programming experiments in Classical Chinese syntax as a creative or artistic exercise.

USE CASE 2

Explore esoteric language design by studying how Wenyan compiles to JavaScript, Python, or Ruby.

USE CASE 3

Implement classic algorithms like quicksort or Tower of Hanoi written entirely in ancient Chinese prose.

What is it built with?

TypeScriptJavaScriptPythonRuby

How does it compare?

wenyan-lang/wenyanvercel/chatbotourongxing/newsnow
Stars20,25720,29920,197
LanguageTypeScriptTypeScriptTypeScript
Setup difficultyeasymoderatehard
Complexity2/52/53/5
Audiencedevelopervibe codervibe coder

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Online IDE available at the project site, no installation needed to try it.

In plain English

Wenyan is an esoteric programming language, a language created more as an experiment or artistic statement than as a practical tool, whose syntax is modelled on Classical Chinese, the formal written language used in Chinese literature and official documents for over two thousand years. Programming in Wenyan means writing code that looks like ancient Chinese prose rather than conventional source code. The language is Turing complete, meaning it can theoretically compute anything any other programming language can. The README demonstrates this with a "hello world" example: a short snippet of Classical Chinese characters that declares a number, uses it to control a loop, and prints a phrase three times, functionally equivalent to a simple JavaScript for-loop. Punctuation and line breaks are entirely optional, matching the style of Classical Chinese texts where spacing is absent. Wenyan compiles to JavaScript, Python, or Ruby, so the programs it produces can actually run. There is an online IDE where you can try it in a browser without installing anything. For local use, the compiler is installed via npm. Editor plugins exist for VS Code, Vim, and Sublime Text. The project includes examples of classic algorithms, quicksort, the Sieve of Eratosthenes, Mandelbrot set, Tower of Hanoi, all written in Classical Chinese syntax. The intended audience is primarily people who find the concept amusing or intellectually interesting, programmers curious about esoteric languages, fans of Classical Chinese literature, or anyone who enjoys the absurdity of describing a sorting algorithm in the style of ancient Chinese scholarship.

Copy-paste prompts

Prompt 1
Write me a Wenyan program that prints 'Hello World' three times using the Classical Chinese loop syntax.
Prompt 2
Translate this JavaScript for-loop into Wenyan syntax and explain each Chinese character's meaning.
Prompt 3
Show me the Wenyan implementation of the Sieve of Eratosthenes and walk me through how it works.
Prompt 4
How do I install the Wenyan compiler via npm and run my first Classical Chinese program locally?

Frequently asked questions

What is wenyan?

An esoteric programming language where code is written in Classical Chinese, you write ancient-style Chinese prose and it compiles to JavaScript, Python, or Ruby and actually runs.

What language is wenyan written in?

Mainly TypeScript. The stack also includes TypeScript, JavaScript, Python.

How hard is wenyan to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is wenyan for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Scan in gitsafehub Deploy in gitdeployhub wenyan-lang on gitmyhub

Verify against the repo before relying on details.