How etalab/piaf works
Piaf is an archived French-language question-answering annotation platform. Contributors sign up and validate email, complete onboarding, then annotate campaign documents; administrators certify users, import SQuAD-style text, manage campaigns, and export annotations. The graph separates identity, annotation APIs and data, the Vue contributor experience, and campaign operations. Backend and frontend source excerpts are partial, so links that depend on unsampled network wiring are omitted rather than inferred.
Main entry points: router.js Contributor routes · api/views.py Annotation API · authentification/views.py Signup and login · admin.py Certification admin
Components 19
Identity and certification
- Signup and login
src/authentification/views.py - User accounts
src/account/models.py - Certification admin
src/account/admin.py
Annotation domain and API
- Annotation API
src/api/views.py - Projects and annotations
src/api/models.py - API serializers
src/api/serializers.py - API permissions
src/api/permissions.py - Campaign and scoring data
src/piaf/models.py
Contributor experience
- Vue application
src/piaf/front/src/main.js - Contributor routes
src/piaf/front/src/router.js - Client state
src/piaf/front/src/store.js - Onboarding lessons
src/piaf/front/src/views/introduction/Examples.vue - Lesson content
src/piaf/front/src/components/introduction/Consignes1.vue - Annotation screens
src/piaf/front/src/views/annotation/Annotation.vue - Completion feedback
src/piaf/front/src/views/annotation/Bravo.vue
Campaign administration
- Import and export
src/api/views.py - User administration
src/account/admin.py
Other components
- Contributor
- Campaign admin
Connections 20
- Contributor → Signup and login: signs up
README.md - Signup and login → User accounts: saves account
src/authentification/views.py - Signup and login → Contributor: emails validation
src/authentification/views.py - Campaign admin → Certification admin: certifies users
README.md - Certification admin → User accounts: updates certification
src/account/admin.py - Contributor → Vue application: uses platform
README.md - Vue application → Contributor routes: mounts router
src/piaf/front/src/main.js - Contributor routes → Client state: loads user details
src/piaf/front/src/router.js - Contributor routes → Onboarding lessons: routes to lessons
src/piaf/front/src/router.js - Onboarding lessons → Lesson content: renders lessons
src/piaf/front/src/views/introduction/Examples.vue - Contributor routes → Annotation screens: routes to annotation
src/piaf/front/src/router.js - Contributor routes → Completion feedback: routes to completion
src/piaf/front/src/router.js - Campaign admin → Import and export: imports texts
README.md - Campaign admin → Import and export: downloads results
README.md - Annotation API → Projects and annotations: queries models
src/api/views.py - Annotation API → API serializers: uses serializers
src/api/views.py - Annotation API → API permissions: checks access
src/api/views.py - Annotation API → Import and export: serves workflows
src/api/views.py - Campaign admin → User administration: manages accounts
README.md - User administration → Campaign and scoring data: lists user scores
src/account/admin.py