Web app for molecule analysis from SMILES strings.
It currently supports:
- ADMET profiling (physicochemical descriptors + rule-based filters)
- Similarity search against ChEMBL
- Protein target lookup through ChEMBL activity data
- 3D structure visualization with 3Dmol.js
- Legacy mock prediction endpoint
┌──────────────────────────┐ ┌─────────────────────────────────────┐
│ Next.js Frontend │ │ FastAPI Backend │
│ │ │ │
│ ADMET / Similarity / │ POST │ /admet │
│ Targets UI ├──────►│ /similarity │
│ │ │ /targets │
│ MoleculeViewer (3Dmol) │ POST │ /molblock │
│ ├──────►│ │
│ Legacy prediction UI │ POST │ /predict │
└──────────────────────────┘ └─────────────────────────────────────┘
- Next.js
- React + TypeScript
- 3Dmol.js
- ESLint
- FastAPI
- Uvicorn
- Pydantic
- RDKit
- httpx (ChEMBL API calls)
npm installpython3 -m venv .venv
.venv/bin/python -m pip install -r backend/requirements.txtCreate or update .env.local:
NEXT_PUBLIC_API_BASE_URL=http://127.0.0.1:8000Run backend and frontend in separate terminals.
.venv/bin/uvicorn app.main:app --reload --app-dir backend --host 127.0.0.1 --port 8000npm run devOpen:
- Frontend: http://localhost:3000 (or the port shown in terminal)
- Backend health: http://127.0.0.1:8000/health
npm run buildThis validates TypeScript and produces a production build.
Note: this project is configured with output: export, so use npm run dev for local development/testing.
Most common causes:
- Backend is not running
NEXT_PUBLIC_API_BASE_URLpoints to the wrong port- Frontend opened on a different local port than expected
Checklist:
- Confirm backend is up at
http://127.0.0.1:8000/health - Confirm
.env.localmatches backend port - Restart frontend after changing
.env.local - Ensure only one
next devinstance is running
Port 8000 is occupied. Either:
- stop old process and restart, or
- run backend on a different port and update
.env.localaccordingly