kantan(簡単) - simple
- JavaScript 35.7%
- Rust 27.5%
- Go 17.4%
- CSS 15.1%
- Makefile 3.5%
- Other 0.8%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| backend | ||
| core | ||
| frontend | ||
| README.md | ||
Kantan
Simple programming language for kids, with web interface.
The repo has 3 parts
frontend/- the actual Web UI.backend/- BE API that runs thekantancode.core/- actual core engine where thekantaninterpretor using rust lives. Seecore/README.mdfor more details.
Frontend
Its a React + Vite.
cd frontend
npm install
npm run dev
Backend
A simple go HTTP service that recieves the code via http layer and writes it a temp file and runs inside a ephemeral docker container safely. container has no network, only read-only permission across levels, dropped capabilities, memory/CPU/pid limits, output size and execution timeouts).
cd backend
make init
make build-local
run from backend/
docker build -t kantan-code-sandbox -f ./kantan-dockerfile ..