Socket
Socket
Sign inDemoInstall

sparkar-volts

Package Overview
Dependencies
0
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    sparkar-volts

An extensive non-reactive Typescript framework that eases the development experience in Spark AR


Version published
Weekly downloads
1
Maintainers
1
Created
Weekly downloads
 

Readme

Source

VOLTS ⚡️

CI Test

An extensive Typescript framework that eases the development experience in Spark AR

Showcase ✨

See an example of what can be built with Volts 4.0.0

Highlights

Please make sure to read this list of reasons why you should prefer the ReactiveAPI over vanilla js: Reactive programming, SparkAR before using volts, as it might not be the right thing for every project

Documentation

Check out our documentation!

How to add VOLTS to your project

Read this installation guide

How to use

Read this guide on getting started with VOLTS

Template

You can use this template as a quick start if you're already familiar with the library. Download using the command:

npm i sparkar-volts

Or using this download link

// main.ts
// using sparkar-volts@4.0.0
import Diagnostics from 'Diagnostics';
import Volts, { PublicOnly } from './volts';

const World = Volts.World.getInstance({
  mode: 'DEV',
  snapshot: {},
  assets: {},
  loadStates: undefined,
});

World.onEvent('load', function (this: PublicOnly<typeof World>, snapshot) {
  Diagnostics.log(`Loaded 🧪.\nAssets: ${Object.keys(World.assets) || 'no assets were loaded'}`);
});

World.onEvent('frameUpdate', function (this: PublicOnly<typeof World>, snapshot, data) {
  if (data.frameCount == 0) Diagnostics.log(`Running... 🚀\n`);
});

Contributing ❤️

You can contribute to the development of VOLTS.

PRs & Issues welcomed!

Check the issues to see if there's anything that requires help, or want to discuss aspects of the project — feel free to open an issue if you encounter a bug/ want to request a feature/ other

Please check the contributing.md file if you wish to contribute to the development of the project.

If you want to open a PR/Issue, please make sure to read the code-of-conduct.md before doing so.

Donations

All proceeds will be split amongst all major contributors

Keywords

FAQs

Last updated on 30 Jun 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc