Gathering detailed insights and metrics for twilio-client
Gathering detailed insights and metrics for twilio-client
Gathering detailed insights and metrics for twilio-client
Gathering detailed insights and metrics for twilio-client
npm install twilio-client
Typescript
Module System
Min. Node Version
Node Version
NPM Version
TypeScript (57.29%)
JavaScript (42.15%)
HTML (0.4%)
Shell (0.16%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
66 Stars
406 Commits
33 Forks
31 Watchers
20 Branches
30 Contributors
Updated on Jun 12, 2025
Latest Version
1.15.1
Package Id
twilio-client@1.15.1
Unpacked Size
1.80 MB
Size
431.29 kB
File Count
112
NPM Version
9.5.1
Node Version
18.16.0
Published on
Oct 16, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
7
52
This repository does not contain the latest version of Twilio's Javascript Voice SDK. Although this major version will continue to be supported, it will no longer receive new features. We recommend that all users upgrade to 2.0 at their earliest convenience, in order to receive access to new features as they arrive.
This repository contains an outdated version of Twilio's Javascript Client SDK. We have now released 2.0 as Generally Available. You can find the new repository containing the JavaScript Voice SDK 2.0 here.
This new major version cleans up a lot of the legacy API, such as:
Additionally, new features from this point onward will only be added to the 2.0 project, and not be backported to 1.x, so anyone looking to use the latest features will want to be moved to the new 2.0 API.
Existing customers can review our migration guide here.
twilio-client.js allows you to add real-time voice and PSTN calling to your web apps.
Please check out our common issues page or file any issues you find here on Github. For general inquiries related to the Voice SDK you can file a support ticket. Please ensure that you are not sharing any Personally Identifiable Information(PII) or sensitive account information (API keys, credentials, etc.) when reporting an issue.
We recommend using npm
to add the Client SDK as a dependency.
npm install twilio-client --save
Using this method, you can import
twilio-client.js using ES Module or TypeScript syntax:
1import { Device } from 'twilio-client'; 2
Or using CommonJS:
1const Device = require('twilio-client').Device;
Though not recommended, releases of twilio-client.js are also hosted on a CDN and you can include these directly in your web app using a <script> tag.
1<script src="https://sdk.twilio.com/js/client/v1.14/twilio.js"></script>
Using this method, twilio-client.js will set a browser global:
1const Device = Twilio.Device;
Running unit tests requires no setup aside from installation (above). You can run unit tests via:
npm run test:unit
Integration tests require some set up:
1<?xml version="1.0" encoding="UTF-8"?> 2<Response> 3 <Dial> 4 <Client> 5 <Identity>{{To}}</Identity> 6 <Parameter name="duplicate" value="12345" /> 7 <Parameter name="duplicate" value="123456" /> 8 <Parameter name="custom + param" value="我不吃蛋" /> 9 <Parameter name="foobar" value="some + value" /> 10 <Parameter name="custom1" value="{{Custom1}}" /> 11 <Parameter name="custom2" value="{{Custom2}}" /> 12 <Parameter name="custom3" value="{{Custom3}}" /> 13 </Client> 14 </Dial> 15</Response>
Integration tests can be run via:
npm run test:integration
These tests will run via karma, one at a time, in your system's default Chrome and then Firefox.
Use the following policy directives to enable CSP that is compatible with twilio-client.js.
script-src https://media.twiliocdn.com https://sdk.twilio.com
media-src mediastream https://media.twiliocdn.com https://sdk.twilio.com
connect-src https://eventgw.twilio.com wss://chunderw-vpc-gll.twilio.com https://media.twiliocdn.com https://sdk.twilio.com
If you are providing a non-default value for Device.Options.edge
or Device.Options.region
parameter, you need to add the Signaling URI wss://chunderw-vpc-gll-{regionId}.twilio.com
in your connect-src
directive where regionId
is the Region ID
as defined in this page. See examples below.
If Device.Options.region
is us1
connect-src https://eventgw.twilio.com https://media.twiliocdn.com https://sdk.twilio.com wss://chunderw-vpc-gll-us1.twilio.com
If Device.Options.edge
is ashburn
connect-src https://eventgw.twilio.com https://media.twiliocdn.com https://sdk.twilio.com wss://chunderw-vpc-gll-us1.twilio.com
If Device.Options.edge
is ['ashburn', 'sydney', 'roaming']
connect-src https://eventgw.twilio.com https://media.twiliocdn.com https://sdk.twilio.com wss://chunderw-vpc-gll-us1.twilio.com wss://chunderw-vpc-gll-au1.twilio.com wss://chunderw-vpc-gll.twilio.com
See LICENSE.md
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 16/30 approved changesets -- score normalized to 5
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
82 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More