
Security News
AI Agent Lands PRs in Major OSS Projects, Targets Maintainers via Cold Outreach
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.
CMCD (Common Media Client Data) library with Typescript definitions.
npm i cmcd.js
All CMCD properties are optional. Properties that with nullish values will not be serialized.
import {
Cmcd,
CmcdHeaader,
CmcdObjectType,
CmcdStreamingFormat,
CmcdStreamType,
toHeaders,
toJson,
toQuery
} from 'cmcd.js';
const data: Cmcd = {
cid: '9f7f349b-baba-43d7-bbe7-b0dc8a65af0d',
sf: CmcdStreamingFormat.DASH,
st: CmcdStreamType.VOD,
su: false,
mtp: 10000,
bs: true,
br: 200,
ot: CmcdObjectType.MANIFEST,
};
const query = toQuery(data);
console.log(query);
/*
'CMCD=br%3D200%2Cbs%2Cmtp%3D10000%2Cot%3Dm%2Csf%3Dd%2Ccid%3D%229f7f349b-baba-43d7-bbe7-b0dc8a65af0d%22%2Cst%3Dv'
*/
const headers = toHeaders(data);
console.log(headers);
/*
{
'CMCD-Object': 'br=200,ot=m',
'CMCD-Request': 'mtp=10000',
'CMCD-Session': 'sf=d,cid="9f7f349b-baba-43d7-bbe7-b0dc8a65af0d",st=v',
'CMCD-Status': 'bs',
}
*/
const json = toJson(data);
console.log(json);
/*
'{"mtp":10000,"su":false,"br":200,"ot":"m","sf":"d","cid":"9f7f349b-baba-43d7-bbe7-b0dc8a65af0d","st":"v","bs":true}'
*/
/* Custom Fields */
data['com.example-a'] = 'hello';
data['com.example-b']: 1234;
data['com.example-c']: true;
data['com.example-d']: Symbol('s');
const headerMap = {
['com.example-a']: CmcdHeader.Object,
['com.example-b']: CmcdHeader.Session,
['com.example-c']: CmcdHeader.Status,
// Unmapped custom fields are added to the CMCD-Request header
};
const headers = toHeaders(data, headerMap);
console.log(headers);
/*
{
'CMCD-Object': 'br=200,com.example-a="hello",ot=m',
'CMCD-Request': 'mtp=10000',
'CMCD-Session': 'cid="9f7f349b-baba-43d7-bbe7-b0dc8a65af0d",com.example-b=1234,sf=d,st=v',
'CMCD-Status': 'bs,com.example-c',
}
*/
https://littlespex.github.io/cmcd.js/
FAQs
CMCD (Common Media Client Data) library with Typescript definitions
The npm package cmcd.js receives a total of 0 weekly downloads. As such, cmcd.js popularity was classified as not popular.
We found that cmcd.js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.

Research
/Security News
Chrome extension CL Suite by @CLMasters neutralizes 2FA for Facebook and Meta Business accounts while exfiltrating Business Manager contact and analytics data.

Security News
After Matplotlib rejected an AI-written PR, the agent fired back with a blog post, igniting debate over AI contributions and maintainer burden.