Andy Li

Andy Li.I build with the OpenAI API, PostgreSQL, Supabase, Next.js, AWS and Android.

Scroll to see the work.

Four systems show that work: two live campus apps with real traffic, a staged UBC platform and an Android prototype.

Prototype

Temivor

A prototype assistant that operates an Android phone or headless Chrome from a typed or spoken request. Never released.

I built the Kotlin AccessibilityService shell, the Jetpack Compose screens and the Node.js home server. One OpenAI Chat Completions call with eight JSON-schema tools routes each request. Web tasks run the Responses API computer tool against headless Chrome, and voice runs on OpenAI's Live voice API over WebRTC. Phone planning uses MobileRun's open source loop.

5 OpenAI API integrations in one Node.js server
Function calling, a model relay, the computer tool, Live voice and transcription.
24.8 s for "Turn on Do Not Disturb." on an Android emulator
6 model calls, 2 acts on the phone, about 7 cents.
See how Temivor is built
Shipped

Looseword

An anonymous campus discussion platform, sorted by campus, residence and faculty. Live at looseword.ca.

I built it on Next.js, TypeScript and Vercel, with Google sign-in through Supabase Auth. All 52 PostgreSQL tables sit behind SECURITY DEFINER functions, and guest posts are signed with HMAC-SHA256 that SQL verifies. The OpenAI Decisions API screens posts and leaves any refusal, error or timeout pending for a moderator.

74,900+ Instagram views in 30 days
From Instagram Insights.
5,003 page views on the site in 30 days
Oct 25 to Nov 23, 2026, from Vercel Web Analytics.
See how Looseword is built
ShippedRounds paused

Sidequest

An invitation board for adults at UBC. Live at sidequest.looseword.ca, with matching rounds paused.

I built it on Next.js, TypeScript and Supabase. Every action goes through one plpgsql function that takes a transaction advisory lock, applies a rate limit and enforces request, offer and accept in SQL. Photos sit in a private Supabase Storage bucket, and alerts go out as generic Web Push.

1 function in SQL behind every action
A plpgsql dispatcher with one advisory lock and a rate limit per action.
3 steps enforced in SQL before chat opens
Request, offer, accept.
See how Sidequest is built
Internal tools

UBC Rover

Internal tools from my co-op at the UBC Faculty of Pharmaceutical Sciences. The main one is Curriculum Explorer, a curriculum mapping platform (staged, not in production).

As sole developer on Curriculum Explorer, I built a FastAPI backend over PostgreSQL with pgvector, and a React front end with a Canvas 2D map engine. Its pipeline calls the OpenAI Python SDK with strict JSON schemas on the flex tier, under a dollar budget per run. It deploys to AWS from one CloudFormation stack. I also built two Chrome extensions against the Canvas LMS API.

59 routes and 45 PostgreSQL tables, with pgvector
FastAPI and SQLAlchemy 2. Staged, not in production.
1 stack of AWS CloudFormation
CloudFront, API Gateway, Lambda, EC2 on a private subnet, S3.
See how the UBC tools are built

What I have worked with

Each row names an API, database, service or runtime from the four systems above, and what I built with it.

OpenAI API and LLM tooling

Chat Completions
Function calling with eight JSON-schema tools, so one call routes each request. Strict JSON-schema structured outputs on the flex tier, with up to 8 calls in parallel.Temivor, UBC Rover
Responses API
The computer tool driving headless Chrome over DevTools, with a screenshot sent back after each action. JSON-schema structured output for an advisory moderation review.Temivor, Looseword
Decisions API
A moderation classifier that scores each post against thresholds set in code. The post is passed as untrusted data, and a refusal, error or 6-second timeout leaves it pending for a moderator.Looseword
Live voice API and audio transcription
WebRTC voice sessions opened from the server, so the API key never reaches the browser. Recorded voice notes are transcribed and handled like typed requests.Temivor
Model relay, prompt caching, spend caps
An OpenAI-compatible /v1/chat/completions route that adds the key, pins the model, sets a cache key per job and enforces a cap per job and per day. In Python, each request reserves its worst-case cost before it is sent.Temivor, UBC Rover
MCP client
A person adds an outside service by name and address, and the assistant calls it as an MCP server.Temivor

Backend and data

