How fakearchie/nfatool works
nfa.pub Loader is a Windows desktop app for token-based Steam sign-in and managing nfa.pub CS2 accounts. Its main workflow is sign-in, retain accounts in history, and purchase or replace accounts through the nfa.pub API. Separate branches cover account status, loadouts, Workshop cleanup, settings, and updates. Edges reflect README statements and the supplied source index; unsampled implementation details are not assumed.
Main entry points: AppState.cs App state and navigation · LoginPage.xaml.cs Token sign-in · HistoryPage.xaml.cs History and imports · NfaReplaceFlow.cs Replacement flow
Components 24
App shell
- App state and navigation
NfaLoader/Services/AppState.cs - Localization
NfaLoader/Localization/Loc.cs
Accounts
- Token sign-in
NfaLoader/Pages/LoginPage.xaml.cs - Account history
NfaLoader/Services/AccountHistoryService.cs - History and imports
NfaLoader/Pages/HistoryPage.xaml.cs - Account records
NfaLoader/Models/SteamAccountHistoryItem.cs
Steam and CS2
- Steam token login
NfaLoader/Services/SteamLoginService.cs - Steam CM client
NfaLoader/Services/SteamCmClient.cs - Premier score
NfaLoader/Services/CsPremierScoreService.cs - Loadout editor
NfaLoader/Pages/LoadoutPage.xaml.cs - Loadout apply
NfaLoader/Services/CsLoadoutService.cs - Workshop cleanup
NfaLoader/Services/SteamWorkshopService.cs - CS2 settings push
NfaLoader/Services/Cs2CloudService.cs
nfa.pub commerce
- Replacement flow
NfaLoader/Pages/NfaReplaceFlow.cs - Replacement warranty
NfaLoader/Services/NfaWarranty.cs - nfa.pub API client
NfaLoader/Services/NfaPubClient.cs - Purchase and stock UI
NfaLoader/Pages/LoginPage.xaml.cs
Preferences and updates
- Settings
NfaLoader/Pages/SettingsPage.xaml.cs - Settings storage
NfaLoader/Services/SettingsService.cs - Update check
NfaLoader/Services/GitHubUpdateService.cs
Other components
- User
- Steam
- nfa.pub service
- GitHub releases
Connections 25
- User → Token sign-in: enters token
- Token sign-in → Steam token login: starts sign-in
NfaLoader/Pages/LoginPage.xaml.cs - Steam token login → Steam: authenticates with
- Token sign-in → Account history: records account
NfaLoader/Pages/LoginPage.xaml.cs - History and imports → Account history: loads and updates
NfaLoader/Pages/HistoryPage.xaml.cs - Account history → Account records: persists records
NfaLoader/Services/AccountHistoryService.cs - User → History and imports: manages accounts
- History and imports → Replacement flow: starts replacement
NfaLoader/Pages/HistoryPage.xaml.cs - Replacement flow → Replacement warranty: checks eligibility
NfaLoader/Pages/NfaReplaceFlow.cs - Replacement flow → nfa.pub API client: requests replacement
NfaLoader/Pages/NfaReplaceFlow.cs - nfa.pub API client → nfa.pub service: calls API
- User → Purchase and stock UI: buys account
- Purchase and stock UI → nfa.pub API client: checks stock and buys
NfaLoader/Pages/LoginPage.xaml.cs - User → Loadout editor: edits loadout
- Loadout editor → Loadout apply: applies preset
- Loadout apply → Steam CM client: uses Steam CM
NfaLoader/Services/CsLoadoutService.cs - User → Workshop cleanup: clears subscriptions
- User → Premier score: refreshes account status
- User → Settings: configures app
- Settings → Settings storage: loads and saves
NfaLoader/Pages/SettingsPage.xaml.cs - Settings → CS2 settings push: configures cloud push
NfaLoader/Pages/SettingsPage.xaml.cs - App state and navigation → Settings storage: loads preferences
NfaLoader/App.xaml.cs - App state and navigation → Localization: initializes language
NfaLoader/App.xaml.cs - App state and navigation → Update check: checks for updates
NfaLoader/MainWindow.xaml.cs - Update check → GitHub releases: checks releases
NfaLoader/Services/GitHubUpdateService.cs