LunaWrite is Team stealzamoon's entry to CMU TartanHacks 2025.
It is a language-learning platform that trains creative and critical thinking through collaborative storytelling. Users co-write stories with an LLM, taking turns sentence by sentence in their target language while receiving lightweight feedback and vocabulary support.
It is easy and tempting to outsource intelligence to GenAI. We are concerned that users may become reliant on the technology for creative and critical thinking, resulting in the degradation of their writing abilities.
Some choose to reject the technology due to its risks. We take a different approach. Rather than shun GenAI, we believe that it can be wielded as an educational tool to enhance, rather than deteriorate, the user's writing facility.
An AI-powered writing and language-learning platform that lets users choose their own literary adventure.
Instead of asking the model to do all the writing, LunaWrite makes the learner participate. The AI advances the story, but the user must actively produce language, incorporate vocabulary, and respond to feedback in context. That turns GenAI from a shortcut into a practice partner.
- Lets learners choose a learning language, native language, and proficiency level.
- Starts a story with an LLM and continues it collaboratively, one sentence at a time.
- Encourages active recall by giving learners target vocabulary to work into their writing.
- Checks user-written sentences for language issues before continuing the story.
- Lets users click words in the story or sidebar to get definitions and context-aware explanations.
- Tracks vocabulary familiarity over time and surfaces it in a vocabulary explorer.
- Stores stories and progress locally in the browser, making the app lightweight and easy to deploy.
LunaWrite is grounded in the idea that meaningful learning requires output, not just passive intake. Reading explanations alone is not enough; learners improve when they have to retrieve, apply, and revise knowledge in context. Collaborative storytelling creates that output loop while keeping the experience playful and motivating.
- React + Vite
- Tailwind CSS
- OpenRouter for low-cost LLM access
- Browser localStorage for local persistence
- GitHub Pages for static hosting
- Node.js 20+
pnpm- An OpenRouter API key
pnpm install
pnpm devThen open the local Vite URL, open settings inside the app, and provide:
- An OpenRouter API key
- A learning language
- A native language
- A proficiency level
pnpm devstarts the local development server.pnpm buildcreates a production build indist/.pnpm previewserves the production build locally.pnpm lintruns ESLint.pnpm testruns the Jest test command and passes cleanly when no tests are present.
This repo is configured to deploy to GitHub Pages via .github/workflows/deploy.yml.
On each push to main, GitHub Actions:
- Installs dependencies with
pnpm - Lints the app
- Builds the static site with Vite
- Publishes
dist/to GitHub Pages
The production build uses relative asset paths so it works correctly on GitHub Pages project URLs such as /lunawrite/.
- LunaWrite is a browser-first prototype with no backend.
- Stories, vocabulary progress, and settings are stored locally in the user's browser.
- The OpenRouter API key is also stored locally in the browser for this prototype, so it is best used with a personal key that has appropriate spending limits.
- Highly scalable.
- Lightweight and low cost: OpenRouter is inexpensive, and the app only sends short text requests.
- Grounded in research on learning theory: learners need to produce output, not just ingest content.
- Enhanced spaced repetition algorithm.
- Sharing of stories.
- User progress map.
- Freeman, Scott, et al. "Active learning increases student performance in science, engineering, and Mathematics." Proceedings of the National Academy of Sciences, vol. 111, no. 23, 12 May 2014, pp. 8410-8415, https://doi.org/10.1073/pnas.1319030111.
- Sullivan, Oliver. "Generative AI and Closing the Critical Literacy Skills Gap." TeachingTimes, 5 Sept. 2024, https://www.teachingtimes.com/generative-ai-and-closing-the-critical-literacy-skills-gap/.
- Wecks, Janik Ole, et al. "Generative AI Usage and Exam Performance." arXiv, 18 Nov. 2024, https://doi.org/10.48550/arXiv.2404.19699.