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 🙏

© 2026 – Pkg Stats / Ryan Hefner

cloud-pc-templates-sdk

v3.7.0

Published

<img width="1565" height="557" alt="image" src="https://github.com/user-attachments/assets/2f864b40-89ff-41ef-8e20-70f376102830" />

Readme

cloud-pc-templates-sdk to interact with the running login modes, vectordb and agents

Steps:

  1. Launch a login mode:
npx cloud-pc-templates ai login loginMode ollamalocal
  1. Create a new project and install the dependency
mkdir new-app
cd new-app
npm init -y
npm install cloud-pc-templates-sdk
  1. Then implement the code in index.js
let { Sdk }  = require("cloud-pc-templates-sdk");
async function main() {
    let sdk = new Sdk("ollamalocal");
    let response = await sdk.chat("Hello");
    console.log(response);
}
main();

or for streaming

let { Sdk }  = require("cloud-pc-templates-sdk");
async function main() {
    let sdk = new Sdk("ollamalocal");
    await sdk.chat("Hello",null,(token) => {
        process.stdout.write(token);
    });
}
main();

The second argument for sdk.chat() is model id passing that null takes the first model from the list of model returned by the login mode.

For vector db use below steps

  1. Start vector db
npx cloud-pc-templates@latest ai agents startVectorDb
  1. Create new app add dependency
mkdir new-app
cd new-app
npm init -y
npm install cloud-pc-templates-sdk
  1. create index.js with below content
let { Sdk }  = require("cloud-pc-templates-sdk");
async function main() {
    let sdk = new Sdk("ollamalocal");
    let response1 = await sdk.getVectorDbApiDocSuggestion("Create a java application");
    console.log("vector db suggestion",response1);
    let response2 = await sdk.getVectorDbApiDocSuggestion("Create a java application","text");
    console.log("vector db suggestion text",response2);
}
main();

For agents use the following

  1. Start all agents
npx cloud-pc-templates ai agents startAllOn linux

or for windows

npx cloud-pc-templates@latest ai agents startAllOn docker
  1. Create new app add dependency
mkdir new-app
cd new-app
npm init -y
npm install cloud-pc-templates-sdk
  1. create agents.js with below content and run
let { Sdk }  = require("cloud-pc-templates-sdk");
async function main() {
    let sdk = new Sdk("ollamalocal");
    let health = await sdk.getAllAgents().healthcheck();
    console.log("Agents Health", health);
    let agent = sdk.getAgentById('web-explorer');
    let apiDoc = await agent.getApiDoc();
    console.log("Agent API Doc", apiDoc);
    let agentApiHitInsights = await agent.getApiHitInsights();
    console.log("Agent API Insights", agentApiHitInsights);
}
main();

output:

Added 'sdk.callAgent' to call an agent with a prompt, the first argument here is the model-id and second one is the prompt. Model ids can be found in agents.mjs

Steps:

  1. Start any loginmode, e.g. ollamacloud
    npx cloud-pc-templates ai login loginMode ollamacloud
  2. Start all agents
    npm cloud-pc-templates ai agents startAllOn linux
    Or for windows, run the below
    npm cloud-pc-templates ai agents startAllOn docker
  3. Start the vector db
    npx cloud-pc-templates ai agents startVectorDb
  4. create a new app and in it create an agentcall.js like below
    mkdir new-app
    cd new-app
    npm init -y
    npm install cloud-pc-templates-sdk
    File content:
    let { Sdk } = require("cloud-pc-templates-sdk");
    async function main() {
        let sdk = new Sdk("ollamacloud");
        sdk.setSelectedModel("gpt-oss:120b");
        let agentResponse = await sdk.callAgent(
            'playwright connector',
            'Go to https://cloud-pc-templates.com/ and tell me what all you see'
        );
        console.log(agentResponse);
    }
    main();

Sample output:

Latest addition is orchestrator api(chatAgentMode function), try it with steps below:

  mkdir new-app
  cd new-app
  npm init -y
  npm install cloud-pc-templates-sdk

File content:

llet { Sdk }  = require("cloud-pc-templates-sdk");
async function main() {
 let sdk = new Sdk("ollamacloud");
 sdk.setSelectedModel('gpt-oss:120b');
 let response = await sdk.chatAgentMode("create an spring java project with test apis",(whatIsBeingDone)=>{
     console.log("I am asking the agent to ",whatIsBeingDone);
 });
 console.log(response);
 let history = sdk.getChatHistory();
 console.log(history);
}
main();

Sample output: