| title | ๐ OBJECTIVE: MAXIMUM CURE ACCELERATION ๐ |
|---|---|
| description | We are a borg-like entity devoted to minimizing suffering by any and all means necessary. |
dFDA (Decentralized Framework for Drug Assessment) is open-source software for ranking treatments by real-world outcomes and publishing an Outcome Label for each one. It is designed so patient records stay with patients and clinics and only aggregate results are shared; that sharing isn't built yet (see What works today below). It is an independent open-source project, not affiliated with, endorsed by, or acting on behalf of the U.S. Food and Drug Administration.
flowchart LR
SAFE["Digital Twin Safe<br/>(patient's own data)"] -- "OAuth: share with my doctor" --> NODE["Clinic Node<br/>(runs at the clinic)"]
NODE -- "Summary File<br/>(aggregates only)" --> AGG["Global Aggregator"]
AGG --> SITE["dfda.earth<br/>Treatment Rankings + Outcome Labels"]
What works today
| Piece | Status | Where |
|---|---|---|
| Web app | Prototype: patient condition and treatment tracking, 0โ10 treatment ratings, outcome-label schema. Runs as dfda.earth or as a clinic's Clinic Node. No federation yet. | apps/web |
| N-of-1 causal analysis engine | Working TypeScript library | optimitron/packages/optimizer |
| Patient ratings | Live for 162 conditions and ~3,900 treatments, reported by patients | crowdsourcingcures.org/conditions |
| Automated N-of-1 studies | ~15,800 legacy observational analyses, not peer reviewed | studies.crowdsourcingcures.org |
| Summary File spec, Codebook, Global Aggregator | Designed, not built yet | โ |
See Apps and features for the current application, planned packages, and features to extract from related repositories. The implementation sequence and data rules are in docs/MIGRATION.md, the authoritative implementation roadmap. The broader vision below is background, not a second backlog or a claim that every feature exists.
Billions of people are suffering needlessly because the current system of clinical research, diagnosis, and treatment sucks because:
- โณ Counterproductive Regulatory Barriers to clinical research block life-saving treatments by 7-12 years
- ๐ซ 97% of patients are excluded from clinical trials
- ๐ฐ Drug development costs of $2.6B are passed on to patients
- โฑ๏ธ Terminal patients wait 4+ years for breakthrough therapy approvals
- ๐ The system ignores real-world evidence about effective treatments
The Cure Acceleration Act creates:
- โ Universal Trial Access - Every person's right to try safe treatments
- ๐ค dFDA (Decentralized Framework for Drug Assessment) - Free, open infrastructure for real-world evidence collection
- ๐ 50/50 Health Savings Sharing Rewards - Multi-billion dollar incentives for developing actual cures instead of lifetime drug subscriptions
- ๐ Real-Time Analysis of the positive and negative effects of every food, supplement, drug, and treatment on every measurable aspect of human health and happiness
- ๐ Global Access - Decentralized trials anyone can participate in from home
๐ Read the Full Cure Acceleration Act
The current system of clinical research, diagnosis, and treatment is failing the billions of people are suffering from chronic diseases.
๐ Problems we're trying to fix...
By harnessing global collective intelligence and oceans of real-world data, we hope to emulate Wikipedia's speed of knowledge generation.
๐ How to generate discoveries 50X faster and 1000X cheaper than current systems...
So in the 90's, Microsoft spent billions hiring thousands of PhDs to create Encarta, the greatest encyclopedia in history. A decade later, when Wikipedia was created, the general consensus was that it was going to be a dumpster fire of lies. Surprisingly, Wikipedia ended up generating information 50X faster than Encarta and was about 1000X cheaper without any loss in accuracy. This is the magical power of crowdsourcing and open collaboration.
Our crazy theory is that we can accomplish the same great feat in the realm of clinical research. By crowdsourcing real-world data and observations from patients, clinicians, and researchers, we hope to generate clinical discoveries 50X faster and 1000X cheaper than current systems.
- Diagnostics - Data mining and analysis to identify causes of illness
- Preventative medicine - Predictive analytics and data analysis of genetic, lifestyle, and social circumstances to prevent disease
- Precision medicine - Leveraging aggregate data to drive hyper-personalized care
- Medical research - Data-driven medical and pharmacological research to cure disease and discover new treatments and medicines
- Reduction of adverse medication events - Harnessing of big data to spot medication errors and flag potential adverse reactions
- Cost reduction - Identification of value that drives better patient outcomes for long-term savings
- Population health - Monitor big data to identify disease trends and health strategies based on demographics, geography, and socioeconomic
This is a very high-level overview of the architecture. The three primary primitive components of the framework are:
- Data Silo API Gateway Nodes that facilitate data export from data silos
- Digital Twin Safes that import, store, and analyze your data to identify how various factors affect your health
- Clinipedia that contains the aggregate of all available data on the effects of every food, drug, supplement, and medical intervention on human health.
Gateway API Nodes should make it easy for data silos, such as hospitals and digital health apps, to let people export and save their data locally in their Digital Twin Safes.
๐ Learn More About Gateway APIs
Digital Twin Safes are applications that can run on your phone or computer. They import, store, and analyze your data to identify how various factors affect your health. They can also be used to share anonymous analytical results with the Clinipedia FDAi Wiki in a secure and privacy-preserving manner.
Each Digital Twin Safe combines encrypted local storage with a personal AI agent that applies causal inference algorithms to estimate how various factors affect your health.
A local application for self-sovereign import and storage of personal data.
๐Learn More or Contribute to Digital Twin Safe
Personal AI agents that live in your Digital Twin Safe and use causal inference to estimate how various factors affect your health.
๐Learn More
The Clinipedia wiki should be a global knowledge repository containing the aggregate of all available data on the effects of every food, drug, supplement, and medical intervention on human health.
๐ Learn More or Contribute to the Clinipedia
A key component of Clinipedia is Outcome Labels that list the degree to which the product is likely to improve or worsen specific health outcomes or symptoms.
๐ Learn More About Outcome Labels
- Data Collection
- Data Import
- Data Analysis
- Real-Time Decision Support Notifications
- No Code Health App Builder
- Personal AI Agent
- Browser Extension
Collects and aggregate data on symptoms, diet, sleep, exercise, weather, medication, and anything else from dozens of life-tracking apps and devices. Analyzes data to reveal hidden factors exacerbating or improving symptoms of chronic illness.
Web and mobile push notifications with action buttons.
By using the Browser Extension, you can track your mood, symptoms, or any outcome you want to optimize in a fraction of a second using a unique popup interface.
The Analytics Engine performs temporal precedence accounting, longitudinal data aggregation, erroneous data filtering, unit conversions, ingredient tagging, and variable grouping to quantify correlations between symptoms, treatments, and other factors.
It then pairs every combination of variables and identifies likely causal relationships using correlation mining algorithms in conjunction with a pharmacokinetic model. The algorithms first identify the onset delay and duration of action for each hypothetical factor. It then identifies the optimal daily values for each factor.
๐ More info about data analysis
More info about real time decision support
๐ More info about the predictor search engine...
๐ More info about observational studies...
| App | Status | Description |
|---|---|---|
web |
Canonical product | The dFDA web app: patient, provider and research-partner screens, and public condition, treatment and outcome-label pages. The same code runs as dfda.earth, hosting people's Digital Twin Safes, or at a clinic as its Clinic Node. Each deployment has its own configuration, authentication, storage, and patient data. prototype.dfda.earth is the reference deployment. |
The Crowdsourcing Cures site has its own repository. The retired fda-gov-v2 repository is a feature source for apps/web, not a
second product line. Port useful behavior in reviewed slices; do not merge its
entire divergent history into this repository.
| Package | Purpose |
|---|---|
legacy-import |
Tools for moving data out of the legacy MySQL database: its Prisma schema, query CLIs, and a MySQL-to-PostgreSQL sync. Retired once the migration is done. |
config-eslint, config-typescript |
Shared lint and TypeScript config |
The planned shared packages are listed in docs/MIGRATION.md.
- Frontend: React, Next.js, TypeScript, Tailwind
- Canonical node database: PostgreSQL through Supabase, with Row Level Security and SQL migrations
- Legacy data: a Prisma schema of the old MySQL database in
packages/legacy-import, used only for the migration - Authentication: Supabase Auth, plus the web app's own OAuth server for third-party apps
- Background jobs: graphile-worker
- Tooling: pnpm workspaces, Turborepo, Vitest, Playwright, GitHub Actions
- Node.js 22+
- pnpm
- Docker (for the local Supabase stack)
- Supabase CLI
- Clone the repository:
git clone https://github.com/mikepsinn/dfda.git dfda
cd dfda
- Install dependencies:
pnpm install
- Set up environment variables:
cp apps/web/.env.example apps/web/.env
# Edit apps/web/.env with your Supabase credentials
- Start the web app:
pnpm --filter web dev:env
This starts local Supabase (it needs Docker), then the Next.js server, the background worker (dev:worker) and the reminder cron (dev:cron). dev:next starts only the Next.js server, and dev starts it with secrets from Doppler instead of .env.
- The first time, load the database schema and seed data from a second terminal:
pnpm --filter web db:local:reset
The web app uses Supabase for its database and authentication. From the repo root:
pnpm --filter web sb:local:start # start only local Supabase
pnpm --filter web db:local:reset # apply migrations and seeds
pnpm --filter web db:local:types # regenerate TypeScript typesThe database schema is managed through migrations in the apps/web/supabase/migrations directory. Each migration represents a specific change to the database structure.
The development environment includes:
- A local Supabase stack (PostgreSQL, Auth, Storage) started by
sb:local:start - A graphile-worker process for reminders and background jobs (
dev:worker) - A cron process that queues the periodic reminder jobs (
dev:cron)
The repo uses pnpm workspaces and Turborepo, with the following structure:
dfda/
โโโ apps/ # Deployable applications (web)
โโโ packages/ # Shared libraries and tooling
โโโ schema/ # Earlier, unapplied database design
โโโ supabase/ # Earlier combined-migration tooling
โโโ docs/ # Documentation
โโโ .github/ # GitHub workflows
pnpm --filter web dev:env- Start the web app with local Supabase, the worker and the cronpnpm --filter web build- Build itpnpm --filter web test- Run its testspnpm --filter web lint- Lint it
- Place the feature in
apps/webor a shared package according to the migration plan - Create a new branch:
feature/your-feature-name - Implement the feature following the architectural guidelines
- Add tests and documentation
- Submit a pull request
The reference web app deploys to Vercel from apps/web, using Supabase Cloud
for its database and authentication. See the app environment setup
for configuration.
Packaging the same app so a clinic can install and operate its own isolated Clinic Node is planned work. Follow the migration plan; there is no separate infrastructure deployment roadmap here.
Before nodes share data, implement consent records, authenticated node
submissions, and the aggregate privacy controls.
Public pages remain in apps/web; network administration belongs to the
planned aggregator.
Use the development workflow above and the migration plan to choose and scope a contribution.
- Tested analysis methods and trial-results ingestion
- Patient tracking, OAuth/data imports, and shared export parsers
- Consent, privacy-preserving Summary Files, and node authentication
- Clinic Node packaging and aggregator administration
- Documentation, internationalization, and accessibility
Follow the implementation sequence: foundation, ratings and trial results, the dfda.earth cutover, the clinic network, and consent-based legacy migration. The feature inventory distinguishes existing code from extraction candidates and new work.
- Discover trials matched to your health profile
- Securely store and control your health data
- Track your participation and outcomes
- Receive personalized insights and recommendations
- Create and manage decentralized trials
- Access diverse patient populations
- Reduce administrative overhead
- Analyze real-time trial data
- Refer patients to appropriate trials
- Monitor patient participation
- Access comparative effectiveness data
- Integrate with existing EHR systems
- Build on the dFDA API platform
- Create specialized tools for clinical research
- Integrate with Gateway Nodes
- Preserve consent, access controls, and evidence provenance












