Skip to content

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

License

Notifications You must be signed in to change notification settings

superfaceai/one-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.