Go to file
Roj Serbest b5af21488b `cursor` => `page` 2021-10-22 20:24:02 +03:00
.vscode `cursor` => `page` 2021-10-22 20:24:02 +03:00
examples Add upload stream example for Deno 2021-10-15 13:14:02 +03:00
generators Add `RelationshipType` & renegerate types 2021-10-18 19:31:28 +03:00
socialvoid `cursor` => `page` 2021-10-22 20:24:02 +03:00
.gitignore Update .gitingnore 2021-10-11 13:13:18 +03:00
.npmignore Update `.npmignore` 2021-10-18 09:52:53 +03:00
README.md Update README 2021-10-18 19:02:54 +03:00
TASKS.md Create TASKS.md 2021-10-21 20:18:20 +03:00
deno.json Add deno config 2021-10-15 12:20:20 +03:00
package-lock.json 0.0.0-alpha.1 2021-10-18 10:24:26 +03:00
package.json Change version 2021-10-21 20:11:20 +03:00
tsconfig.json In-progress Node backport 2021-10-10 15:00:20 +03:00
webpack.config.js Support Webpack 2021-10-10 15:25:19 +03:00

README.md

SocialvoidJS

Deno, Node.js and browser Socialvoid client.

Introduction

SocialvoidJS is a Deno Socialvoid client which is backported to Node.js using the tool deno2node. Also, it can be bundled for browsers using the bundle command of Deno or with Webpack.

Features

  • Everything works on Node.js, Deno and browsers (2 ways).
  • Multiple ways to store session and other data: MemoryStore, FileStore, LocalStorageStore and the ones you define!
  • Typings for Socialvoid types.
  • Most thrown errors can be used with instanceof.
  • CDN upload and download support.
  • Account, Cloud, Help and Network methods.
  • Capability of sending raw requests.

Bundling for browsers

npm run bundle:deno

Method 2: Webpack

npm run build

Using with Next.js

SocialvoidJS can be used with Next.js, with the following configuration:

{
  webpack: (config) => {
    if (typeof config.resolve.fallback !== "undefined") {
      config.resolve.fallback.fs = false;
    }

    return config;
  },
}

React.js support is untested, but should work if you can configure Webpack like mentioned in above.

Examples

See examples/.