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

@devlider001/washlab-backend

v1.1.51

Published

Washlab backend - Convex API package for Lider Technology Ltd

Readme

Washlab Backend

Convex backend package for Washlab. This package provides type-safe access to all Convex functions, mutations, queries, and data models.

Installation

yarn add @lider-technology-ltd/washlab-backend
# or
npm install @lider-technology-ltd/washlab-backend
# or
pnpm add @lider-technology-ltd/washlab-backend

Prerequisites

This package requires convex to be installed in your client application:

yarn add convex
# or
npm install convex

Usage

React/Next.js (Recommended)

import { ConvexProvider, ConvexReactClient } from "convex/react";
import { api } from "@lider-technology-ltd/washlab-backend";

// Initialize the Convex client with your deployment URL
const convex = new ConvexReactClient(process.env.NEXT_PUBLIC_CONVEX_URL!);

function App() {
  return (
    <ConvexProvider client={convex}>
      {/* Your app components */}
      <MyComponent />
    </ConvexProvider>
  );
}

// In your components
import { useQuery, useMutation } from "convex/react";
import { api } from "@lider-technology-ltd/washlab-backend";

function MyComponent() {
  // Use queries
  const users = useQuery(api.users.list, {});
  
  // Use mutations
  const createUser = useMutation(api.users.create);
  
  return (
    <div>
      {/* Your UI */}
    </div>
  );
}

HTTP Client (Node.js/Server-side)

import { ConvexHttpClient } from "convex/browser";
import { api } from "@lider-technology-ltd/washlab-backend";

const convex = new ConvexHttpClient(process.env.CONVEX_URL!);

// Use queries
const users = await convex.query(api.users.list, {});

// Use mutations
const userId = await convex.mutation(api.users.create, {
  email: "[email protected]",
  password: "securepassword"
});

Direct API Type Import

You can also import types directly:

import type { api } from "@lider-technology-ltd/washlab-backend";
import type { Doc, Id } from "@lider-technology-ltd/washlab-backend";

// Use the types for type-safe function references
type User = Doc<"users">;
type UserId = Id<"users">;

Alternative Import Paths

You can also import from specific paths:

// Import API types only
import type { api } from "@lider-technology-ltd/washlab-backend/api";

// Import data model types only
import type { DataModel, Doc, Id } from "@lider-technology-ltd/washlab-backend/dataModel";

Environment Variables

Make sure to set your Convex deployment URL:

# For browser/client applications
NEXT_PUBLIC_CONVEX_URL=https://your-deployment.convex.cloud

# For server-side applications
CONVEX_URL=https://your-deployment.convex.cloud

You can get your deployment URL from the Convex Dashboard.

Type Safety

All function references, arguments, and return types are fully typed. TypeScript will provide autocomplete and type checking for:

  • Function names (queries, mutations, actions)
  • Function arguments
  • Return types
  • Document types from your schema
  • ID types for each table

Development

To build this package:

yarn build

To publish to npm:

npm publish

Note: While this package uses yarn for development, you still use npm publish to publish to the npm registry.

License

ISC