
Research
Security News
The Landscape of Malicious Open Source Packages: 2025 Mid‑Year Threat Report
A look at the top trends in how threat actors are weaponizing open source packages to deliver malware and persist across the software supply chain.
@cocalc/api-client
Advanced tools
Here's an example of how to use this API to connect to a project and do some basic things. This communicates via HTTP via the nextjs api.
NOTE: This is very new and not used by anything yet.
Set some environment variables. You'll have to get the API_KEY from the settings of your project.
export PROJECT_ID=6640ddad-4bdd-4745-8e63-8db74686a20e
export API_KEY=sk-FcnRs3NxsTZROgbF000001
export API_SERVER=http://localhost:9001
The run code in node from the shell in the current directory:
> a = require('@cocalc/api-client')
> await a.project.exec({project_id:process.env.PROJECT_ID, command:'ls -a'})
> await a.project.jupyterExec({project_id:process.env.PROJECT_ID, kernel:'python3-ubuntu', input:"import os; print('hi'*100, os.getpid())"})
FAQs
CoCalc api client - use cocalc from nodejs
The npm package @cocalc/api-client receives a total of 0 weekly downloads. As such, @cocalc/api-client popularity was classified as not popular.
We found that @cocalc/api-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Research
Security News
A look at the top trends in how threat actors are weaponizing open source packages to deliver malware and persist across the software supply chain.
Security News
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.