PostgreSQL: SQL functions, RLS, advisory locks
No table is readable from the browser: 52 in Looseword, 27 in Sidequest. Every read, write, rate limit and quota check runs inside a SECURITY DEFINER function.Looseword, Sidequest
PostgreSQL with pgvector
A 45-table schema that keeps each source passage, its exact quote and a 1536-dimension embedding from text-embedding-3-small.UBC Rover
Supabase Auth and Storage
Google sign-in with the server-side PKCE flow. A private photo bucket whose policy checks who may see each photo, with uploads only through a server route.Looseword, Sidequest
Python, FastAPI, SQLAlchemy 2, Pydantic
A 59-route API and a ten-step pipeline that cuts exact quotes from the sentence numbers a model returns.UBC Rover
Node.js
A 26-module server for jobs, the journal, the model relay, schedules, memory and the socket link to the phone.Temivor
HMAC-SHA256, Cloudflare Turnstile, Zod
Guest posts and Google Forms payloads are signed, and SQL verifies the signature before it reads a field. Turnstile is checked on the server and inputs are validated with Zod.Looseword

Cloud and deployment

AWS
One CloudFormation stack: CloudFront, API Gateway, a Lambda proxy, an EC2 server on a private subnet with no public IP address, encrypted and versioned S3, and Secrets Manager.UBC Rover
Vercel, Cloudflare Workers, GitHub Actions
Looseword and Sidequest run on Vercel. Looseword's repo also holds a scheduled Cloudflare Worker for background routes, and its CI.Looseword, Sidequest
Linux VM: systemd, Caddy, Docker
The Temivor server is packaged to run on a cloud VM.Temivor
Google Apps Script, Instagram Graph API
A script that signs each Google Forms response for ingest. A checkpointed publishing worker that sends one publish call and never retries on its own (switched off; run only against a fake provider).Looseword
Email and Web Push
Campus codes sent by SMTP (Nodemailer) or Resend and stored only as HMAC digests. Web Push alerts with generic text.Sidequest

Android and automation

Kotlin and Android AccessibilityService
A phone shell that reads the UI tree, sends gestures with dispatchGesture, clicks and types with performAction, takes screenshots and answers notifications.Temivor
Jetpack Compose
The Chat, Activity and Memory screens of the Android app.Temivor
TCP sockets and TLS key pinning
One JSON object per line between phone and server, with TLS and a pinned public key when the server is remote.Temivor
Chrome DevTools Protocol, Chrome extensions
Headless Chrome for web tasks. Two JavaScript extensions against the Canvas LMS API: a CSV grade importer that rereads before it writes, and a course page audit.Temivor, UBC Rover

Web front end

Next.js App Router and TypeScript
Looseword's 31 API route files and campus feeds. Sidequest's board and its single catch-all action route.Looseword, Sidequest
Next.js ImageResponse
Approved posts rendered on the server as numbered 1080 by 1350 PNG cards.Looseword
React, Vite, Canvas 2D
The Curriculum Explorer front end, with a map engine in plain TypeScript on a 2D canvas.UBC Rover

More work

  • AccessiNote

    Prototype

    A lecture accessibility workbench. It lines up a transcript with text read from video frames, then exports timestamped notes and captions.

    AccessiNote on GitHub
  • Looseword Ops Room

    Hackathon prototype

    Two agents with separate jobs probe a synthetic outage. One triages, one verifies, and a person decides the response.

    Ops Room on GitHub
  • Canvas Feedback Import

    Public sample

    A runnable public sample of the Canvas grade importer. It rereads each grade before writing, so a conflicting edit, a lost response or a late undo cannot overwrite someone else's change.

    Importer on GitHub

About

I study Computer Science at UBC and work as a Learning Technology Rover (co-op) at the UBC Faculty of Pharmaceutical Sciences. Between that role and my own projects, most of my time goes into PostgreSQL schemas, OpenAI API integrations, FastAPI and Next.js backends, AWS infrastructure and Android services.

I work with AI coding agents, and I own the architecture, the data model, the API contracts, the security boundaries and the deployment.

Outside of work I run Looseword and edit Deadlock videos as V3SR.

Work
Learning Technology Rover (co-op), UBC Faculty of Pharmaceutical Sciences, Sep 2026 to present.
Education
Computer Science, BA, University of British Columbia, expected May 2028.