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

codevf-js-sdk

v0.0.1

Published

A modular TypeScript SDK for integrating with the CodeVF API. Submit tasks for human review, manage projects, track credits, and leverage engineer expertise levels.

Readme

CodeVF JS SDK

A modular TypeScript SDK for integrating with the CodeVF API. Submit tasks for human review, manage projects, track credits, and leverage engineer expertise levels.

Features

  • Project Management - Create and organize projects for grouping API tasks
  • Task Submission - Submit tasks for human engineer review with customizable service levels
  • Credit System - Monitor your credit balance and usage across tasks
  • Engineer Expertise - Select engineer expertise levels with cost multipliers
  • File Attachments - Attach screenshots, logs, code files, and documents to tasks
  • Comprehensive Error Handling - Typed error classes for all HTTP status codes and failure modes

Quick Start

Installation

bun install

Basic Usage

import { createClient, createProject, createTask } from 'codevf-js-sdk';

// Initialize the SDK
const client = createClient({ apiKey: 'your-api-key' });

// Create a project
const project = await createProject(client, {
  name: 'My API Project',
  description: 'Project for API integration'
});

// Submit a task for review
const task = await createTask(client, {
  prompt: 'Review this authentication system',
  projectId: project.id,
  maxCredits: 100,
  mode: 'fast'
});

// Check task status
const status = await getTask(client, task.id);

// Check credit balance
const balance = await getBalance(client);

Architecture

The SDK follows a modular architecture with strict separation between internal core logic and public API modules:

  • Core (/src/core) - Internal HTTP client, authentication, error handling, and configuration
  • Modules (/src/modules) - Public feature domains: projects, tasks, credits, tags
  • Types (/src/types) - Shared TypeScript interfaces used across modules

API Reference

Projects

  • createProject(client, data) - Create a new project for grouping tasks

Tasks

  • createTask(client, data) - Submit a task for human engineer review
  • getTask(client, taskId) - Retrieve task status and results
  • cancelTask(client, taskId) - Cancel a pending or in-progress task

Credits

  • getBalance(client) - Check current credit balance, available and on-hold amounts

Tags

  • getTags(client) - Get available engineer expertise levels with cost multipliers

Error Handling

The SDK provides typed error classes for granular error handling:

  • BadRequestError (400) - Invalid parameters or malformed request
  • AuthError (401) - Invalid or missing API key
  • InsufficientCreditsError (402) - Not enough credits to complete task
  • NotFoundError (404) - Resource not found or access denied
  • ConflictError (409) - Idempotency conflict
  • PayloadTooLargeError (413) - Request exceeds size limit
  • RateLimitError (429) - Rate limit exceeded
  • ServerError (500) - Internal server error
  • NetworkError - Connection or timeout issues

Running Tests

bun test

Tests are organized in /tests directory with the same structure as source code. Uses vitest for testing framework.

Development

This project uses Bun as the runtime and build tool:

  • bun run index.ts - Execute main entry point
  • bun test - Run test suite
  • bun docs - Generate TypeDoc documentation

Requirements

  • Bun v1.3.6+
  • TypeScript 5+

License

MIT