Socket
Socket
Sign inDemoInstall

@blastlauncher/renderer

Package Overview
Dependencies
40
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @blastlauncher/renderer

`@blastlauncher/renderer` is the core of Blast Launcher.


Version published
Weekly downloads
2
increased by100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

@blastlauncher/renderer

@blastlauncher/renderer is the core of Blast Launcher.

It is a custom React renderer that implements the react-reconciler package. It is used to render the React element tree as JSON. Also it provides a websocket server.

There's currently no component checks, so developers might misuse the components and cause unexpected behaviors.

Architecture

  • Most elements are implemented in ./renderer/elements.
  • The reconciler is implemented in ./renderer/reconciler.ts.
  • The websocket server is implemented in ./server.ts.
.
├── @types
│   └── svgImports.d.ts
├── README.md
├── __tests__
│   └── hello.test.ts
├── index.ts
├── renderer
│   ├── elements
│   │   ├── BaseElement.ts
│   │   ├── Command.ts
│   │   ├── PrimitiveElements.ts
│   │   ├── createElement.ts
│   │   ├── elements.ts
│   │   ├── index.ts
│   │   └── types.ts
│   ├── index.ts
│   ├── reconciler.ts
│   ├── render.ts
│   └── types.ts
└── server.ts

Adding new elements

When implementing the @blastlauncher/api and you found there's no supported base element, you can add it in PrimitiveElements.ts. Remember also update the typing in renderer/elements/types.ts.

FAQs

Last updated on 23 Apr 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc