Giter Club home page Giter Club logo

code-together's Introduction

logo

Multiplayer code editor inspired by Khan Academy's Embedded Editor, built using Svelte and TypeScript.

Code Together was intended to be used by teachers and peer tutors. Originally created for fully-online classes, I've found Code Together can be used in the classroom, too.

Usage

There are two versions of Code Together:

  1. A user-friendly page with an examples section, and access to copy the invite link. This page will generate your room ID for you.
    https://code.xacer.dev/
  2. A minimalist version for specialized classes. Teachers need to pick an ID for their room.
    https://code.xacer.dev/room?id=<your-id-here>

Features

The main priority of Code Together is safety. All operations happen in a sandboxed iframe element.

To avoid infinite loops crashing the page, Code Together runs user code in a separate thread via Web Workers. This means it avoids the code injection techniques that Khan Academy uses to prevent infinite loops.

The editor supports most of the same Processing.js library that Khan Academy uses. Specifically, I use a modified version of ski.js that can be found under /static/_worker.js.

Planned updates

  1. Loading and saving from Khan Academy. The vision is for two Khan Academy users to be able to work simultaneously on a project by loading it into Code Together, editing the code, then saving it back to a Khan Academy project.
  2. Quality of life features such as number scrubbing and color pickers. I'm working on number scrubbing in the number-scrubber branch.
  3. Helpful error messages. It would be awesome to somehow incorporate Large Language Models to get personalized feedback; in the meantime, I may end up creating a better version of Error Buddy (from Khan Academy's editor).

Credits

Thanks to DesignEvo for the free logo creator.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.