Skip to content

About

Welcome to An IDE For Every Language! This is a project where I (and any other contributers) try to make an offline .html IDE for EVERY single coding language to ever exist. If anyone wants to contribute, start a new issue

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

An IDE for Every Language

An IDE for Every Language is an experiment in creating focused, language-specific coding environments in the browser. Python is included as an example IDE—a demonstration of the experience and architecture the project plans to build toward for many languages.

The current site includes:

  • A project overview and contribution page
  • A downloadable, single-file example Python IDE
  • An offline Python runtime powered by Pyodide

Example Python IDE

The Python IDE is a proof of concept for the project. It demonstrates that a small, standalone IDE can run in the browser with an editor, console output, and basic file controls.

Features

  • Runs Python locally using WebAssembly
  • Works offline once downloaded
  • Includes Python's standard library
  • Opens .py files from the device
  • Downloads or saves the current source file
  • Captures output and Python exceptions
  • Requires no account or server-side setup

This is an early example rather than a complete Python development environment. Third-party packages and APIs such as turtle and pgzrun are not bundled yet.

Development

Prerequisites

  • Node.js with npm
  • A modern browser

Run locally

npm install
npm run dev

Vite will start the development server and print its local URL.

Create a production build

npm run build
npm run preview

The build command refreshes the bundled Pyodide assets and creates the site in dist/.

Generate the standalone example

The postinstall, predev, and prebuild scripts run scripts/copy-runtime.js, which:

  1. Reads the Pyodide runtime from node_modules/pyodide/
  2. Embeds the runtime, WASM module, and Python standard library into standalone/template.html
  3. Writes the finished file to python-ide.html for the GitHub Pages branch deployment and public/python-ide.html for Vite builds. The root copy is intentionally committed so the download works on GitHub Pages without a build step.

You can regenerate it directly with:

npm run postinstall

Open python-ide.html directly in a browser to try the example offline. Commit the regenerated root file whenever the template or runtime changes.

Testing

npm test

The standalone test loads the generated HTML in a browser-like Node.js environment. It verifies that Python can start offline, run code, report errors, and run successfully again afterward.

Project structure

index.html                   Landing page
src/                         Landing-page assets and source
standalone/template.html     Standalone example IDE template
scripts/copy-runtime.js      Embeds Pyodide into the standalone HTML
scripts/test-standalone.cjs  Offline standalone IDE test
python-ide.html              Generated downloadable IDE, published from the repository root
public/python-ide.html       Generated copy used by Vite

Contributing

Contributions, language suggestions, and implementation ideas are welcome. The project aims to explore small, approachable IDE experiences that are easy to run offline in the browser.

Have an idea for another language or a suggested interaction model? Open an issue or submit a pull request.

Deploying to GitHub Pages

GitHub Pages is configured to publish the repository root on main. The generated python-ide.html is committed so it is available to download there. Do not switch the Pages source to GitHub Actions without configuring a deployment workflow. The included workflow checks that the committed file matches its template and runtime.

About

Welcome to An IDE For Every Language! This is a project where I (and any other contributers) try to make an offline .html IDE for EVERY single coding language to ever exist. If anyone wants to contribute, start a new issue

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages