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

@tinycloudlabs/web-sdk

v0.2.1

Published

A set of tools and utilities to help you build your app with TinyCloud.

Downloads

214

Readme

TinyCloud Web SDK

The TinyCloud Web SDK provides all the tools you need to build decentralized web applications with TinyCloud.

npm version license

Features

  • Decentralized Storage - Store and retrieve data using TinyCloud's storage protocol
  • Web3 Authentication - Sign-in with Ethereum (SIWE) integration
  • Wallet Integration - Seamless connection with popular Ethereum wallets
  • Type Safety - Written in TypeScript with comprehensive type definitions
  • Easy to Use - Simple API for common decentralized application needs

Installation

# Using npm
npm install @tinycloudlabs/web-sdk

# Using Yarn
yarn add @tinycloudlabs/web-sdk

# Using Bun (recommended)
bun add @tinycloudlabs/web-sdk

Quick Start

import { TinyCloudWeb } from '@tinycloudlabs/web-sdk';

// Initialize the SDK
const tc = new TinyCloudWeb();

// Connect to the user's wallet
await tc.connect();

// Use storage
const storage = tc.storage;
await storage.put('myKey', { hello: 'world' });
const result = await storage.get('myKey');
console.log(result.data); // { hello: 'world' }

Basic Storage Operations

Storing Data

// Store a simple object
await storage.put('user/profile', {
  name: 'Alice',
  email: '[email protected]',
  preferences: {
    theme: 'dark',
    notifications: true
  }
});

// Store a string
await storage.put('messages/welcome', 'Welcome to the app!');

// Store binary data (as a Uint8Array)
const binaryData = new Uint8Array([0x00, 0x01, 0x02, 0x03]);
await storage.put('files/data.bin', binaryData);

Retrieving Data

// Get an object
const profileResponse = await storage.get('user/profile');
const profile = profileResponse.data;
console.log(`User name: ${profile.name}`);

// Get a string
const messageResponse = await storage.get('messages/welcome');
console.log(messageResponse.data); // "Welcome to the app!"

Listing Data

// List all keys under 'user/'
const userKeysResponse = await storage.list({
  path: 'user',
  removePrefix: true // Remove the prefix from the returned keys
});

const userKeys = userKeysResponse.data;
console.log('User keys:', userKeys); // ['profile', ...]

Deleting Data

// Delete a single key
await storage.delete('messages/welcome');

// Delete all data under a prefix
await storage.deleteAll('user');

Core Values

TinyCloud is built on these fundamental principles:

  • Sovereignty - Built so that each user controls their data outright. Requests to access or compute on that data must be explicitly permissioned.
  • Privacy - Data is stored, streamed, and computed upon in ways that minimize leakage with encryption strategies that ensure users do not need to trust an external party.
  • Interoperability - Embracing artifact-based formats like Markdown, JSON Canvas, CSV, and SQLite so that data remains portable and future-proof.
  • Open Innovation - We view AI's rapid growth as an opportunity to endow individuals with new capabilities—before these capabilities are seized exclusively by large institutions.

Documentation

For complete documentation, please visit:

Examples

Check out our examples directory for complete working examples of TinyCloud SDK integration.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

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

Support

If you encounter any issues or have questions, please file an issue on our GitHub repository.

Community

Join the TinyCloud community: