I build AI that shows its work.
I’m Joshua. I design, build and ship AI apps myself. They answer from real sources,1 stay inside hard limits,2 run their safety checks in code,3 and you can use them today.4
5 products shipped. 4 are live, 2 of them AI apps.5
-
Source: Repo Explainer case study, decisions
“For each question the AI first picks a handful of relevant files from the file list, the server accepts only paths that really exist, and only those files are read.”
-
Source: Contract Explainer case study, decisions
“Limits at every layer. A document length cap, a section cap, a per-visitor rate limit, a daily cap across all visitors, and a prepaid balance with a monthly ceiling.”
-
Source: Repo Explainer case study, decisions
“Anything that looks like a key or password is masked before code reaches the AI.”
-
Source: the two live AI apps, open to the public in the United States; Repo Explainer requires a GitHub sign-in
- repo.parquemedia.com, OpenAI API
- contracts.parquemedia.com, Claude API
-
Source: the Systems section on this page
Lexmere is in progress. Shipped: Repo Explainer, Contract Explainer, Nightlight, Your Life in Weeks and Security Scanner. Live: Repo Explainer, Contract Explainer, Nightlight and Your Life in Weeks. Repo Explainer and Contract Explainer are the live AI apps.
Systems
Each product is built end to end. Every panel says how its output is checked and where you can see it running.
-
Local build of Lexmere (in progress), running the real AI with a fictional demo firm. The reply shown was written by the AI and passed both trust-gate checks before it was displayed. Captured November 30, 2026. Not public yet. Lexmere AI intake for small law firms
In progressAnswers a law firm's website visitors, screens each inquiry against the firm's practice areas, and hands the firm a clear intake record, and is built never to give legal advice.
- How it's verified
- Every AI reply passes a trust gate before a visitor sees it, and messages that signal an emergency get a fixed 911 and 988 line. Each firm's data is kept separate with Postgres row-level security. In progress.
- Built with
- Python, FastAPI, Postgres row-level security, Claude API
- Lives at
- Not public yet
-
Screenshot of the live app, captured November 28, 2026. Repo Explainer Plain-English tours of code
LiveTurns any public GitHub project into a plain-English tour, a start-here map, and answers to your questions about the code.
- How it's verified
- Anything that looks like a key or password is masked before code reaches the AI, and its rules are enforced on the server, not just in the prompt.
- Built with
- Next.js, OpenAI API, GitHub sign-in
- Lives at
- repo.parquemedia.com
-
Screenshot of the live app, captured November 28, 2026. Contract Explainer Contracts in plain English
LiveExplains a contract or policy section by section in plain English, and puts the sections that deserve attention first.
- How it's verified
- Submitted text is fenced off and treated as material to explain, never as instructions to the model.
- Built with
- JavaScript, Netlify Functions, Claude API
- Lives at
- contracts.parquemedia.com
-
Screenshot of the live app, captured November 28, 2026. The search term was typed for this screenshot. Nightlight Pediatric clinical-trial research
LiveSearches ClinicalTrials.gov for open studies whose age range includes children, straight from your browser.
- How it's verified
- No AI generates or alters study information. Every detail comes directly from ClinicalTrials.gov.
- Built with
- Python, JavaScript, ClinicalTrials.gov API, GitHub Actions, Netlify
- Lives at
- www.nightlighttrials.org
-
Screenshot of the live app, captured November 28, 2026. Your Life in Weeks A visual calendar of a life
LiveAn interactive visualization of a life in weeks, drawn on a canvas in your browser.
- How it's verified
- Runs entirely in your browser and uses no AI.
- Built with
- JavaScript, Canvas API
- Lives at
- weeks.parquemedia.com
-
Security Scanner A private tool that runs locally
ShippedAudits my own codebases across 19 classes of flaw. The scanning runs only on my machine; when the optional AI explains a finding, it sees only masked snippets, never whole files.
- How it's verified
- Graded against a practice app with 20 deliberately planted flaws before it was trusted. It found 20 of 20.
- Built with
- Node.js
- Lives at
- On my own machine, by design
Architecture
The safeguards live in code, where a prompt can't talk its way around them. Pick an app and follow one request through its code.
Lexmere's request path
How Lexmere handles one web chat message.
Select a stage to see the code that enforces it.
-
A visitor's message
Every message enters through one function, bound to one firm, and must belong to that firm's conversation.
Source:
app/gate/ pipeline.py -
One firm's rows only
In Lexmere's production setup, Postgres row-level security returns only the current firm's rows. Local development uses SQLite, without row-level security.
Source:
app/data/ rls.py -
Emergency screen first
Messages that signal an emergency get a fixed 911 and 988 line, before any AI runs.
Source:
app/gate/ pipeline.py -
The AI drafts a reply
The AI drafts a reply only after a safety check passes for that exact message.
Source:
app/gate/ pipeline.py -
Trust gate
Every draft must pass fixed rules, including never giving legal advice, and a separate AI review. Anything else gets a fixed reply.
Source:
app/,gate/ pipeline.py app/gate/rules.py -
An intake record for the firm
The details form becomes an intake record with its screening result, and the firm gets a new-inquiry email.
Source:
app/channels/ intake.py
Stage 1: A visitor's message
Excerpt from Lexmere's server code. Emergency word lists, gate rule wording, prompts and model settings are omitted.
app/gate/pipeline.py → Gate.respond(), lines 718–719, 723–725, 727–728 def respond(self, tenant_id: str, conversation_id: str, user_text: str) -> GatedReply:
repos, firm = self._load(tenant_id)
# …
conversation = repos.conversations.get(conversation_id)
if conversation is None:
raise LookupError("conversation does not belong to this firm")
# …
run = _LiveRun(repos, audit, conversation, self._policy)
outcome = self._decide(repos, audit, firm, run, user_text)
Stage 2: One firm's rows only
Excerpt from Lexmere's server code. Emergency word lists, gate rule wording, prompts and model settings are omitted.
app/data/scopes.py → _on_begin(), line 173 conn.exec_driver_sql("SELECT set_config(%s, %s, true)", (SETTING, firm))
app/data/rls.py → apply_to(), lines 69–70, 73–76 conn.execute(text(f"ALTER TABLE {t} ENABLE ROW LEVEL SECURITY"))
conn.execute(text(f"ALTER TABLE {t} FORCE ROW LEVEL SECURITY"))
# … old policies dropped first
conn.execute(text(
f"CREATE POLICY tenant_rows ON {t} FOR ALL TO {app} "
f"USING (tenant_id = current_setting('{SETTING}', true)) "
f"WITH CHECK (tenant_id = current_setting('{SETTING}', true))")) # fmt: skip
Stage 3: Emergency screen first
Excerpt from Lexmere's server code. Emergency word lists, gate rule wording, prompts and model settings are omitted.
app/gate/pipeline.py → _decide(), lines 2039–2041 screen = inbound.screen(user_text, content=firm.content, practice_areas=firm.practice_areas,
facts_gate=run.facts_gate) # fmt: skip
emergency = screen.action == inbound.EMERGENCY
app/gate/pipeline.py → _decide_screened(), lines 2302, 2306–2307, 2311–2312 if screen.action == inbound.EMERGENCY:
# … fixed 911 and 988 reply (wording omitted)
run.mark_urgent()
rid = _for_channel(run.channel, screen.refusal_id)
# …
outcome.decision, outcome.urgent = Decision.EMERGENCY, True
return outcome
Stage 4: The AI drafts a reply
Excerpt from Lexmere's server code. Emergency word lists, gate rule wording, prompts and model settings are omitted.
app/gate/pipeline.py → _decide_screened(), lines 2381–2385, 2427, 2431 if run.channel in SAFETY_CHECKED_CHANNELS and not (
verdict is not None and verdict.passed_for(user_text)
):
return self._fixed(firm, R.SAFETY_CHECK_UNAVAILABLE, (C.RULE_UNCHECKED,), "safety",
run.safety_lang(self._message_lang(user_text, screen))) # fmt: skip
# … the prompt is built here (omitted)
gen = self._ai_call(
# … prompt and model settings omitted
) # fmt: skip
Stage 5: Trust gate
Excerpt from Lexmere's server code. Emergency word lists, gate rule wording, prompts and model settings are omitted.
app/gate/pipeline.py → _decide_screened(), lines 2300, 2468, 2509–2510, 2512–2513 decision = Decision.REFUSE # fail closed: only the last step can change this
# … the AI draft, then fixed rules (Layer A)
if not layer_a.passed:
# … fixed reply; then the separate AI review (Layer B, prompt omitted)
if not verdict.passed:
return self._fixed(firm, R.R_UNCERTAIN, verdict.rule_ids, "B", lang)
# --- Both layers passed. This is the ONLY place a decision becomes ALLOW.
decision = Decision.ALLOW
app/gate/rules.py → check_draft(), lines 652–653 if _unbacked(ADVICE, text, cited) or _unbacked(ADVICE_ES, folded, cited_folded):
fired.append("R2-ADVICE")
Stage 6: An intake record for the firm
Excerpt from Lexmere's server code. Emergency word lists, gate rule wording, prompts and model settings are omitted.
app/channels/intake.py → submit_lead() → save_lead(), lines 334–336 audit.write(
"lead_created",
actor="visitor",
# …
app/channels/intake.py → submit_lead(), lines 347–349, 368 reply = gate.receive_intake(
repos.tenant_id, conversation_id, clean["description"], save_lead=save_lead
)
# …
if repos.flags.is_enabled(F.EMAIL_TO_FIRM):
A diagram of Lexmere's request path for one web chat message, checked against its source. The moving pulses are illustrative, not live data. Lexmere is in progress and not public yet. Excerpts from its source as of November 28, 2026.
Repo Explainer's request path
How Repo Explainer handles one request.
Select a stage to see the code that enforces it.
-
A question and a public link
You ask about a public GitHub project.
From the case study: A question and a public link
“Reads a public repository through the GitHub API”
-
Limits first
Usage limits are checked before any AI call.
From the case study: Limits first
“A per-minute speed limit, daily credits per account, a shared daily pool for free use, and a site-wide brake.”
-
Only real files
To choose files, the AI sees only file paths. The server keeps only the paths that really exist.
From the case study: Only real files
“the AI first picks a handful of relevant files from the file list, the server accepts only paths that really exist, and only those files are read.”
-
Fenced and masked
Files are fenced off as material, and anything that looks like a key or password is masked.
From the case study: Fenced and masked
“Every file is fenced off and the model is told to treat it as material to explain.”
“The server masks anything that looks like a key or password before any code leaves it.”
-
The model answers
The OpenAI API writes the answer from those files.
From the case study: The model answers
“Next.js, React, OpenAI API, GitHub API, GitHub sign-in”
-
Shown with its sources
The answer comes back with the files it was drawn from.
From the case study: Shown with its sources
“Answers questions about the code and shows which files each answer came from.”
Stage 1: A question and a public link
Excerpt from Repo Explainer's server code. Secret patterns, limit numbers and settings are omitted.
app/api/ask/route.js → POST(), lines 50–56 const link = parseRepoUrl(body?.url);
if (!link.ok) {
return Response.json(link, { status: 400 });
}
const question =
typeof body?.question === "string" ? body.question.trim() : "";
Stage 2: Limits first
Excerpt from Repo Explainer's server code. Secret patterns, limit numbers and settings are omitted.
app/api/ask/route.js → POST(), lines 67–68 const limit = await spend(request, /* number omitted */);
if (!limit.ok) return limit.response;
lib/limits.js → spend(), lines 40, 47, 66, 75export async function spend(request, units) {
// 1. A speed limit on every connection, signed in or not.
// 2. Anything that uses AI needs a GitHub sign-in.
// 3. The whole site's emergency brake.
// … checks and numbers omitted
Stage 3: Only real files
Excerpt from Repo Explainer's server code. Secret patterns, limit numbers and settings are omitted.
lib/retrieve.js → chooseFiles(), lines 50–53, 60–63 if (answer.ok) {
const known = new Set(paths);
const picked = answer.text
.split("\n")
// … bullet and backtick cleanup omitted
.filter((line) => known.has(line));
const unique = [...new Set(picked)].slice(0, MAX_FILES);
if (unique.length > 0) return unique;
Stage 4: Fenced and masked
Excerpt from Repo Explainer's server code. Secret patterns, limit numbers and settings are omitted.
lib/read-files.js → readChosenFiles(), lines 31–33 `<file path="${path}"${shortened ? ' shortened="yes"' : ""}>\n` +
`${text}\n` +
`${shortened ? SHORTENED_NOTE + "\n" : ""}</file>`,
lib/ai.js → SECRET_PATTERNS, lines 11, 22const SECRET_PATTERNS = [
// patterns omitted
];
lib/ai.js → askAI() → maskSecrets(), lines 111–112 instructions: maskSecrets(instructions),
input: maskSecrets(input),
Stage 5: The model answers
Excerpt from Repo Explainer's server code. Secret patterns, limit numbers and settings are omitted.
lib/ai.js → callOpenAI(), lines 52–58 body: JSON.stringify({
model: process.env.AI_MODEL,
instructions,
input,
store: false,
safety_identifier: safetyIdentifier(visitor),
max_output_tokens: maxOutputTokens,
Stage 6: Shown with its sources
Excerpt from Repo Explainer's server code. Secret patterns, limit numbers and settings are omitted.
app/api/ask/route.js → POST(), lines 100–107 if (!answer.ok) {
return Response.json(
{ ok: false, error: answer.message },
{ status: 502 },
);
}
return Response.json({ ok: true, answer: answer.text, sources });
A diagram of Repo Explainer's code path, checked against its source. The moving pulses are illustrative, not live data. Excerpts from the Repo Explainer source as of October 22, 2026. Read the case study: Repo Explainer
Contract Explainer's request path
How Contract Explainer handles one document.
Select a stage to see the code that enforces it.
-
A document in sections
Your file is read in your browser and split into sections; only a set number of sections is reviewed.
Source:
public/app.js -
Red-flag scan
A rule-based scan marks sections that contain warning words. It is a hint for the AI, not the decision.
Source:
public/app.js -
Limits on the server
Before any AI call, the server checks the section's length, a per-visitor rate limit and a daily cap across all visitors.
Source:
netlify/functions/ explain.mjs -
Fenced off as material
The section is fenced off as text to explain, never instructions, and the document type and state labels are cleaned first.
Source:
netlify/functions/ explain.mjs -
Claude explains each section
Claude explains one section at a time, called from the server with a key the browser never sees.
Source:
netlify/functions/ explain.mjs -
Severity flags and summary
The first line of each answer sets the concern level, which drives the badges, the sort order and the “what matters most” summary.
Source:
netlify/,functions/ explain.mjs public/app.js
Stage 1: A document in sections
Excerpt from Contract Explainer's code. The red-flag word list, the prompt, model settings and limit numbers are omitted.
public/app.js → submit handler, lines 430, 445–446, 461 const text = documentText.value.trim();
// … type and state checked
const allSections = splitIntoSections(text);
const sections = allSections.slice(0, MAX_SECTIONS);
// …
for (const section of sections) {
// … each section in turn
public/app.js → readPdf(), line 543async function readPdf(file) {
// … a PDF is read in the browser
Stage 2: Red-flag scan
Excerpt from Contract Explainer's code. The red-flag word list, the prompt, model settings and limit numbers are omitted.
public/app.js → redFlags, findRedFlags(), lines 8, 82, 84, 87, 90–91const redFlags = [
// … keywords omitted
];
function findRedFlags(text) {
// …
for (const flag of redFlags) {
// … pattern omitted
if (pattern.test(lower)) {
found.push(flag);
public/app.js → submit handler, line 466 const flags = findRedFlags(section);
Stage 3: Limits on the server
Excerpt from Contract Explainer's code. The red-flag word list, the prompt, model settings and limit numbers are omitted.
netlify/functions/explain.mjs → request handler, lines 74, 84, 97–98 const section = typeof body.section === "string" ? body.section.trim() : "";
// …
if (section.length < /* number omitted */ || section.length > MAX_SECTION_LENGTH) {
// … too short or too long: refused
if (!(await underDailyLimit())) {
return Response.json(
// … refused for today
netlify/functions/explain.mjs → config, line 171 rateLimit: {
// … per-visitor window and limit omitted
Stage 4: Fenced off as material
Excerpt from Contract Explainer's code. The red-flag word list, the prompt, model settings and limit numbers are omitted.
netlify/functions/explain.mjs → cleanLabel(), lines 33, 37, 39–40function cleanLabel(value, maxLength) {
// …
return value
// … characters outside a safe set removed (pattern omitted)
.trim()
.slice(0, maxLength);
netlify/functions/explain.mjs → request handler, lines 75–76 const documentType = cleanLabel(body.documentType, /* number omitted */);
const state = cleanLabel(body.state, /* number omitted */);
// … prompt omitted: the section sits between markers, as text to explain
Stage 5: Claude explains each section
Excerpt from Contract Explainer's code. The red-flag word list, the prompt, model settings and limit numbers are omitted.
netlify/functions/explain.mjs → request handler, lines 59, 132–133, 143, 160–161 const apiKey = process.env.ANTHROPIC_API_KEY;
// …
try {
aiResponse = await fetch("https://api.anthropic.com/v1/messages", {
// … model settings omitted
messages: [{ role: "user", content: prompt }],
// …
const data = await aiResponse.json();
const explanation = data.content[0].text;
Stage 6: Severity flags and summary
Excerpt from Contract Explainer's code. The red-flag word list, the prompt, model settings and limit numbers are omitted.
netlify/functions/explain.mjs → getConcern(), lines 23–27function getConcern(explanation) {
const firstLine = explanation.trim().split("\n")[0].toUpperCase();
for (const level of ["HIGH", "MEDIUM", "LOW", "NONE"]) {
if (firstLine.includes(level)) {
return level;
public/app.js → submit handler, line 535 buildSummary(reviewed, allSections.length);
A diagram of Contract Explainer's request path for one document, checked against its source. The moving pulses are illustrative, not live data. Excerpts from the Contract Explainer source as of October 23, 2026. Read the case study: Contract Explainer
The rules live in code
Lexmere, in progress, carries canaries to catch misuse: decoy records that alert me if anything touches them.
Every shipped web app runs on a global edge network, and every AI app, Lexmere included, keeps its keys server-side, behind hard cost caps.
| Safeguard | Where it runs |
|---|---|
| Submitted text fenced off as material, never instructions | Contract Explainer, Repo Explainer, Lexmere (in progress) |
| Secret masking before the AI | Repo Explainer |
| Only real file paths accepted | Repo Explainer |
| Keyword red-flag scan, used only as a hint | Contract Explainer |
| Trust gate: fixed rules, then a separate AI review, before any reply | Lexmere (in progress) |
| Refuses to give legal advice, by rule | Lexmere (in progress) |
| Fixed 911 and 988 line for emergencies | Lexmere (in progress) |
| Answers show the files they came from | Repo Explainer |
| No AI in study information | Nightlight |
| Server-side keys | Contract Explainer, Repo Explainer, Lexmere (in progress) |
| Rate limits and daily caps | Contract Explainer, Repo Explainer, Lexmere (in progress) |
| Consent before use | Contract Explainer, Repo Explainer, Nightlight, Lexmere (in progress) |
| Each firm's data kept separate with row-level security | Lexmere (in progress) |
| No tracking in the browser: no third-party requests, cookies or storage on load | Nightlight, Repo Explainer, Contract Explainer, Your Life in Weeks |
Ask this page
Simple in-browser matching, not an AI. It answers only from facts sourced on this site and cites them. No source, no answer. Nothing you type leaves your browser.
Operating principle
Prompts suggest. Code enforces.
Built with
- Python
- FastAPI
- Postgres
- Next.js
- Node.js
- Claude API
- OpenAI API
- Netlify
- GitHub Actions
Field Notes
Short write-ups on the decisions behind the work.
-
Signal Over Noise
Why I built a 20-flaw answer key before trusting my security scanner, and why it runs locally.
-
Prompts suggest. Code enforces.
What Repo Explainer taught me about where AI rules belong.
-
Why I took the AI out of Nightlight
Sometimes the right AI feature is no AI.
-
Designing for the worst message first
Lexmere, and why its safest answer is sometimes no answer.
-
One rulebook, every project
How I keep the same quality bar across everything I build.
Deploy with proof.
Open to Forward Deployed Engineer and AI Application Engineer roles, and taking on custom system builds.