How jesshdzz/sistema-bibliotecario works
Sistema Bibliotecario is a university library-loan prototype: students are intended to request loans, while librarians manage inventory and circulation. The README describes that workflow, but the sampled repository has no catalog or loan pages, handlers, or business operations; its demo data explicitly bypasses the database and sessions. The graph therefore distinguishes documented product stages from implemented demo/schema layers. Relationships are limited to visible imports and README statements; unsampled UI behavior is not inferred.
Main entry points: datos-demo.ts Demo records · dominio.ts Loan circulation · auth.ts Users and sessions · index.ts Drizzle client
Components 16
Web experience
- App shell
src/app/layout.tsx - Shared UI
src/components/pagina.tsx - Service links
src/components/footer.tsx - Status badges
src/components/insignia-estado.tsx
Library domain
- Catalog search
src/lib/datos-demo.ts - Titles and copies
src/db/schema/dominio.ts - Loan circulation
src/db/schema/dominio.ts - Loan parameters
src/db/schema/dominio.ts - Demo records
src/lib/datos-demo.ts - Fines and statistics
src/lib/datos-demo.ts
Identity and persistence
- Users and sessions
src/db/schema/auth.ts - Drizzle client
src/db/index.ts - PostgreSQL
Service operations
- Health endpoint
src/app/api/health/route.ts
Other components
- Student
- Librarian
Connections 17
- Student → Catalog search: requests discovery
README.md - Student → Loan circulation: requests loans
README.md - Librarian → Titles and copies: manages inventory
README.md - Librarian → Loan circulation: controls circulation
README.md - App shell → Shared UI: hosts interface
- Service links → Demo records: reads schedule
src/components/footer.tsx - Status badges → Demo records: uses status types
src/components/insignia-estado.tsx - Demo records → Catalog search: provides sample catalog
src/lib/datos-demo.ts - Demo records → Loan circulation: provides sample loans
src/lib/datos-demo.ts - Demo records → Fines and statistics: includes sample aggregates
src/lib/datos-demo.ts - Demo records → Titles and copies: imports domain types
src/lib/datos-demo.ts - Drizzle client → Users and sessions: loads schema
src/db/index.ts - Drizzle client → PostgreSQL: connects through pool
src/db/index.ts - Titles and copies → Users and sessions: references users
src/db/schema/dominio.ts - Loan circulation → Titles and copies: references copies
src/db/schema/dominio.ts - Loan circulation → Users and sessions: references borrowers
src/db/schema/dominio.ts - Loan parameters → Users and sessions: records editor
src/db/schema/dominio.ts