A web application for searching MAME ROM names in local SQLite databases using SQL.js as a web worker. Designed for retro gaming enthusiasts to quickly find MAME ROM names in their collections.
https://raohmaru.github.io/mame-rom-name-finder/
MAME ROM Name Finder is a frontend-only web application that allows users to search for ROM files across multiple SQLite database files containing MAME arcade ROM information. The application provides a simple interface to input search terms and select which ROM set database to search in.
Click here to expand the project structure.
/
├── frontend/ # React frontend application
│ ├── src/ # Source code
│ │ ├── components/ # React components (UI + features)
│ │ ├── hooks/ # Custom React hooks
│ │ ├── services/ # Business logic (game search service)
│ │ ├── stores/ # Zustand state management
│ │ ├── types/ # TypeScript type definitions
│ │ ├── utils/ # Utility functions
│ │ └── workers/ # Web workers (SQLite operations)
│ ├── public/ # Static assets
│ │ ├── db/ # SQLite database files (ROM sets)
│ │ ├── img/ # Images
│ │ └── wasm/ # WebAssembly files (sql-wasm.js)
│ └── package.json # Frontend dependencies
├── db/ # Database management scripts
│ ├── init.ts # Database initialization
│ ├── seed.ts # Database seeding
│ ├── validate.ts # Data validation
│ ├── shared.ts # Shared types/constants
│ ├── romset-converter/ # ROM set CSV to SQLite converter
│ └── romsets/ # Source CSV files for ROM sets
├── docs/ # Documentation
│ ├── adr/ # Architecture Decision Records
│ ├── PLAN.md # Implementation plan
│ ├── README.md # Documentation overview
│ └── GLOSSARY.md # Project terminology
└── CHANGELOG.md # Project changelog
- Node.js (v24 or later)
- npm or yarn package manager
-
Clone the repository
git clone <repository-url> cd rom-name-finder
-
Install dependencies
npm install cd frontend npm install -
Build the database
npm run db
-
Run the development server
cd frontend npm run dev
The application will be available at http://localhost:5173
npm run db
cd frontend
npm run buildThe production build will be in the frontend/dist directory.
cd frontend # Start development server npm run dev # Run all tests npm run test # Run tests with coverage npm run test:coverage # Lint files npm run lint # Build for production npm run build # Preview production build locally npm run preview
- Follow TypeScript strict mode
- Use SQL.js for all database operations (no raw SQL)
- Implement proper error handling at all layers
- Write tests for all business logic
- Ensure WCAG 2.1 AA accessibility compliance
- Use Zustand for state management
- Validate all inputs with Zod
- Use semantic HTML and ARIA attributes
- Implement proper loading and error states
# Run all tests and watch npm run test # Run tests with coverage report npm run test:coverage
- Unit Tests: Test individual functions and components in isolation
- Integration Tests: Test how components and services work together
- Accessibility Tests: Test compliance with WCAG 2.1 AA standards
All tests are located alongside the source files in *.test.tsx or *.test.ts files.
React 18, TypeScript, Vite, SQL.js, Zustand, React Hook Form, CSS Modules, Vitest, React Testing Library.
Contributions are welcome!
If you want to contribute please try to follow this guidelines:
- Fork the repository
- Create a feature branch:
git checkout -b feature/your-feature - Make your changes
- Run tests:
npm run test - Commit your changes:
git commit -m "feat: add your feature" - Create a pull request
MIT License.
See CHANGELOG.md for version history and release notes.