You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

sparkar-volts

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

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

4.0.0
latest
Source
npmnpm
Version published
Weekly downloads
25
-37.5%
Maintainers
1
Weekly downloads
 
Created
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

Typescript

FAQs

Package last updated on 30 Jun 2022

Did you know?

Socket

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