How zs1083339604/facewinunlock-tauri works
FaceWinUnlock-Tauri is a Windows face-recognition sign-in enhancement, combining a Vue/Tauri desktop manager, local face/account configuration, OpenCV-backed recognition support, and a Windows Credential Provider. The user workflow is initialize Windows integration, select options, enroll a face and associate credentials, then test at the lock screen; the UI also manages logs and login security. The README documents liveness checks, multiple account types, and unlock scenarios. Core Rust functionality is explicitly absent from this source snapshot, so links across that boundary are omitted or marked unverified.
Main entry points: index.js Screen routing · App.vue Vue application · faces.js Face records · options.js Option records
Components 25
Desktop manager
- Vue application
UI/src/App.vue - Screen routing
UI/src/router/index.js
Enrollment and settings
- System initialization
UI/src/views/Init.vue - Dashboard
UI/src/views/Dashboard.vue - Face enrollment
UI/src/views/Faces/Add.vue - Account credentials
UI/src/components/AccountAuthForm.vue - Face management
UI/src/views/Faces/List.vue - Preferences
UI/src/views/Options.vue - App login
UI/src/views/Login.vue - Face records
UI/src/stores/faces.js - Option records
UI/src/stores/options.js - Local SQLite
UI/src/utils/sqlite.js - Local file access
UI/src/hook/useFile.js - Unlock logs
UI/src/views/Logs.vue - Log queries
UI/src/hook/useUnlockLog.js
Recognition runtime
- Tauri commands
UI/src-tauri/src/utils/api.rs - Backend setup
UI/src-tauri/src/lib.rs - Face recognition
- Unlock service
Unlock/src/main.rs
Windows sign-in
- Credential Provider DLL
Server/src/lib.rs - Credential provider
Server/src/CSampleProvider.rs - Pipe listener
Server/src/CPipeListener.rs - Credential object
Server/src/CSampleCredential.rs - Windows sign-in
Other components
- Administrator
Connections 33
- Administrator → Vue application: uses
README.md - Vue application → Screen routing: routes through
UI/src/App.vue - Screen routing → System initialization: routes to
UI/src/router/index.js - Screen routing → Dashboard: routes to
UI/src/router/index.js - Screen routing → Face enrollment: routes to
UI/src/router/index.js - Screen routing → Face management: routes to
UI/src/router/index.js - Screen routing → Preferences: routes to
UI/src/router/index.js - Screen routing → App login: routes to
UI/src/router/index.js - Vue application → Local SQLite: connects
UI/src/App.vue - Vue application → Face records: initializes
UI/src/App.vue - Vue application → Option records: initializes
UI/src/App.vue - System initialization → Option records: configures
UI/src/views/Init.vue - System initialization → Account credentials: collects credentials
UI/src/views/Init.vue - Face enrollment → Account credentials: collects credentials
UI/src/views/Faces/Add.vue - Face enrollment → Face records: saves face
UI/src/views/Faces/Add.vue - Face management → Face records: manages records
UI/src/views/Faces/List.vue - Preferences → Option records: saves settings
UI/src/views/Options.vue - Dashboard → Face records: reads faces
UI/src/views/Dashboard.vue - Dashboard → Option records: reads settings
UI/src/views/Dashboard.vue - Face records → Local SQLite: reads and writes
UI/src/stores/faces.js - Option records → Local SQLite: reads and writes
UI/src/stores/options.js - Face enrollment → Local file access: stores face images
- Unlock logs → Log queries: queries
UI/src/views/Logs.vue - Log queries → Local SQLite: queries logs
UI/src/hook/useUnlockLog.js - Backend setup → Tauri commands: registers commands
UI/src-tauri/src/lib.rs - Tauri commands → Face recognition: loads models
UI/src-tauri/src/utils/api.rs - Credential Provider DLL → Credential provider: creates provider
Server/src/lib.rs - Credential provider → Pipe listener: starts listener
Server/src/CSampleProvider.rs - Credential provider → Credential object: uses credential
Server/src/CSampleProvider.rs - Windows sign-in → Credential Provider DLL: loads provider
README.md - Credential provider → Unlock service: communicates with
- Tauri commands → Unlock service: controls
- Face recognition → Windows sign-in: supports recognition