@mediamonks/tawang weekly downloads statistics
By mediamonks · npm · Webpack plugins
A webpack plugin for Facebook's AR Studio.
@mediamonks/tawang has 4 recorded weekly downloads on npm, a decrease of 92.6% over the past 30 days, ranking #2266 of 2,391 tracked listings.
About @mediamonks/tawang
Tawang
This plugin makes webpack compatible with Facebook’s AR Studio. With this plugin, it is possible to debug an AR Studio script using source maps. It uses an external API to parse the source map which webpack generates. You can create such an API using the Tawang-API Git repository.
Install
npm i -D @mediamonks/tawang
or
yarn add -D @mediamonks/tawang
Usage
To use this plugin, you first have to require it. Secondly, you have to add an instance of it to the plugin array in the webpack.config.js. Finally, you have to pass the API endpoints to the options object. Alternatively, there is also a boilerplate project available here, which you can just clone.
webpack.config.js
const Tawang = require('@mediamonks/tawang');
module.exports = {
// ...
externals: {
Animation: "commonjs Animation",
Diagnostics: "commonjs Diagnostics",
FaceTracking: "commonjs FaceTracking",
Reactive: "commonjs Reactive",
Scene: "commonjs Scene"
},
plugins: [
new Tawang({
serverHost: 'api.com',
sourceMapEndpoint: '/source-map',
parseEndpoint: '/source-map/[id]'
})
]
}
Options
You have to pass the following options to the plugin.
serverHost: <String> (required)
The domain name of the API without the protocol (e.g. “https://”) and with the TLD (e.g. “.com”). Example: "api.com".
sourceMapEndpoint: <String> (optional)
The address of the source map POST endpoint relative to the serverHost domain. This is the address, where the plugin sends the source map during the compilation. Example: "/source-map".
parseEndpoint: <String> (optional)
The address of the parsing GET endpoint relative to the serverHost domain. Any errors which occur in the AR Studio script are sent here. The API server then parses the line and column number from the error and returns the code location in the original source. The URL should include placeholders for the source map id ("[id]"), line number ("[line]"), and column number ("[column]"). You have to enclose all placeholders in square brackets Example: "/source-map/[id]?line=[line]&column=[column]".
Example
This is an example webpack.config.js file with Babel support.
const webpack = require("webpack");
const path = require("path");
const Tawang = require('@mediamonks/tawang');
module.exports = {
entry: "./src/script.js",
mode: "production",
devtool: "source-map",
output: {
path: "./build"),
filename: "main.bundle.js"
},
module: {
rules: [{
test: /\.js$/,
exclude: /(node_modules|bower_components)/,
use: {
loader: 'babel-loader',
options: {
presets: ['env']
}
}
}
]
},
externals: {
Animation: "commonjs Animation",
Diagnostics: "commonjs Diagnostics",
FaceTracking: "commonjs FaceTracking",
Reactive: "commonjs Reactive",
Scene: "commonjs Scene"
},
plugins: [
new Tawang({
serverHost: 'api.com',
sourceMapEndpoint: '/source-map',
parseEndpoint: '/source-map/[id]?line=[line]&column=[column]'
})
]
};
Description from the npm listing.
- mediamonks
- tawang
- webpack
- webpack-plugin
- arstudio
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (122)Similar npm Webpack plugins plugins
All 20 @mediamonks/tawang alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/@mediamonks/tawang. First seen Oct 16, 2026; last successful collection Oct 21, 2026. See the methodology.