Skip to content
NeoVandPublic

About

No description, website, or topics provided.

Resources

Stars

5 stars

Watchers

0 watching

Forks

Latest commit

 

History

68 Commits

Folders and files

Repository files navigation

LangX — a walkthrough of the interactive course: lessons, live demos, and agents running in the browser

LangX

An interactive course in AI engineering — learn the LangChain stack by watching it run.

LangChain · LangGraph · Deep Agents — 29 lessons, 3 levels, every concept a live demo you run and inspect in the browser.

SvelteKit Svelte 5 TypeScript Tailwind CSS LangChain Runs in the browser

▶ Open the live course at langx.lol


What it is

LangX is a self-contained, in-browser course on building with the LangChain ecosystem. It is not a set of slides about agents — it is a set of agents you can run. Each lesson pairs a hand-illustrated explainer with a working demo that executes client-side against real model APIs: stream a model token by token, fork a state graph mid-run, approve an agent's plan, audit a live SEC filing, or watch a deep agent research real sources and cite them.

The whole thing runs as a static site. There is no backend to deploy and nothing to install for the reader — you bring a model key (or a local model) and everything happens in your browser.

Why it's different

  • Every concept is executable. Around two dozen runnable demos, one per idea — from a single tool-calling loop to a self-planning deep-research agent.
  • The wiring is never hidden. Watch tokens stream, state mutate, tools fire, and graphs branch in real time.
  • Bring your own model. Anthropic, OpenAI, Google, or Azure — or a local model in-browser via transformers.js. Your keys stay in your browser. No key at all? The agent demos fall back to a local tool-calling model (Qwen3-4B) that downloads once and runs on WebGPU.
  • Built on the real stack. The same @langchain/* and langgraph packages you'd reach for in production, nothing mocked.
  • Live, not canned. Embedded GPT-2 runs in the browser, the auditor reads real EDGAR filings, and the research capstone fetches real sources.
  • Take any demo with you. Each demo exports as a standalone project you run with npm start, or as an Agent Skill (a SKILL.md) that teaches a coding agent to rebuild it from scratch.

The curriculum

Level 1 — LangChain

The foundation layer.

Six composable primitives that all speak one interface, the Runnable. Pipe them together and you get chains, RAG, and agents.

  • Overview — the whole picture
  • The Model (live GPT-2)
  • Runnables & LCEL
  • Streaming
  • Structured output
  • Tools
  • createAgent
  • Middleware & hooks
  • Capstone: Agentic RAG

Level 2 — LangGraph

The orchestration layer.

Model an agent as a stateful graph — nodes, edges, and reducers — that loops, branches, checkpoints, and pauses for a human.

  • The whole graph
  • StateGraph
  • Conditional edges & reducers
  • Checkpointers & time travel
  • Interrupts & HITL
  • Streaming modes
  • Send & fan-out
  • Capstone: Subgraphs

Level 3 — Deep Agents

The cognitive harness.

Planning, a virtual filesystem, parallel subagents, skills, and context compaction — the machinery that turns a brief into a long-running agent.

  • The harness
  • Virtual filesystem
  • The plan board
  • Backends
  • Filesystem permissions
  • Subagents
  • Skills
  • Context compaction
  • Human-in-the-loop
  • Capstone: Deep Research
  • Capstone: Data Science
  • Beyond this course

A few of the demos

Agentic RAG capstone The whole graph
Agentic RAG
A document agent that searches, cites, and clarifies.
The whole graph
See every LangGraph primitive at once.
Deep Research capstone The deep-agent harness
Deep Research
Plan, approve, research real sources, cite.
The harness
A brief becomes a playable game.

Getting started

Requires Node 20.19+ (Vite 8) and npm. No .env and no API keys are needed to build or run the site — you add a model key from inside the app.

# install
npm install

# run the dev server (http://localhost:5173)
npm run dev

# build the static site, then preview the production build
npm run build && npm run preview

LangX builds with @sveltejs/adapter-static, so npm run build produces a fully static site (flat .html files, no server) you can host anywhere — GitHub Pages, Netlify, Cloudflare Pages, or an S3 bucket. The live site at langx.lol is deployed from main to GitHub Pages on every push.

Choosing a model

Open Setup in the app and add a key for any supported provider — Anthropic, OpenAI, Google, or Azure. Keys are kept in your browser's localStorage and are only ever sent to the provider you choose. Prefer to run nothing externally? Pick a local model and it runs in-browser via transformers.js (WebGPU where available); the same local model is also the automatic fallback whenever you run a demo without a key. Uploaded documents for the RAG lessons are embedded and stored locally too (IndexedDB via Dexie), so they never leave the browser either.


Tech stack

Area Tools
Framework SvelteKit 2, Svelte 5 (runes), TypeScript, Vite
Styling Tailwind CSS v4, custom editorial type system (Fraunces / Source Serif / Mona Sans / IBM Plex Mono)
LLM / agents langchain v1, @langchain/core, @langchain/langgraph, provider SDKs for Anthropic · OpenAI · Google · Azure
In-browser models @huggingface/transformers, onnxruntime-web
Visualization D3, d3-sankey, @observablehq/plot, Mermaid, KaTeX
Content & code mdsvex, Shiki, marked, js-tiktoken
Storage / docs Dexie (IndexedDB), pdfjs-dist, Zod
Tests Vitest, Playwright

Project structure

src/
  routes/                    # landing page + the three level chapters;
                             #   each lesson is its own route
  lib/
    curriculum.ts            # the course map (levels, lessons, banners)
    demos/                   # the runnable demos — one per concept
    components/              # Slide deck, glossary Term tooltips, TopNav, …
    models/                  # provider catalog (Anthropic/OpenAI/Google/Azure/local)
    transformer-explainer/   # the embedded, live GPT-2 visualizer
    state/                   # app + nav state (Svelte runes)
static/
  images/                    # the hand-illustrated banners + level posters
  images/thumbs/             # generated WebP thumbnails (see scripts/make-thumbs.mjs)

Credits

Built by Neo Mohsenvand · LinkedIn.

The artwork is a custom steampunk illustration set; the type and layout are a bespoke editorial design.

About

No description, website, or topics provided.

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages