Skip to content

Type definitions for Snapchat Lenses scripting

Notifications You must be signed in to change notification settings

isabella232/snapchat-lens-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Snapchat Lens API

Snapchat Lenses include a scripting library for creating rich interactive experiences. With scripts, Lenses can respond to touch input, play animation and audio, modify Scene Objects, etc.

Snapchat provides a Javascript interpreter and exposes a number of variables and classes, which are documented in the official API documentation.

This type definition builds upon the official API, which it re-packages in a format that's easy to consume by production-grade applications.

Install using npm

npm i snapchat-lens-api

If you're using Typescript in your build process, add the following to your tsconfig.json:

"types": [ "./node_modules/snapchat-lens-api" ]

Feedback

Any feedback? Please open an issue.

About

Type definitions for Snapchat Lenses scripting

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published