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

@lovable.dev/sdk

v0.0.2

Published

TypeScript SDK for the Lovable API

Readme

@lovable.dev/sdk

TypeScript SDK for the Lovable API.

Currently in preview.

Installation

npm install @lovable.dev/sdk

Usage

import { LovableClient } from "@lovable.dev/sdk";

const client = new LovableClient({
  apiKey: "lov_your-api-key",
});

// List workspaces
const workspaces = await client.listWorkspaces();
console.log(workspaces);

// Create a project
const project = await client.createProject(workspaces[0].id, {
  description: "A todo app with authentication",
  visibility: "private",
  initialMessage: "Create a simple todo app with user authentication",
});
console.log("Created project:", project.id);

// Wait for project to be ready (status = "completed")
const readyProject = await client.waitForProjectReady(project.id, {
  onProgress: (p) => console.log(`Status: ${p.status}`),
});

// Send a chat message to an existing project
await client.chat(readyProject.id, {
  message: "Add a dark mode toggle to the app",
});

// Wait for project to be published/deployed
const published = await client.waitForProjectPublished(project.id);
console.log("Live at:", published.url);

// Invite a collaborator to a workspace
await client.inviteCollaborator(workspaces[0].id, {
  email: "[email protected]",
  role: "member",
});

API Reference

LovableClient

Constructor

new LovableClient(options: LovableClientOptions)
  • apiKey (required): Your Lovable API key
  • baseUrl (optional): Override the default API base URL

Methods

listWorkspaces(): Promise<WorkspaceWithMembership[]>

List all workspaces the authenticated user has access to.

getWorkspace(workspaceId: string): Promise<WorkspaceWithMembership>

Get a specific workspace by ID.

listProjects(workspaceId: string, options?): Promise<ProjectResponse[]>

List projects in a workspace.

Options:

  • limit (optional): Maximum number of projects to return
  • visibility (optional): Filter by visibility ("all" | "personal" | "public" | "workspace")
createProject(workspaceId: string, options): Promise<ProjectResponse>

Create a new project in a workspace.

Options:

  • description (required): Project description
  • techStack (optional): Technology stack (e.g., "react")
  • visibility (optional): Project visibility ("draft" | "private" | "public")
  • templateProjectId (optional): ID of a template project to clone
  • initialMessage (optional): Initial chat message to send to the AI agent
chat(projectId: string, options): Promise<void>

Send a chat message to a project's AI agent.

Options:

  • message (required): The message to send
  • chatOnly (optional): If true, only chat without making code changes

Note: This is an asynchronous operation. The API accepts the message and processes it in the background.

inviteCollaborator(workspaceId: string, options): Promise<WorkspaceMembershipResponse>

Invite a user to a workspace.

Options:

  • email (required): Email address of the user to invite
  • role (optional): Role to assign ("admin" | "collaborator" | "member" | "viewer")
listWorkspaceMembers(workspaceId: string): Promise<WorkspaceMembershipResponse[]>

List all members of a workspace.

removeWorkspaceMember(workspaceId: string, userId: string): Promise<void>

Remove a member from a workspace.

getProject(projectId: string): Promise<ProjectResponse>

Get project details by ID.

waitForProjectReady(projectId: string, options?): Promise<ProjectResponse>

Wait for a project to reach "completed" status. Projects start in "in_progress" status while being created/built.

Options:

  • pollInterval (optional): Time between polls in ms (default: 2000)
  • timeout (optional): Maximum time to wait in ms (default: 300000 = 5 minutes)
  • onProgress (optional): Callback for status updates

Throws an error if the project fails or timeout is reached.

waitForProjectPublished(projectId: string, options?): Promise<ProjectResponse>

Wait for a project to be published (deployed) and have a live URL.

Options:

  • pollInterval (optional): Time between polls in ms (default: 3000)
  • timeout (optional): Maximum time to wait in ms (default: 600000 = 10 minutes)
  • onProgress (optional): Callback for status updates

Throws an error if timeout is reached.

Types

The SDK exports TypeScript types for all API responses. See src/types.ts for the full list.

import type {
  WorkspaceWithMembership,
  ProjectResponse,
  CreateProjectOptions,
  // ... etc
} from "@lovable.dev/sdk";