All projects

Lab operations · team project

ChemStock

A laboratory inventory system built around day-to-day chemical, equipment, audit and reporting workflows.

Next.js 15TypeScriptFirebase AuthFirestorePubChem APIGenkitPWARechartsTailwind

Data

Cloud Firestore

Auth

Firebase Auth

External data

PubChem API

Access

Admin + regular user

System view

Lab state in one operational loop

Application structure aligned to the repository's auth, dashboard, Firestore and external-data integrations.

Lab member

use + checkout

Admin

edit + reports

Next.js

protected routes

Firebase Auth

identity + roles

Firestore

inventory + audit

PubChem

chemical reference

01 · Context

The problem

Manual registers and spreadsheet-based inventory make it difficult to see stock, track usage, preserve an audit trail and manage equipment consistently. ChemStock turns those operations into a shared web workflow.

02 · Product

How it works

ChemStock uses Firebase Authentication and Firestore with role-aware access, inventory and equipment modules, activity logs, reporting, backup/restore and PubChem search. The repository also contains real product screenshots and documents the distinction between admin and regular-user capabilities.

Chemical inventory supports search, filtering, sorting, usage and stock-state visibility.

Equipment includes checkout, return and damaged-item workflows.

Activity logs provide a user-wise audit trail of inventory actions.

Admin workflows cover reports, CSV export, database backup and restore.

PubChem search brings chemical structures, properties and safety data into the product.

The app is responsive and configured as a PWA.

03 · Architecture

The system, broken down

01

Authentication

Firebase Authentication supports email/password and Google Sign-In, with allow-list and admin-email configuration documented in the repository.

02

Application

Next.js App Router contains protected auth routes, dashboard routes, chemical/equipment views and admin modules.

03

Data

Firestore is the primary persistence layer for inventory, equipment, activity and related application records.

04

External data

PubChem is integrated for chemical information lookup; the repository also contains AI/Genkit scaffolding.

05

Operations

Reports, CSV exports and JSON backup/restore give admins operational tools beyond CRUD screens.

04 · Flow

A request through the system

01

Sign in

A user authenticates through Firebase and enters the role-appropriate dashboard.

02

Find

Chemicals and equipment can be searched, filtered and sorted from the inventory views.

03

Use

Users can record chemical usage or check out/return equipment within the documented permissions.

04

Audit

Activity data and reports provide visibility into operational changes.

05

Administer

Admins can edit inventory, export data and manage backup/restore operations.

05 · Engineering

Decisions worth noticing

Role-based editing

Regular users can use inventory without receiving unrestricted edit access; admins can explicitly enter edit mode.

Firestore for shared state

A real-time cloud database fits a lab workflow where inventory state is shared across users.

Operational depth

Reports, audit logs, backup/restore and reorder workflows make the project more than a simple inventory CRUD app.

Real chemical reference

Integrating PubChem keeps chemistry metadata inside the system instead of forcing users to leave the workflow.

06 · Proof

From the actual project

ChemStock laboratory inventory dashboard showing chemical stock levels, recent activity, and equipment status overview
Dashboard screenshot from the uploaded repository.
ChemStock chemical inventory list with search, filtering, sorting, and stock-state indicators for laboratory chemicals
Chemical inventory view from the repository.
ChemStock equipment management view showing checkout, return, and damaged-item workflows for laboratory equipment
Equipment management view from the repository.
ChemStock laboratory reports and analytics showing chemical usage trends, stock levels, and CSV export options
Reports and analytics view from the repository.
ChemStock activity log showing user-wise audit trail of inventory actions, usage records, and equipment checkouts
Activity and audit trail view from the repository.
ChemStock admin panel with database backup, restore, user management, and operational controls
Admin panel and operational controls from the repository.

Scope note

The uploaded README states that ChemStock is actively used in a college chemistry laboratory; this case study preserves that claim without adding invented adoption or performance numbers.