npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@irbisadm/simple-sdp

v0.1.1

Published

WebRTC SDP parser and validator influenced by pjsip library.

Downloads

19

Readme

license MIT npm version npm types bundlephobia min-zip size bundlephobia dependency count bundlephobia tree-shaking

Simple SDP tools

This project is a TypeScript library that provides a comprehensive set of tools for working with Session Description Protocol (SDP) messages in WebRTC applications. SDP is a text-based format that describes the multimedia communication sessions between peers. With this library, you can:

  • Parse and generate SDP messages from and to TypeScript objects
  • Manipulate SDP data by adding, removing, or modifying media streams, codecs, candidates, and other attributes
  • Validate SDP messages according to the RFC 8866 specification and WebRTC best practices
  • Track and verify the SDP history for a single PeerConnection instance

This project aims to help WebRTC beginners learn the SDP format and its components, as well as provide a clear and easy-to-use TypeScript API for advanced users. This project was inspired by the pjsip library written in C++.

You can use the library with Node.js as well in any modern web browser.

SIP disclaimer

Probably this library can be used for parsing and creating SDP for SIP. I can see a theoretical problems here because some SIP devices are complained only with older SDP RFC: RFC 4566 or RFC 2327.

I'm not an expert in SIP and have no test environment to check compatibility with that standards. If you can help with tests or expertise with SIP, please send me a message to [email protected]