Documentation
Build live Streamlit / JupyterLite apps that talk to real data — without standing up a backend.
PyCorner takes a Python notebook or Streamlit app and serves it as a live, in-browser web app via Pyodide. The hard part — getting that browser-side app to reach real data (your databases, internal APIs, anything behind a firewall) without exposing credentials in the client or fighting CORS — is what these docs are about.
The docs are organized so you can read top-to-bottom for a tour, or skip straight to the section you need.
What you can do today
- Query a database from a Streamlit app running entirely in the browser, with credentials staying server-side or on your own network.
- Call any REST API with auth headers injected on the server, so they never reach the client.
- Tunnel raw TCP from Pyodide so libraries like
pg8000connect natively to on-prem databases. - Egress from your own IP on Pro and Team — your tunnel agent makes outbound calls to APIs behind firewalls or with IP allowlists.
- Let an AI coding agent edit a project — point Claude Code, Cursor, or any MCP client at a single project over a revocable token, with edits converging into your open editor live.
- Use AI on your own computer — the editor chat with a model on your laptop (Ollama, LM Studio) or in your browser; your messages never reach our servers, on every plan.
Where to start
Pick whichever fits your moment:
- New here? → Quickstart (5 minutes to a working app talking to PostgreSQL).
- Want the mental model first? → Architecture.
- Already have an app and just need the syntax? → Client library reference.
- Want an AI agent editing your project? → MCP for AI coding agents.
- Want the AI chat without our servers? → AI on your own computer.
Quickstart
From zero to a Streamlit app querying real data in about five minutes.
Architecture
How a Pyodide app in the browser ends up holding a real database cursor.
Databases
Server-side SQL drivers — the default and easiest way to talk to a database from a Pyodide app.
Command line
APIs
Reach any HTTP API from your Pyodide app — with secret keys living server-side and CORS dealt with.
Raw TCP
Raw TCP from your Pyodide app — for when you want a real socket and a native Python driver.
Custom drivers (agent plugins)
Plug any Python database driver into the agent — DuckDB, Oracle, MongoDB, SAP HANA, …
Tunnel Agent
A small Python script you run on your network so PyCorner can reach private services and egress from your IP.
MCP for AI coding agents
Give Claude Code, Cursor, or any MCP client read+write access to a single PyCorner project over a revocable bearer token.
AI on your own computer
Use the editor's AI chat with a model on your laptop (Ollama, LM Studio, llama.cpp) or inside your browser. Your messages never reach our servers, nothing is charged, on every plan.
Client library reference
Everything the `pycorner` module exposes inside your Stlite app.
JavaScript library
pycorner.js: databases, APIs, AI and tunnels for plain web apps.
Leaderboards
Rank your players' best results: declare a board in leaderboards.json, then pg.storage in an instant Python game (PyLevate) or pycorner.js in a web app.
Shared tables and files
Collect form answers, count seats, share a list or approve requests: declare a table in tables.json. Turn a spreadsheet or an Access database into an app. Keep files in the visitor's browser.
Embedding an app in a website
Show a public instant Python app (PyLevate), pygame game or web app on your own site with an iframe.
Self-hosting
Run your own PyCorner instance. The core platform is AGPLv3 and ships with everything except payment provider integration.