superfaceai / one-sdk

1️⃣ OneSDK for all the APIs you want to integrate with

Home Page:https://superface.ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Website | Get Started | Documentation | GitHub Discussions | Twitter | Support

Superface

Superface OneSDK

One SDK for all the APIs you want to integrate with.

GitHub Workflow Status license GitHub Discussions

This is a new implementation of OneSDK for Node.js using WebAssembly under the hood. Which allows us to give users OneSDK in their favorite language.

For more details about Superface, visit How it Works and Get Started.

Try it out

A simple demonstration can be run with ./examples/run.sh node. It builds the entire project and Node.js host, then runs the example.

This will require to have Development requirements installed. In case of building the core in Docker node and yarn are still required.

Environment variables

The OneSDK uses these environment variables:

  • ONESDK_LOG=on - controls logging intended for users. Values 1, on, yes and true are recognized as positive.
  • ONESDK_REGISTRY_URL=http://localhost:8321 - Superface registry base URL
  • ONESDK_CONFIG_CACHE_DURATION=3600 - duration in seconds of how long to cache documents (profiles, maps, providers) before downloading or reading them from the file system again
  • ONESDK_CONFIG_DEV_DUMP_BUFFER_SIZE=1048576 - size of the developer log dump ring buffer
  • ONESDK_DEV_LOG=off - controls the level of logging intended for developers. Set to trace to see everything that is logged, including user log and metrics. See tracing_subscriber directives for full syntax.

Supported languages

Contributing

We welcome all kinds of contributions! Please see the Contribution Guide to learn how to participate.

License

OneSDK is licensed under the MIT License.

© 2023 Superface s.r.o.

About

1️⃣ OneSDK for all the APIs you want to integrate with

https://superface.ai

License:MIT License


Languages

Language:Rust 51.2%Language:TypeScript 39.4%Language:Python 7.3%Language:Makefile 1.1%Language:JavaScript 0.5%Language:Shell 0.2%Language:Dockerfile 0.2%