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 🙏

© 2025 – Pkg Stats / Ryan Hefner

unico-js

v0.1.0

Published

A Javascript library to interact with the UNICO API.

Readme

UNICO JavaScript Library

A JavaScript library to interact with the UNICO API. This library allows developers to easily integrate their applications with the UNICO platform by providing a simple interface to the available API endpoints. With just an API key, users can authenticate and start interacting with UNICO services, including retrieving available agents, add contexts and generating completions.

Getting Started

npm i unico-js

Create a client

  • Default environment (production):
const client = new UnicoClient("your-unico-api-key");
  • Point to another UNICO environment (develop purpouses only):
const client = new UnicoClient("your-unico-api-key", "your-unico-api-base-url");

Retrieve your agents

const agents: Agent[] = await client.agents.retrieve();
console.log(agents);

Create a completion

const completion: Completion = await client.agents.completions.create("agent-id", "Hello World!");
console.log(completion);

Add contexts to an agent

await client.agents.contexts.create("agent-id", ["context 1", "context 2"]);

Development

  • Install nvm (node version manager):

  • Use the same node version from the .nvmrc file:

    • For Windows:
      nvm use $(Get-Content .nvmrc)
    • For Other Systems:
      nvm use
  • Install the necessary packages:

    npm install

Before pushing

  1. See if you have any rebase to do (you must have the updated commits history before pushing to avoid conflicts between main and your branch):
git fetch
git pull origin main --rebase
  1. Dry run npm publish to check if your code will be deployed:
npm publish --dry-run
  1. Check for vulnerabilities to avoid security issues:
npm audit --audit-level=high
  1. Lint your code to avoid ESLint errors (if the following command return errors or warnings you must resolve them before pushing):
npm run lint
  1. Update the library version based on your changes (make sure to commit the changes before running the following command):
npm version patch

Contributing

If you want to contribute to UNICO JavaScript Library, follow these steps:

  1. Create a new branch for your changes (git checkout -b your-branch-name).
  2. Make your changes and commit them (git commit -m 'Changed something').
  3. Push your branch (git push origin your-branch-name).
  4. Open a pull request.

Contact

For more information, contact the UNICO support team at: [email protected]