Skip to content

richpeniche/examples

 
 

Repository files navigation

Anon

Anon Examples

This repository accompanies Anon's setup guides at the Anon docs.

Setup

To run these examples, you'll need credentials from Anon. You can request access here.

To get started, clone the repository.

git clone https://github.com/anon-dot-com/examples.git && cd ./examples

Environment Variables

Each sample has a .env.template file that you should copy to a new file called .env in the same directory. Fill in the environment variables with the credentials Anon provided you.

At minimum, the .env file should have the following variables:

ANON_ENV=sandbox
NPM_TOKEN=...
ANON_API_KEY=...

ANON_SDKCLIENT_ID=...
ANON_APP_USER_ID_TOKEN=...
ANON_APP_USER_ID=...

Then, source the .env file.

source .env

NOTE: .env files are a convenient local development tool. Never run a production application using an environment file with secrets in it.

Testing

You can quickly test out Anon by connecting a user session (examples prefixed connect-*), then running a user session (examples prefixed run-*).

For example, run our Web Link - React example, followed by our Backend SDK - Typescript example. You could tweak the Typescript example with your own Playwright sessions to test Anon for your use case.

To try out an example, cd into one of the folders and follow the instructions in the corresponding README. Enjoy!

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 71.4%
  • Swift 13.0%
  • JavaScript 6.1%
  • Vue 4.5%
  • HTML 3.2%
  • Just 1.8%