Affective Polarization Test
Check your level of polarization through an interactive questionnaire.
Castas is an affective polarization questionnaire available as a web application and a native Android app.
Both apps share the questionnaire's product requirements and the project documentation, while each keeps its own source, dependencies, and build configuration.
| Project | Location | Guide | Stack |
|---|---|---|---|
| Web | web/ |
web/README.md |
React, TypeScript, Vite |
| Android | android/ |
android/README.md |
Kotlin, Jetpack Compose, Gradle |
Each app can be built and developed independently. Install web dependencies from web/ with npm ci; open android/ in Android Studio or use its Gradle wrapper. See the project-specific guides for prerequisites and commands.
docs/contains product and process documentation, design artifacts, and Android verification records.openspec/is the canonical OpenSpec project for shared questionnaire behavior and platform-specific requirements..agents/skills/contains the OpenSpec workflows and focused development skills used across the repository.LICENSEis the repository license for both applications.
castas/
βββ .agents/skills/ # Shared agent skills
βββ .github/workflows/ # Web deployment and Android CI
βββ android/ # Android app, Gradle wrapper, and Android-specific guide
βββ docs/ # Shared documentation and product artifacts
βββ openspec/ # Canonical shared and platform-specific specifications
βββ web/ # Web app, npm lockfile, and web-specific guide
βββ LICENSE
βββ README.md
The questionnaire has 40 statements across five dimensions and is available in Brazilian Portuguese, English, and Spanish. The apps calculate scores locally and provide a result that users may choose to share. Platform details and storage behavior are documented in each app's guide.
For the web app's features, scoring details, and deployment, see the web guide. For Android installation and build instructions, see the Android guide. The developer note is in Portuguese.
The root OpenSpec project is the source of product requirements for both apps. For a new or changed user-facing feature, its change should define acceptance scenarios for web and Android and cover both implementations. If a change is intentionally limited to one app, or the apps should behave differently, record that scope or difference explicitly. Keep shared questions, scoring, result formatting, and translations consistent, and verify each app affected by the change.
- No personal data is collected
- No cookies are used for tracking
- Test results are stored only in your browser's localStorage
- No server-side storage of individual responses
- Users can clear all data by clearing browser storage
This project is licensed under the GPL v3.0 License.
See LICENSE for more details.
Copyleft Β© 2026 Raul Bras π§π· Published under the GPL v3.0 license.
Made in Brazil, in the Land of Oz (SP) , with π π and AI π€.
The repository-root PentaPRO structure contains five pillar directories and supporting assets. Its status record identifies the existing accepted documents and migration work. OpenSpec changes remain under openspec.