Skip to content

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.

Por que: app home page, desktop version
Por que: app, mobile version
Project team
Allan SanchesConcept, design and development
Project scope
  • Idea
  • Design
  • Code
Context
Personal project
2026
Open app (opens in a new tab)

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

Sign-in screen: the yellow PQ? badge and the phrase Learn on your own on a card with the email and password fields, the Sign in and Create account buttons and the Sign in with fingerprint option; in the background, the words Por que, por quê, Porquê, Porque and pq? in various colors, with the phrases Porque sim não é resposta and Porque não não é resposta
The sign-in screen: the forms of the word in the background and the logo on the card.
The home screen in Customize dashboard mode: each block with arrows to move it, width and height buttons and the color dots; the To review today and Your week blocks and a card for each subject
The home dashboard: order, size and color of each block. Sample account.
The home screen with the weekly goal met: the message Congratulations! You met this week’s goal, the marked days glowing in yellow and colorful confetti falling over the screen
Weekly goal met: the days glow and the home screen celebrates.
Add subject: the form with the category, the subject name, the icon or image and the level
A new subject: a language from the list or any topic, in a category.
Overview of the Typography subject, in the Design category: the study tabs, the About this subject card with the category and the name, and the shortcuts to spaced repetition, cards, quiz, texts, notebook and mind maps
A subject outside languages, with the same ways to study. Sample account.
Spaced repetition in Typography: the flipped card with x-height, the definition and an example, and the Wrong, Hard, Good and Easy buttons, each with the time until the card comes back
Spaced repetition: each answer shows when the card comes back. Sample card.
The text Why some fonts are tiring, intermediate level, with the listen button, the Reading status selected and, beside it, the glossary with composition and measure, each term with the button to turn it into a card
A text with a glossary: each term becomes a card with one click. Sample text.
Mind map Bauhaus: ideas, locations and legacy, with the floating menu: Bauhaus at the top, linked to Ideas, Locations and Legacy, each linked to its own ideas, in one color per branch
The mind map editor, with the floating menu. Sample map.
Materials for Slicing and supports, in 3D printing: the New material form beside the list, with the filters by type and each material with its tag and note
Support materials, filtered by type. Sample account.
Appearance, Sidebar menu section: the Pinned button, with the Ctrl+B shortcut, and the order of subjects in each category, with a drag handle and arrows to move up and down
The sidebar menu: pinned or floating, and the order of subjects.
The About Por que page, opened from Help: the What it’s for and How to study sections
Help: a text about the app, the version and the credits.
Typography of each style and the PQ? logo in Unbounded: Pop and Aurora in Space Grotesk; Brutality in Archivo and Space Grotesk; Classic in Fraunces and Inter; Earthy in Cormorant Garamond and Inter; Laboratory in Barlow Condensed and Inter; Glass in Bricolage Grotesque and Plus Jakarta Sans; Neon in Space Mono and Fira Code; Editorial in Inter Tight and Inter
Typography of Por que: the logo, the same in every style, and each style’s heading and body fonts.
The Typography subject in high contrast and larger text modes: black background, white outlines on the cards, underlined links and larger letters
High contrast and larger text, together: strong outlines, underlined links and larger letters.
The Typography subject in alternative colors mode: the tones swapped for another palette and the links underlined
Alternative colors: another palette for the tones and underlined links.
The Your subjects home screen in the nine styles, as a mosaic: Pop, Aurora, Brutality, Classic, Earthy, Laboratory, Glass, Neon and Editorial, all with the brand’s yellow as the accent
The same screen in the nine styles, the same ones as on this website, each in its default mode.

Have a project in mind?

Let’s start with a conversation.

Talk about a project