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

see-sdk

v1.1.1

Published

A TypeScript SDK for s.ee which is a content sharing service

Readme

S.EE Typescript SDK

A TypeScript SDK for the S.EE content sharing platform, supporting URL shortening, text sharing, and file sharing.

Installation

npm i see-sdk
# or
pnpm i see-sdk

For more information, visit the npm page: https://www.npmjs.com/package/see-sdk

Quick Start

import { SeeSDK } from 'see-sdk';

const sdk = new SeeSDK({
  baseUrl: 'https://s.ee/api/v1', // optional, defaults to 'https://s.ee/api/v1'
  apiKey: 'your-api-key'
});

Modules

The SDK is organized into modules for different content types:

  • sdk.url: URL Shortening operations
  • sdk.text: Text Sharing operations
  • sdk.file: File Sharing operations

(Note: Older top-level methods like sdk.create are deprecated but still supported for backward compatibility)

URL Shortener

See examples/url-shortener.ts for a complete example.

const result = await sdk.url.create({
  domain: 'ba.sh',
  target_url: 'https://example.com',
  custom_slug: 'my-link'
});

Text Sharing

See examples/text-sharing.ts for a complete example.

const result = await sdk.text.create({
  content: 'Shared text content',
  title: 'My Title'
});

File Sharing

See examples/file-sharing.ts for a complete example.

// Requires FormData (e.g. 'form-data' package in Node.js)
const result = await sdk.file.upload(formData);
## API Reference

### SeeSDK

#### Constructor

```typescript
new SeeSDK(config: SdkConfig)

Parameters:

| Name | Type | Default | | ------- | ------ | --------------------- | | baseUrl | string | 'https://s.ee/api/v1' | | apiKey | string | Required | | timeout | number | 10000 |

URL Methods (sdk.url)

  • create(request: UrlShortenRequest): Promise<UrlShortenResponse>
  • update(request: UrlShortenUpdateRequest): Promise<UrlShortenResponse>
  • delete(request: UrlShortenDeleteRequest): Promise<UrlShortenResponse>
  • listDomains(): Promise<DomainListResponse>
  • listTags(): Promise<TagsResponse>

Text Methods (sdk.text)

  • create(request: TextCreateRequest): Promise<TextCreateResponse>
  • update(request: TextUpdateRequest): Promise<TextActionResponse>
  • delete(request: TextDeleteRequest): Promise<TextActionResponse>
  • listDomains(): Promise<TextDomainListResponse>

File Methods (sdk.file)

  • upload(file: any, options?: any): Promise<FileUploadResponse>
  • delete(id: string): Promise<FileDeleteResponse>
  • listDomains(): Promise<FileDomainListResponse>

Error Handling

See examples/error-handling.ts for detailed error handling scenarios.

import { ValidationError, NetworkError, SeeServiceError } from 'see-sdk';

try {
  await sdk.url.create({ ... });
} catch (error) {
  if (error instanceof ValidationError) {
    // Check your input
  } else if (error instanceof NetworkError) {
    // Check your connection
  } else if (error instanceof SeeServiceError) {
    // Check API response
  }
}

License

This repository is licensed under the MIT License, for more information, see the LICENSE file.