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

warlot-sdk

v1.0.0

Published

TypeScript SDK for the Walrus decentralized backend platform

Downloads

4

Readme

@warlot/sdk

A TypeScript SDK for interacting with the Walrus decentralized backend platform. This SDK is designed to simplify the process of building applications that leverage Walrus's decentralized storage and compute capabilities.

This SDK is configured to use the testnet and sends all blobs, objects, and data to the address 0x1cb9d68b284e49c41e576b3c3933269ab39cd0eb0268616ac1ea4a5ba57a15de.

Features

  • Create and manage projects
  • Define tables with custom schemas
  • Query data using SQL-like syntax
  • Upload and manage files in storage buckets
  • Built-in TypeScript support
  • Promise-based API

Installation

npm install @warlot/sdk
# or
yarn add @warlot/sdk

Quick Start

import { 
  createProject, 
  getProjects,
  getProjectById,
  createTable, 
  insertRow, 
  queryTable 
} from '@warlot/sdk';

// Create a project
const project = await createProject('My App', '0x1cb9d68b284e49c41e576b3c3933269ab39cd0eb0268616ac1ea4a5ba57a15de');

// Create a table
const table = await createTable(project.id, 'users', [
  { name: 'id', type: 'string' },
  { name: 'name', type: 'string' },
  { name: 'email', type: 'string' }
], '0x1cb9d68b284e49c41e576b3c3933269ab39cd0eb0268616ac1ea4a5ba57a15de');

// Insert data
await insertRow(project.id, 'users', {
  id: '1',
  name: 'John Doe',
  email: '[email protected]'
}, '0x1cb9d68b284e49c41e576b3c3933269ab39cd0eb0268616ac1ea4a5ba57a15de');

// Query data
const users = await queryTable(project.id, 'SELECT * FROM users', '0x1cb9d68b284e49c41e576b3c3933269ab39cd0eb0268616ac1ea4a5ba57a15de');

API Reference

Projects

createProject(name: string, sendTo: string): Promise<Project>

Creates a new project.

getProjects(sendTo: string): Promise<Project[]>

Lists all projects.

getProjectById(projectId: string, sendTo: string): Promise<Project>

Gets a specific project by ID.

Tables

createTable(projectId: string, tableName: string, columns: Column[], sendTo: string): Promise<Table>

Creates a new table in a project.

getTables(projectId: string, sendTo: string): Promise<Table[]>

Lists all tables in a project.

insertRow(projectId: string, tableName: string, row: Row, sendTo: string): Promise<void>

Inserts a new row into a table.

queryTable(projectId: string, sqlQuery: string, sendTo: string): Promise<Row[]>

Executes a SQL query on a table.

Storage

createBucket(projectId: string, bucketName: string, sendTo: string): Promise<Bucket>

Creates a new storage bucket.

getBuckets(projectId: string): Promise<Bucket[]>

Lists all buckets in a project.

uploadToBucket(projectId: string, bucketName: string, file: File | Blob, sendTo: string): Promise<string>

Uploads a file to a bucket. Returns the file URL.

downloadFromBucket(projectId: string, bucketName: string, fileName: string, sendTo: string): Promise<Blob>

Downloads a file from a bucket.

deleteFile(projectId: string, bucketName: string, fileName: string, sendTo: string): Promise<void>

Deletes a file from a bucket.

Development

  1. Clone the repository
git clone https://github.com/yourusername/walrus-sdk.git
cd walrus-sdk
  1. Install dependencies
npm install
  1. Build the SDK
npm run build
  1. Run tests
npm test
  1. Run example
npm run example

Testing

The SDK includes a comprehensive test suite:

# Run all tests
npm test

# Run tests in watch mode
npm run test:watch

Publishing

To publish this SDK to npm under the name @warlot/sdk, you will need to:

  1. Update the package.json file with the correct version number.
  2. Run npm run build to build the SDK.
  3. Run npm publish --access public to publish the SDK to npm.

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.