Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
@swmansion/smelter-node
Advanced tools
@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.
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.
@swmansion/smelter-node
is MIT licensed, but internally it is downloading and using Smelter server that is licensed
under a custom license.
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
Node runtime for @swmansion/smelter
We found that @swmansion/smelter-node demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
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.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.