New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@swmansion/smelter-node

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@swmansion/smelter-node

Node runtime for @swmansion/smelter

  • 0.2.0-rc.2
  • latest
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

@swmansion/smelter-node

Provides API to create and manage Smelter instances for Node.js environment.

When you call registerOutput on the Smelter instance, you can pass a ReactElement that represents a component tree built from components included in @swmansion/smelter package. Those components will define what will be rendered on the output stream.

Usage

import Smelter from '@swmansion/smelter-node';
import { View, Text } from '@swmansion/smelter';

function ExampleApp() {
  return (
    <View>
      <Text style={{ fontSize: 20 }}>Hello world</Text>
    </View>
  );
}

async function run() {
  const smelter = new Smelter();
  await smelter.init();

  // register input/outputs/images/shaders/...

  await smelter.registerOutput('example_output', <ExampleApp />, {
    type: 'rtp_stream',
    port: 8001,
    ip: '127.0.0.1',
    transportProtocol: 'udp',
    video: {
      encoder: { type: 'ffmpeg_h264', preset: 'ultrafast' },
      resolution: { width: 1920, height: 1080 },
    },
    audio: {
      encoder: {
        type: 'opus',
        channels: 'stereo',
      },
    },
  });

  await smelter.start();
}
run();

See our docs to learn more.

License

@swmansion/smelter-node is MIT licensed, but internally it is downloading and using Smelter server that is licensed under a custom license.

Smelter is created by Software Mansion

swm

Since 2012 Software Mansion is a software agency with experience in building web and mobile apps as well as complex multimedia solutions. We are Core React Native Contributors and experts in live streaming and broadcasting technologies. We can help you build your next dream product – Hire us.

FAQs

Package last updated on 05 Feb 2025

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