尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证Offline, private peptide reconstitution and draw calculator. Installable PWA for phones and tablets; no accounts, no tracking, no network requests, and all data stays on your device.
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗A private, offline peptide reconstitution and draw calculator for researchers. Install it from the browser to your phone or tablet's home screen; it then works with no connection. Everything you enter stays on your device.
Pick a peptide, the amount in your vial and the water you added, and PepCalc shows how far to draw the syringe, with a drawing of the barrel to check against. It runs on your device with no account, server or tracking.
PepCalc does arithmetic and shows sourced reference values. It does not recommend doses and is not medical advice. Several listed peptides are investigational or not approved for human use.
Semaglutide, Tirzepatide, Retatrutide, Cagrilintide, Tesamorelin, BPC-157, TB-500, GHK-Cu, KPV, GLOW, and KLOW. Adding more is a data change: see docs/adding-a-peptide.md.
Settings shows the steps for the browser you are using, with a screenshot.
| Device | Steps |
|---|---|
| Android, Chrome or Edge | Menu, Install and create shortcut (or Add to Home screen) |
| Android, Firefox | Menu, Add app to Home screen |
| iPhone or iPad, Safari | Share, Add to Home Screen |
| iPhone or iPad, Chrome | Share (in the address bar), Add to Home Screen |
On iPhone and iPad, Safari and the installed app keep separate data; use a backup to move it. Make regular backups (Settings): browsers can clear site data under storage pressure.
Requires Node 24 (see .nvmrc).
nvm use
make install
make dev # http://localhost:5173/app/
make check # fast gate
make check-all # full gate, including offline e2e tests
Project conventions for contributors and coding agents are in CLAUDE.md and
.claude/skills/.
This repository is PepCalc/app, so Pages serves it at
pepcalc.github.io/app. The website at the root of the same
origin is the separate PepCalc/pepcalc.github.io
repository.
main. .github/workflows/deploy.yml runs the gate, builds with the repository
name as the base path (/app/), and publishes.With a custom domain on the website repository, the app stays at /app/ on that domain; set
the repository variable PEPCALC_SITE_URL to the new root (for example https://pepcalc.app/)
so the canonical tags and share cards name it. A new domain is a new origin, so data saved at
pepcalc.github.io does not follow: users move it with a backup file.
The Android app is a Capacitor shell around the same web build, bundled into the APK so it works offline from first launch. It requests no network permission; CI fails if the merged manifest ever asks for one. Cloud backup is off, so data leaves the device only as a backup file the user exports.
make android # build dist-android/ and sync it into android/
cd android && ./gradlew assembleDebug # needs JDK 21 and the Android SDK
.github/workflows/android.yml builds a debug APK on every push and uploads it as a workflow
artifact. .github/workflows/release.yml builds a signed App Bundle (Google Play) and APK on a
v* tag and attaches both to a GitHub release. A release build is signed when PEPCALC_KEYSTORE, PEPCALC_KEYSTORE_PASSWORD,
PEPCALC_KEY_ALIAS and PEPCALC_KEY_PASSWORD are set; keep the keystore out of the
repository and backed up, because a lost key means the app can never be updated. The version
comes from package.json (versionCode is major * 10000 + minor * 100 + patch).
The app id io.github.pepcalc.app, and the WebView origin https://localhost that holds the
app's IndexedDB, must never change after release. Data in the browser-installed PWA does not
carry over to the Android app (and vice versa); move it with a backup file.
npm run icons:android regenerates the launcher icons from public/favicon.svg.
The iOS app is the same Capacitor shell (Swift Package Manager, no CocoaPods), built only in
GitHub Actions since there is no Mac. make ios builds dist-ios/ and syncs it into ios/;
.github/workflows/ios.yml builds it for the simulator on every push, and on a v* tag (or
run by hand) archives a signed build and uploads it to App Store Connect for TestFlight. Its
WebView origin, capacitor://localhost, must never change after release.
npm run icons:ios regenerates the app icon and launch image from public/favicon.svg.
The release checklist, signing, Google Play, F-Droid and App Store setup are in docs/releasing.md.