A programming language in Setswana

Write code in Setswana.
Watch it move.

Bopa is a creative-coding language and online platform. Learn to program, make art, build games and model the world in your own words. It all runs in the browser, with nothing to install.

Built by Mopane Technologies

  • 400+ Setswana keywords
  • Free for learners
sediko.bopa
tiro setaLoeto() {
  thalaKanefase(400, 400);
  seeloSaMmala(HSB);
  tlogelaMothalo();
}

tiro tshwantsha() {
  bokamorago(0, 0, 6);
  gopheta (diri i = 0; i < 12; i++) {
    diri a = paloYaDikgato * 0.02 + i * PEDI_PI / 12;
    tlatsaMmala(i * 30, 70, 95);
    thalaSediko(pebaX + cos(a) * 80, pebaY + sin(a) * 80, 24);
  }
}
Preview
Hover a Setswana word to see its JavaScript. Move your pointer over the preview.Tap a Setswana word to see its JavaScript. Touch the preview to move the circles.

What you can make

Everything JavaScript can do. Now in Setswana.

Bopa runs like JavaScript, the language that is used in websites and applications around the world. These programs are written in Bopa and run live, right here.

In your words

A language that speaks like Botswana does.

Every keyword has a Setswana name, chosen and documented with its evidence. Mix in English where it's natural: sin and cos stay sin and cos. When something goes wrong, Bopa tells you in Setswana, on your line, and guesses what you meant.

  • Autocomplete, hover docs and signature help in the editor
  • A reference page for every keyword, each with a live example
  • Setswana and English interface, switchable any time
tirofunction dirilet faif gophetafor nakowhile busareturn nnetetrue thalaSedikocircle tlatsaMmalafill paloEperandom pebaXmouseX sutisatranslate dikolosarotate paloKelelonoise
Console
5 │   thalaSedko(200, 200, 50);
✕ Leina 'thalaSedko' ga le a tlhomiwa —
  o ne o ka re 'thalaSediko'?

“The name 'thalaSedko' isn't defined. Did you mean 'thalaSediko'?”

Who it's for

A place to learn, teach and make together.

The language is the first step. Bopa is growing into a platform where learners find teachers, teachers find their audience, and everyone's work is a click away from a remix.

Learners

Students, self-learners and freelancers

Start with a moving circle, end up with a game. Save your sketches, share a link, and follow lessons from teachers you like. Free for every individual learner.

Join as a learner →

Teachers & schools

Classrooms, clubs and programmes

Teach programming without a language barrier. It runs on any school lab machine or laptop with a browser. Early pilots come with help on setup, lessons and evaluation.

Join as a teacher →

Creators

YouTubers, artists and makers

Make lessons, videos, examples and art in Bopa. Every sketch you publish is runnable and remixable by your audience, so your tutorial becomes the playground.

Join as a creator →
  • Soon Editor, examples, reference, saving & sharing
  • Next Creator profiles and published lessons
  • Next Classrooms for teachers
  • Later Forums and community challenges

Under the hood

A real compiler, built for Setswana.

Your Setswana goes through the same stages as any production compiler: lexing, parsing, transformation passes and code generation. It comes out as JavaScript that runs in your browser.

  1. Your code, in Setswana thalaSediko(200, 200, 50);
  2. The Bopa compiler LexingParsingTransformationCode generation
  3. Runs in your browser as JavaScript

Be among the first to build with Bopa.

We're opening Bopa to learners, teachers and creators in waves. Tell us who you are and we'll bring you in.

Built by

Mopane Technologies

Rooted in Botswana. Growing a better future.

Mopane Technologies is a Botswana-based technology company building public-good products, beginning with Bopa, and delivering AI, data, and engineering solutions for organisations.

Visit mopane.ai →
  • Public good Products that improve lives. Free to the people they serve, built patiently and proven with real people.
  • Commercial Solutions for organisations. AI, data, software, and engineering work for organisations in Botswana and beyond.