untitled-7020
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data β all from the browser, and deployed in milliseconds.
index.ts
https://priyanshu2307--a14588983d7311f0a68176b3cceeab13.web.val.run
A comprehensive library management system with user management, book inventory, search capabilities, and fine management.
- Register new users with roles (Admin, Librarian, Member)
- Profile updates and password reset
- View borrowing history
- Auto-verification via institutional email
- Add new books with metadata (ISBN, author, edition, publisher, etc.)
- Remove outdated/damaged books
- Update stock levels
- Categorize by genre, subject, or level
- Barcode/QR scanning for fast entry
- Integration with ISBN databases for autofill
- Search by title, author, ISBN, due dates
- Return books and update availability
- View book details and availability status
- Advanced filtering options
- Issue books to members with due dates
- Return books and update availability
- Form handling for physical/digital books
- Notify users before due dates
- Auto-reminders
- Auto-calculate fines for late returns
- Option to pay fines online
- Fine history for each user
- Role-based access control
- Audit logs for all transactions
- Secure login with optional OTP
- Backend: Hono.js with TypeScript
- Frontend: React with TypeScript
- Database: SQLite
- Styling: TailwindCSS
βββ backend/
β βββ database/
β β βββ migrations.ts
β β βββ queries.ts
β βββ routes/
β β βββ auth.ts
β β βββ books.ts
β β βββ users.ts
β β βββ transactions.ts
β βββ index.ts
βββ frontend/
β βββ components/
β β βββ App.tsx
β β βββ Dashboard.tsx
β β βββ BookManagement.tsx
β β βββ UserManagement.tsx
β β βββ SearchCatalog.tsx
β βββ index.html
β βββ index.tsx
βββ shared/
βββ types.ts
- The system will automatically create the database tables on first run
- Default admin user will be created (admin@library.com / admin123)
- Access the system via the HTTP endpoint