huanfu.li/local
HL
Huanfu Li

// session

connected

Hello, I am Huanfu Li

I build local-first AI systems that turn LLMs into reliable products: XR clients, desktop companions, learning engines, and policy simulations.

runtimelocal-first
projects8 shipped
inferenceon-device
cloud calls0
statusavailable
01

About

// professional

Professional Background

My work focuses on local-first AI systems that turn LLM capabilities into inspectable products: XR clients, desktop companions, learning engines, and simulation platforms.

Across recent projects, I have built Vercel Edge proxies, Electron/Python sidecars, Capacitor mobile apps, SQLite-backed persistence, multi-provider LLM gateways, and deterministic simulation engines.

I care about reliability and trust: visible agent sessions, explicit provider consent, privacy boundaries, stock-flow consistency checks, and tests that preserve the behavior users depend on.

// personal

Beyond the Code

Beyond technical work, I have a strong interest in political science, which allows me to think about problems from multiple perspectives and understand the impact of technology on society.

I believe my interdisciplinary knowledge background helps me consider more factors in technical decisions, not just technical feasibility, but also social value and ethical implications.

In my spare time, I enjoy exploring new technology trends, participating in open source projects, and sharing my learning insights and technical perspectives through blogging.

02

Experience & Research

Shenzhen, China05/2025 – 08/2025

Backend Developer & Machine Learning Engineer Intern

Chinasoft International Limited

  • 01Delivered a time series forecasting model using Python (LSTM integrated with Multi-Head Attention and Residual Networks) achieving up to 30% overall investment returns
  • 02Reduced model average loss by 90% through manual tuning and hyperparameter search using Optuna
  • 03Integrated early stopping techniques to prevent overfitting and reduced training costs by 40%
  • 04Improved test coverage by 25% through AI-assisted unit testing generation and code auditing
West Lafayette, U.S.08/2024 – 12/2024

Undergraduate Data Science Researcher

The Datamine Project – Purdue University

  • 01Built a manager coaching tool based on ChatGPT 3.5 Turbo LLM for HUMN Capital to analyze employee engagement and predict turnover risk
  • 02Used Whisper API to process video content, converting unstructured data to structured text for sentiment analysis
  • 03Worked as part of an Agile team using Kanban and Tableau to manage software projects and allocate work
  • 04Utilized Git for efficient version control and seamless collaboration on team repositories
03

Featured Projects

proc.01live

MR.Pilipala - Meta Ray-Ban Display Client

A glasses-native Pilipala web client for Meta Ray-Ban Display, built around a 600x600 HUD, D-pad navigation, Neural Band control, and Vercel Edge media proxying.

  • Built a 600x600 HUD interface for D-pad and Neural Band navigation
  • Implemented Vercel Edge proxying with WBI signing, Referer forwarding, and stream caching
  • Added QR device login, per-device httpOnly sessions, Watch Later, comments, and danmaku
  • Protected public deployment with KV-backed bandwidth and request rate limiting
+Vanilla JS+Vercel Edge+KV/Redis+Web APIs+Meta Ray-Ban Display
proc.02

Trellis - Privacy-First Mobile Knowledge Engine

A local-first mobile learning platform that turns fragmented information into a living knowledge garden through AI Q&A, visual mapping, spaced repetition, discovery feeds, and podcasts.

  • Built local-first SQLite/Capacitor storage with privacy-preserving provider boundaries
  • Implemented web-augmented Ask flow with autonomous search decisions, citations, and persistent navigation state
  • Created knowledge graph and Trellis health states with harvest, heal, re-plant, and prune actions
  • Added discovery feed styles, YouTube/news generation, daily podcast, and token analytics
+React 19+TypeScript+Capacitor+SQLite+Mind Elixir+LLM Providers
proc.03

PolicyLab - Multi-Agent Policy Simulation

A local-first platform for policy experimentation, combining LLM-driven citizen cognition with deterministic banking, capital markets, fiscal policy, inflation, and real-world data bootstrap.

  • Forked IdealWorld into a policy-focused platform with World Bank bootstrap for real locations
  • Built deterministic economic engines for banking, capital markets, fiscal policy, inflation, and SFC accounting
  • Added scenario builder, configuration diffs, real-time economic dashboards, and SSE progress
  • Maintained modular TypeScript architecture with 195 Vitest checks across mechanics and data pipelines
+TypeScript+React+Express+SQLite+Drizzle+Recharts+SSE
proc.04

OpenAgenticVTuber - Local-First AI Companion

A desktop companion for VTube Studio Live2D avatars with an Electron/React shell, Python sidecar, streaming LLM, configurable voice, plugin motion, and local-agent supervision direction.

  • Electron/React desktop shell supervises a Python FastAPI sidecar
  • Streams LLM responses through sentence buffering, configurable TTS/STT, and VTube Studio motion control
  • Built avatar catalogs, rig capabilities, plugin body motion, HUD parameter discovery, and persisted sessions
  • Explored user-approved local-agent routing with visible sessions, approval surfaces, and supervisor verdicts
