Por que
Self-initiated app for studying any subject on your own, from languages to design, history and 3D printing, each kept separate and at its own level, with spaced repetition, quizzes, texts, a notebook, mind maps and support materials, and an AI that prepares the material based on the learner’s goal.


- Project team
- Allan SanchesConcept, design and development
- Project scope
- Idea
- Design
- Code
- Context
- Personal project
- 2026
Sign-up is open and free, with a daily limit on AI use. The screens show a sample account, with fictional subjects, cards and texts.
Technologies used
- Next.js
- React
- TypeScript
- Tailwind
- daisyUI
- SQLite
- Drizzle ORM
- Turso
- Vercel AI Gateway
- React Flow
- Tiptap
- WebAuthn
- Zod
- Vercel
How can I keep my studies organized and always active in my mind?
The app was born as Nova Língua, a notebook for studying languages. People who learn on their own need the same ways of practicing in any subject, not just in languages: reviewing, testing what they already know, reading, taking notes and organizing their ideas.
The app became Por que, for studying any subject in a self-directed way. Each subject is kept separate, in a category: Languages, with 26 languages and the flag of each one, Design, History, Art history, Interior design, 3D printing or a category created by the learner. Each one has its own cards, texts, notes, maps and materials, a level, a goal, a why and a guide material.
The AI prepares the material at the learner’s level: it suggests cards, builds quizzes, writes texts with a glossary and questions, sketches mind maps and searches for materials online. For languages, the content comes in the language being studied; for other subjects, in Portuguese, guided by the goal and the guide material.
How the app was built
A name that is a question. The name is written as two words, the way it is in questions. The logo is "PQ?", the abbreviation of the question, on a yellow badge in Unbounded, with the question mark in pink. On the sign-in screen, the forms of the word (por que, por quê, porque, porquê and pq?) cover the background in the style’s colors, with "Porque sim" and "Porque não" as a reminder that this is no answer. The brand’s yellow is the accent color of the whole app, in buttons, links and progress, in any style.
Simple sign-in. Sign-up asks only for name, email and password; the photo comes later, through the profile. Those who sign in on a phone can use their fingerprint, with a passkey (WebAuthn), and sign-in also accepts the email or the username with the password.
Review at the right time. Spaced repetition follows the SM-2 algorithm: after flipping the card, the learner answers Wrong, Hard, Good or Easy, and each button shows when the card will come back. Cards and texts have a button to listen, with the browser’s voice.
Seven ways to study. Cards are written manually or chosen from the AI’s suggestions. The quiz uses the cards or a topic requested from the AI. In texts, each term opens an explanation and becomes a card with one click, and the comprehension questions explain why each option is right or wrong. The notebook keeps notes with images and freehand drawing. Mind maps are built in a visual editor, and the materials gather videos, songs, articles, books, podcasts, films and websites, with web search by the AI and a check of each link.
Music and code teach too. In languages, the Songs section finds the track on Spotify, plays it in the official player and brings the lyrics, which you study line by line with the same tools as the texts; a word or a passage goes straight to the notebook. In any subject you can turn on the R Playground: R runs in the browser itself (webR), with an editor, plots and packages, and nothing runs on the server.
Duda, the assistant. In the chat, Duda suggests what to do: create a subject or a language, put together a task list in the notebook or suggest materials. She checks each suggestion against the learner’s subjects, and nothing is saved until you click Apply.
Consistency without guilt. Points count what you do with the content: reviewing, creating, organizing and getting answers right. What the AI generates doesn’t count. With 15 minutes of study, the day counts as a study day, and the goal of days per week is set by the learner. When the goal is met, the days glow and the home screen celebrates with confetti, once a week. In challenges, a group follows the scoreboard and the check-ins, without seeing anyone’s cards.
The way each person wants it. The home screen is a dashboard: each block changes order, size and color. The menu collapses categories and stays pinned or floating, with Ctrl+B. Appearance holds the nine styles of my website, from Pop to Editorial, in light and dark, three text sizes and the accessibility modes: high contrast, alternative colors and reduce motion, which can be combined. Help brings together a text about the app, the version and the link to this case study.
Secure and with limits. The password is stored only as a hash, the session is signed and lasts 30 days, and changing the password ends the other sessions. Sign-in locks after ten attempts in fifteen minutes, tracked in the database. The quiz answer key stays on the server, which grades each answer. Each AI request follows a defined format and is checked before reaching the database, and the free account has a daily limit on generations and on storage. In the profile, you can change your password and delete your account.
The result is a study notebook for any subject, with the material at the learner’s level.
What was delivered
- Subjects in categories: Languages, Design, History, Art history, Interior design, 3D printing and custom categories
- List of 26 languages with flags, and an icon or image for the other subjects
- Level, goal, why and guide material for each subject, which steer the AI
- Spaced repetition with the SM-2 algorithm
- Cards created manually or suggested by the AI, with search and tags
- Multiple-choice quiz with the cards or on a topic
- Texts with a glossary and questions that explain each option
- Notebook with images and freehand drawing
- Mind maps in a visual editor, blank or with an AI sketch
- Support materials with filters by type and web search by the AI
- Points, weekly goal with celebration, check-ins and group challenges
- Home as a customizable dashboard: order, size and color of each block
- Menu with collapsible categories, pinned or floating (Ctrl+B)
- Nine styles in light and dark, three text sizes and accessibility modes
- Sign-up with name, email and password, and fingerprint sign-in
- Help with the text about the app, the version and the credits
- Songs in languages, with lyrics studied line by line
- R Playground in the browser, turned on per subject
- Duda, an assistant that suggests subjects, tasks and materials
- Change your password and delete your account from the profile
Project images















Have a project in mind?
Let’s start with a conversation.
Talk about a project