Go to file
Roj Serbest 8a224fe614 Delete TASKS.md 2021-11-18 15:02:30 +03:00
.vscode `cursor` => `page` 2021-10-22 20:24:02 +03:00
examples Fix response types of some timeline methods and add `unlike` 2021-11-05 17:48:08 +03:00
generators Deno lint 2021-11-18 15:01:55 +03:00
socialvoid Deno lint 2021-11-18 15:01:55 +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
deno.json Reformat files 2021-10-29 11:08:21 +03:00
package-lock.json 0.0.0-alpha.8 2021-11-11 20:19:44 +03:00
package.json 0.0.0-alpha.8 2021-11-11 20:19:44 +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/.