尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证TNTH-LIMS is a cloud-based Laboratory Information Management System that digitizes sample registration, testing workflows, lab operations, report generation, and document management, helping testing laboratories reduce manual work, improve traceability, and manage samples from receipt to final report.
翻译准备中
取自仓库 README
正在加载完整 README。 以下为已保存的摘录。
PharmaLIMS — Pharmaceutical Laboratory Information Management System
An enterprise-grade LIMS for GMP-compliant pharmaceutical testing laboratories:
sample lifecycle management, drug assay, dissolution, stability, impurity,
HPLC/GC and microbiology testing, batch release with CoA generation, QA
(deviations, CAPA, change control), controlled documents, audit trail, analytics
and an external client portal.
Quick start (local demo, no external database required)
The seed creates six demo accounts. On the login page, click a role button to
fill credentials, then sign in:查看完整 README ↗An enterprise-grade LIMS for GMP-compliant pharmaceutical testing laboratories: sample lifecycle management, drug assay, dissolution, stability, impurity, HPLC/GC and microbiology testing, batch release with CoA generation, QA (deviations, CAPA, change control), controlled documents, audit trail, analytics and an external client portal.
| Layer | Technology |
|---|---|
| Frontend | Next.js 16 (App Router), React 19, TypeScript, Tailwind CSS 4 |
| UI | Custom shadcn-style component library (components/ui), lucide-react icons |
| Charts | Recharts |
| Backend | Next.js server components + server actions (actions/) |
| Database | PostgreSQL (canonical) with Prisma ORM — SQLite for zero-setup local dev |
| Auth | JWT sessions (httpOnly cookies) + bcrypt password hashing + RBAC |
npm install
npm run db:local # generates a SQLite schema variant, creates prisma/dev.db
npm run db:seed # seeds roles, users, clients, samples, tests, QA records…
npm run dev # http://localhost:3000
The seed creates six demo accounts. On the login page, click a role button to fill credentials, then sign in:
| Role | Password | |
|---|---|---|
| Laboratory Administrator | [email protected] | Admin@123 |
| Lab Manager | [email protected] | Manager@123 |
| Quality Assurance Officer | [email protected] | Qa@123456 |
| Chemist / Analyst | [email protected] | Analyst@123 |
| Microbiology Analyst | [email protected] | Micro@123 |
| Client / Pharma Company | [email protected] | Client@123 |
DATABASE_URL in .env to your PostgreSQL instance.npx prisma generate && npx prisma db pushnpm run db:seed && npm run build && npm startprisma/schema.prisma is the canonical PostgreSQL schema; the schema is written
provider-agnostically (no scalar arrays / native types) so the same models work
on both engines.
prisma/schema.prisma Canonical relational model (25+ tables)
lib/roles.ts Role & permission matrix, status metadata
lib/nav.ts Role-aware navigation tree
lib/session.ts JWT session issue/verify + getCurrentUser()
lib/data.ts Dashboard aggregations (KPIs, charts)
lib/testing.ts Test/stability queries
lib/prisma.ts Prisma client singleton
lib/ids.ts Human-readable code generators (SPL-, TST-, RPT-…)
lib/audit.ts Audit-trail writer
actions/*.ts Server actions: auth, samples, tests, quality, portal
app/(auth)/login Login screen
app/(dashboard)/ Back-office shell: dashboard, samples, testing/*,
quality/*, reports, documents, instruments,
clients, batch-release, audit-trail, admin
app/(client)/client External client portal
components/ui Design system (button, card, badge, table, forms…)
components/charts Recharts visualisations
components/layout Sidebar / topbar / shell
RECEIVED → LOGGED → ASSIGNED → TESTING → REVIEW → APPROVED → RELEASED → ARCHIVED).AssayResult, DissolutionResult,
ImpurityResult, MicrobiologyResult) plus worksheet JSON and attachments.Deviation, Capa, ChangeControl and generic
Approval decisions.| Command | Purpose |
|---|---|
npm run db:local | Create/update the local SQLite dev database |
npm run db:seed | Seed the demo dataset |
npm run db:generate | Regenerate Prisma client (PostgreSQL) |
npm run db:push | Push schema to PostgreSQL |
npm run build | Production build |
SESSION_TTL_DAYS.lib/roles.ts.AUTH_SECRET in production.