Documentation
About PsyWire
A self-hosted psychedelic industry intelligence platform — what each tool does, where the data comes from, and how to get the most out of it.

PsyWire is a private intelligence dashboard for the psychedelic industry. It aggregates live data from public APIs and news sources into a single interface — no logins, no paywalls, no manual research. Every page pulls fresh data directly from authoritative upstream sources: government health databases, clinical trial registries, research literature, and funding agencies.

The platform is oriented toward supply-side industry intelligence — tracking the clinical pipeline, monitoring regulatory activity, and identifying demand signals for pharmaceutical-grade psychedelic compounds. It is self-hosted and runs entirely on local infrastructure.

Pages & tools
News Feed
/
Live aggregation of psychedelic industry news from curated RSS sources. Articles are categorized (Research, Policy, Culture, Business) and summarized by a local AI model. The Psygen Watch sidebar surfaces any article mentioning GMP, Health Canada, CDMO, Special Access Program, or related manufacturing topics.
RSS feeds · AI summaries via Ollama (qwen3:8b)
Vigilance Explorer
/vigilance
Search Health Canada's Canada Vigilance Programme — the national adverse drug reaction database. Look up any drug by name to see reported adverse events, severity breakdowns, and reporting trends over time. Useful for monitoring safety signals around psychedelic compounds under the Special Access Program.
Health Canada Canada Vigilance API (browser-direct, CORS allowed)
NIH Grants Explorer
/grants
Search NIH-funded research projects via the NIH RePORTER database. Find grants by keyword, PI name, institution, or fiscal year. Grants funded today become clinical trials in 12–18 months — useful for identifying researchers who will soon need GMP drug supply.
NIH RePORTER API v2 (server-side proxy — NIH blocks browser CORS)
Clinical Trials Explorer
/trials
Search the full ClinicalTrials.gov registry in real time. Filter by recruitment status, phase (1/2/3), and whether results have been published. Each result shows enrollment target, primary outcome measure, sponsor, countries, and timeline. Defaults to active trials only.
ClinicalTrials.gov API v2 (server-side proxy — CT.gov blocks browser CORS)
Trial Enrollment Tracker
/tracker
Longitudinal monitoring of all interventional psychedelic trials. Unlike the search tool, the Tracker stores weekly snapshots of every trial and detects changes between polls: status transitions (e.g. Not Yet Recruiting → Recruiting), enrollment target amendments, and trial completions. The intelligence value grows over time as the snapshot history accumulates.
ClinicalTrials.gov API v2 · local SQLite snapshot store · polls weekly
Compound Reference
/compounds
Curated reference cards for 8 clinical-stage psychedelic compounds: Psilocybin, MDMA, Ketamine/Esketamine, LSD, DMT, 5-MeO-DMT, Ibogaine, and Mescaline. Each card covers receptor mechanism, current research phase, legal/scheduling status across US, Canada, and EU, and links to relevant PubMed searches.
Manually curated · PubMed links for verification
Literature Search
/literature
Search 36 million peer-reviewed biomedical articles via PubMed (NCBI). Results are sorted by most recent publication date and include abstract previews, author lists, journal, and DOI links. Quick-search chips for the main psychedelic compounds.
NCBI PubMed API (server-side proxy — NCBI blocks browser CORS)
Alpha Feed
/alpha
Live industry coverage from Psychedelic Alpha — the leading psychedelic industry publication. Covers deal flow, regulatory developments, company news, and research. Content is fetched and parsed server-side to work around RSS CORS restrictions.
psychedelicalpha.com RSS feed (server-side proxy)
Company Directory
/companies
Curated directory of public companies, private developers, and non-profits advancing psychedelic medicine. Filterable by region (Canada, US, Europe) and status. Each entry shows pipeline stage, lead program, therapeutic focus areas, and exchange listing.
Manually curated · 14 organizations
BD Intelligence Brief
/brief
A daily brief generated by an AI agent that autonomously gathers data across all PsyWire sources, reasons over it with a BD/CDMO lens, and writes a structured report. Covers manufacturing signals, Health Canada regulatory activity, clinical trial milestones, NIH grant trends, and competitive landscape. Runs nightly at 6 AM or on demand.
AI agent loop · qwen3:8b via Ollama · all PsyWire data sources
Resources
/resources
Curated external tools organized by category: chemistry databases (PubChem, ChEMBL, SDBS), structure drawing tools, regulatory references (ICH GMP guidelines, FDA Orange Book, Health Canada Drug Product Database), and research literature portals.
Manually curated external links
How it works
1
News ingestion (every 3 hours)
A background scheduler runs fetcher.py every 3 hours, pulling from curated RSS feeds across major psychedelic news and research sources. New articles are stored in a local SQLite database. Each article is sent to a locally-hosted Ollama AI model (qwen3:8b) for a one-sentence summary before storage.
2
Trial snapshot collection (every 7 days)
The tracker polls ClinicalTrials.gov for all interventional trials matching 8 psychedelic compound terms. One row per trial per poll is stored in the trial_snapshots table. On every page load, the latest and previous snapshots are compared to detect status changes, enrollment target amendments, and completions.
3
Live API proxying
Several upstream APIs block browser-side requests due to CORS policy. For these, PsyWire runs a server-side Flask proxy — the browser calls a local /api/* endpoint, which forwards the request to the upstream API and returns the result. Currently proxied: NIH RePORTER, ClinicalTrials.gov, NCBI PubMed, and Psychedelic Alpha RSS.
4
Browser-direct APIs
Health Canada's Vigilance API allows cross-origin browser requests, so /vigilance calls it directly from JavaScript without a proxy. This keeps the server stateless for that page and reduces latency.
5
BD intelligence agent (nightly at 6 AM)
An AI agent loop runs in agent.py, driven by qwen3:8b via Ollama on local hardware. The model is given four tools — get_recent_articles, get_trial_changes, search_nih_grants, and get_del_bulletin — and decides autonomously which to call, in what order, and when it has enough information to write the brief. It loops until it produces a final response, strips internal reasoning tokens, and stores the markdown output in the briefs table. The brief can also be triggered manually from the /brief page.
6
Rendering
The app is a Flask + Jinja2 backend with vanilla JavaScript on the frontend — no JS framework. Static pages (Compounds, Companies) render entirely client-side from data embedded in the JS file. Dynamic pages (Trials, Grants, Literature) fetch data at page load from either the proxy endpoints or browser-direct APIs.
Data sources
ClinicalTrials.gov
U.S. National Library of Medicine registry of registered clinical studies. Covers interventional and observational trials worldwide. Updated by trial sponsors; completeness varies.
NIH RePORTER
Database of NIH-funded research projects including grants, contracts, and intramural research. Covers NIMH, NIDA, and other institutes funding psychedelic research.
Health Canada Vigilance
Canada Vigilance Programme adverse reaction database. Covers voluntary reports from healthcare professionals and consumers for all marketed drugs in Canada.
NCBI PubMed
National Library of Medicine biomedical literature database. Over 36 million citations. Free full-text available for many articles via PubMed Central.
Psychedelic Alpha
Independent psychedelic industry publication covering deal flow, regulatory updates, company news, and research. Content is their property; PsyWire aggregates their public RSS feed.
RSS News Feeds
Curated set of RSS feeds from psychedelic research journals, industry publications, and news sources. Refreshed every 3 hours. Contact the site administrator to suggest new sources.
HC DEL Bulletin
Health Canada Drug Establishment Licence bulletin — a public listing of GMP compliance updates, foreign building inspections, and licensing changes. Scraped and keyword-flagged for psychedelic relevance by the BD agent and the Mfg Watch page.