+Electron+React+Python+FastAPI+LiteLLM+Pydantic+VTube Studio
proc.05

IdealWorld - LLM Micro-Society Simulator

A local-first simulator for designing, running, reflecting on, and comparing LLM-driven micro-societies with deterministic markets, physiology, persistence, and telemetry.

  • Designed full session lifecycle from idea input through simulation, reflection, review, and comparison
  • Combined LLM-generated citizen intent with deterministic mechanics for markets, MET metabolism, and allostatic load
  • Implemented local SQLite persistence, Drizzle schema, SSE simulation updates, and import/export flows
  • Laid the simulation foundation that later became PolicyLab's policy-focused fork
+TypeScript+React+Express+Zustand+SQLite+SSE
proc.06live

Project Iris - Always-On XR AI Assistant (WIP)

Extended Reality application for Meta Quest 3 featuring an always-on AI assistant using Gemini Live API with Unity C# frontend and Java Android backend. Please check the button for video demo.

  • Unity C# frontend with immersive XR interface design
  • Java Android backend with real-time API integration
  • Gemini Live API for natural conversation capabilities
+C#+Unity+Java+Android+Gemini Live API+Meta Quest 3
//Earlier Projects
proc.07

Bitcoin Price Prediction Model

Time series forecasting model based on Transformer architecture, integrating various financial technical indicators, open-sourced under MIT license to aid quantitative trading strategy development

  • Reduced model average loss by 90%
  • Integrated early stopping to prevent overfitting
  • Introduced feature engineering to enhance model performance
+Python+Transformer+PyTorch+Optuna
proc.08live

AI Code Debug Assistant

Developed a standalone full-stack debugging assistant based on DeepSeek R1 7B LLM, reducing MTTR by 28%

  • Implemented strategy design pattern for database interfaces
  • Designed bidirectional duplex server for concurrent connections
  • Used FileStream for direct source file manipulation
  • Deployed MySQL database for data management and user Auth
+Java+DeepSeek R1+MySQL+LM Studio
04

Tech Stack

//AI & Machine Learning

+Python+PyTorch+LLM Agents+Multi-Agent Simulation+Local LLMs+LiteLLM+STT/TTS+Gemini Live+Transformer+Optuna

//Backend & Database

+TypeScript+Java+Python+Express+FastAPI+SQL+SQLite+Drizzle ORM+MySQL+Server-Sent Events+REST API

//Frontend & Others

+JavaScript+React+Next.js+Vite+Electron+Capacitor+Zustand+Tailwind CSS+Framer Motion+Recharts

//Tools & Platforms

+Git+Docker+Vercel Edge+VTube Studio+Meta Ray-Ban Display+Meta Quest 3+Unity+Linux+Pydantic+Kanban

// Education

University of California, San Diego

09/2026 – present

M.S. in Computer Science

Purdue University

08/2022 – 05/2026

B.S. in Computer and Information Technology

Minor in Political Science

GPA: 3.85/4.00·Dean's List & Semester Honors, Fall 2022 – Spring 2026
05

Hobbies & Interests

Photography

01Photography

I enjoy documentary and landscape photography, as well as film photography. I aim to capture contemporary life through the lens, reflecting the spirit of our times.

3D Printing

023D Printing

Designing and fabricating prototypes using 3D modeling and additive manufacturing techniques. The ground effect vehicle model in the picture is designed and printed by me, aiming to explore efficient low-altitude flight technology.

Racing Cars

03Racing Cars

Passionate about automotive engineering and competitive racing, constantly seeking to improve driving skills and vehicle performance.

06

My Technical Vision

I believe software is the architecture of the 21st century. Our future social systems—from public services to financial compliance—will be built on code. However, we currently build this critical infrastructure using 'manual workshop' methods.

This bottleneck doesn't just slow innovation; it makes building the transparent, fair, and efficient systems we need to replace outdated bureaucracies almost impossible. My goal as a Responsible Systems Architect is to build the next generation of AI Governance Systems.

But this vision faces a critical barrier: Trustworthiness. How can we verify that a system managing millions of lines of code is fair, secure, and aligned with human rules?

My mission is twofold: First, to develop the foundation: an 'AI for Code' platform that acts as an 'AI Auditor.' This isn't just about speed; it's about Trust-by-Design. By leveraging Formal Verification, this AI will automatically validate that code is secure, reliable, and compliant with ethical rules before it's deployed.

Second, to apply this foundation to build Reliable & Human-Centered AI systems that can accurately translate human policies (like law or regulations) into auditable, executable logic.

I am convinced that without a robust platform to prove their reliability, such complex systems should not be built at all—they would be too complex to manage and too opaque to trust.

This vision now appears across my recent systems: PolicyLab and IdealWorld explore auditable policy and economic simulations, OpenAgenticVTuber explores inspectable human-agent delegation, Trellis focuses on privacy-preserving learning, and MR.Pilipala adapts real services to constrained emerging hardware.