How mizyazya/assettracking works
Asset Tracking v2 is an in-progress internal inventory and accountability tool. Authenticated staff manage assets and components, assign them to people and locations, record history and tasks, then search or export operational data; administrators also manage users and sessions. The graph includes documented and indexed capabilities, but several route implementations were not sampled, so their detailed calls are not asserted. The README describes a local Next.js/SQLite application; no external service integration is evidenced.
Main entry points: asset-actions.ts Asset operations · people-actions.ts People and locations · index.ts SQLite database · session.ts Session and access
Components 28
Inventory
- Asset inventory
src/app/(app)/page.tsx - Asset operations
src/lib/asset-actions.ts - Add asset UI
src/components/AddAssetModal.tsx - Component actions
src/components/ComponentActions.tsx - Component ledger
src/lib/ledger.ts
People and places
- People records
src/app/(app)/people/page.tsx - Person details
src/app/(app)/people/[id]/page.tsx - People and locations
src/lib/people-actions.ts - Location records
src/app/(app)/locations/page.tsx - Location details
src/app/(app)/locations/[id]/page.tsx
Tasks and reporting
- Task management
src/app/(app)/tasks/page.tsx - Task export
src/app/(app)/tasks/export/route.ts - People export
src/app/(app)/people/export/route.ts - Global search
src/app/(app)/search/page.tsx - Dashboard
src/app/(app)/dashboard/page.tsx - CSV formatting
src/lib/csv.ts - Dashboard queries
src/lib/dashboard.ts - Date formatting
src/lib/time.ts
Identity and access
- Login
src/app/login/login-form.tsx - Authentication actions
src/lib/auth-actions.ts - Session and access
src/lib/session.ts - User administration
src/app/(app)/users/page.tsx - User and profile actions
src/lib/user-actions.ts - Profile and sessions
src/app/(app)/profile/page.tsx - Flash messages
src/lib/flash.ts
Persistence
- SQLite database
src/db/index.ts - Domain schema
src/db/schema.ts
Other components
- Staff
Connections 33
- Staff → Login: opens
- Login → Authentication actions: submits credentials
src/app/login/login-form.tsx - Authentication actions → Session and access: creates session
src/lib/auth-actions.ts - Asset inventory → Session and access: requires user
src/app/(app)/page.tsx - Asset inventory → Add asset UI: renders
src/app/(app)/page.tsx - Add asset UI → Asset operations: uses actions
src/components/AddAssetModal.tsx - Asset operations → Session and access: checks access
src/lib/asset-actions.ts - Asset operations → Component ledger: records transfers
src/lib/asset-actions.ts - Asset operations → Flash messages: sets feedback
src/lib/asset-actions.ts - Asset operations → SQLite database: updates inventory
src/lib/asset-actions.ts - Component actions → Asset operations: uses actions
src/components/ComponentActions.tsx - Asset inventory → Component ledger: reads balances
src/app/(app)/page.tsx - People records → People and locations: uses actions
src/app/(app)/people/page.tsx - Person details → People and locations: uses actions
src/app/(app)/people/[id]/page.tsx - Location records → People and locations: uses actions
src/app/(app)/locations/page.tsx - Location details → People and locations: uses actions
src/app/(app)/locations/[id]/page.tsx - People and locations → Component ledger: checks balances
src/lib/people-actions.ts - People and locations → SQLite database: changes records
src/lib/people-actions.ts - Task management → Asset operations: uses task actions
src/app/(app)/tasks/page.tsx - Task export → Session and access: requires user
src/app/(app)/tasks/export/route.ts - Task export → CSV formatting: formats export
src/app/(app)/tasks/export/route.ts - Task export → SQLite database: reads task data
src/app/(app)/tasks/export/route.ts - People export → CSV formatting: formats export
src/app/(app)/people/export/route.ts - Global search → Dashboard queries: uses queries
src/app/(app)/search/page.tsx - Dashboard → Dashboard queries: loads metrics
src/app/(app)/dashboard/page.tsx - Dashboard → Date formatting: formats dates
src/app/(app)/dashboard/page.tsx - Dashboard queries → Component ledger: reads holdings
src/lib/dashboard.ts - Dashboard queries → SQLite database: queries metrics
src/lib/dashboard.ts - User administration → User and profile actions: uses actions
src/app/(app)/users/page.tsx - Profile and sessions → User and profile actions: uses actions
src/app/(app)/profile/page.tsx - User and profile actions → Session and access: checks permissions
src/lib/user-actions.ts - User and profile actions → SQLite database: updates accounts
src/lib/user-actions.ts - SQLite database → Domain schema: configures tables
src/db/index.ts