306 karma · joined July 10, 2011
The why : Cambridge AS students write pseudocode for exams — a structured, precise dialect defined by the syllabus. The problem? There's nowhere to run it. Students write code on paper, guess whether it's correct, and find out weeks later when results come back. That feedback loop is challenging for learning. This loop is closed to zero. Also, the compiler that runs entirely on the browser with no requirement for a backend or server. Repository : https://github.com/nsriram/pseudo-code-ide/
The how : The app presents an exam-style question, gives students a plain editor (no autocomplete — that's intentional, exams are unaided), and compiles their pseudocode the moment they click Compile. If it's clean, it runs against the question's test cases and shows pass/fail instantly. 50 questions. Three difficulty levels. Works on any device.
SCA & Code Quality 90 end-to-end Playwright tests (15 full student journey scenarios). The e2e suite runs against both docker on pipeline and on the deployed app at render.com 515 unit tests, ≥90% branch coverage enforced in CI, Quality Report Linting with '6' ESLint plugins, pre-push hooks Auto deployed on Render Pipeline : https://github.com/nsriram/pseudo-code-ide/actions
Compiler Writing a tiny pseudocode compiler from scratch involved a lot of learning. The pipeline has five phases, all written in TypeScript and fine-tuned for students with corners cut. "Lexer → Parser → Validator → Interpreter → Evaluator" more here : https://github.com/nsriram/pseudo-code-ide/blob/main/COMPILE...
Features : - 23 real past papers : Feb/Mar sessions from 2021 to 2025, covering every question type students will encounter.
- Full virtual bench : choose glassware, add reagents, heat, stir, filter, and weigh, with realistic colour changes and gas observations.
- Live reaction feedback : the lab responds to what you do: indicators change colour at the endpoint, precipitates form, gases are identified.
- Measurement precision hints : get nudged when a burette reading isn't to 0.05 cm³ or a balance reading isn't to 0.01 g.
- Per-question answer boxes : type written answers alongside each question part, mirroring the Cambridge answer booklet layout. Add results tables and scatter graphs directly within each answer box.
- Free Lab mode : experiment without a set paper; great for exploring reactions and building intuition.
- Automated marking : a built-in rubric engine scores every section against the Cambridge mark scheme and gives criterion-by-criterion feedback.
- PDF report export : download a formatted report of your session including observations, answers, and scores.
- Multilingual UI : switch between English, Tamil, Hindi, Spanish, and Chinese.
- Works offline : your session is saved automatically; nothing is lost on refresh.
--- The app is still in alpha and some outputs may not be accurate.
But, sharing it anyway because something like this could genuinely help students across the world. Education for all. Contributors are welcome to add reactions, papers, and features to make it closer to a real lab.
sls slstats --disable
Serverless: Stats successfully disabled- Evernote for tasking my daily activities - Firefox for my bookmarks on internet - Google drive for finances