Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

204 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BetterContext Library

Example script tag:

<script 
  src="/web-asset-proxy?u=aHR0cHM6Ly9naXRodWIuY29tL2ZsaXB0YWJsZXMvQmV0dGVyQ29udGV4dC5qcw.fabc10202e4b3e3637aadc897720b08cd2919358&v=20260725-2" 
  data-bc-user="[email protected]"
  data-bc-api="1c4f5fd4-e7a9-4d2b-a4db-b6191e5fbe75">
</script>
  • data-bc-user - the current better context user id
  • data-bc-api - your better context api key

Auto mode example script:

<script 
  src="/web-asset-proxy?u=aHR0cHM6Ly9naXRodWIuY29tL2ZsaXB0YWJsZXMvQmV0dGVyQ29udGV4dC5qcw.fabc10202e4b3e3637aadc897720b08cd2919358&v=20260725-2" 
  data-bc-user="[email protected]"
  data-bc-auto
  data-bc-api="1c4f5fd4-e7a9-4d2b-a4db-b6191e5fbe75">
</script>

  • data-bc-auto - enabled auto bootstrap of charts

BetterContext auto chart elements

<div 
  data-bc-chart="pentagon" 
  data-bc-id="SOME_ID">
</div>

Development

There are three scripts which can be used while working on the BetterContext JavaScript code.

  • script/setup - installs all dependencies and builds the project
  • script/build - builds the project
  • script/serve - starts the development server

Scripts can be run from the root of the repo. For example to setup the project you could run:

./scripts/setup

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages