Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

webxdc-dev

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webxdc-dev

A dev tool for Webxdc

  • 0.0.1
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

webxdc-dev

Very early draft of the code

A dev tool for Webxdc. It allows you to open multiple independent instances of a Webxdc application in different browser tabs or windows. Each Webxdc application has a different port number so they don't share anything, including localstorage.

Messages sent using sendUpdate are automatically distributed to all other instances of the application. This allows you to simulate a multi-user application.

How to use

For now, you can clone this repository and run:

npm run build

Then use:

npm run cli -- run /path/to/xdc

to run an Webxdc directory. There's a UI on port 3000 that lets you open instances in new tabs. You can also add a new instance using this UI.

Architecture

This codebase consists of three pieces:

  • backend: a NodeJS Express application that serves webxdc applications in the browser and distributes updates using websockets.

  • simulator: a version of webxdc.js that uses a websocket to the backend to send and receive updates. This is injected into webxdc applications.

  • frontend: a SolidJS application that presents the webxdc-dev UI.

The backend is compiled with TypeScript directly. The simulator and frontend are bundled using webpack using the babel loader (with the typescript preset).

Development

You can run webxdc-dev in development mode so that both frontend and backend are automatically recompiled when you change code. For frontend and simulator changes you need to reload your browser windows to see the effect. When you make a backend change, the entire server is restarted and a new browser window is opened.

npm run dev -- run /path/to/xdc

FAQs

Package last updated on 17 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc