Nosmai  Effects Nosmai  Moderation Nosmai Try-ons coming soon
Docs menu Web
How-to guide

Bundle an Asset Store filter for Web

Serve a compatible .nosmai package as a static Web asset and apply its URL through the Nosmai Web developer preview.

Platform Web SDK version 0.2.0 developer preview Updated Aug 19, 2026 Time 5 min

Prerequisites

  • A working Web quickstart
  • A Web-compatible effect package and its resources

Add the package

For a Vite project, place the package in public/filters:

public/filters/heart_face.nosmai

It will be served at /filters/heart_face.nosmai.

Apply it

const result = await sdk.applyEffect(
  '/filters/heart_face.nosmai',
);

if (!result.success) {
  throw new Error(result.error ?? 'Effect could not be applied');
}

The package must be compatible with the Web preview. Mobile package support does not guarantee Web support.

Verify it worked

Reload with browser cache disabled once, then confirm the network request is 200 and the effect is visible.

Common errors

SymptomFix
Package request is 404Confirm the public path and deployment output
CORS or CSP blocks the requestAllow the package origin in hosting and Content Security Policy
Package loads but is rejectedUse Web compatibility inspection and a package authored for the preview

Next steps

References

Was this page helpful?

Your response helps us prioritize documentation improvements.

Nosmai

An AR and AI company. Founded on the idea that the next decade of software will be visual, and that the tools for it should be within reach of anyone building.

Newsletter

Product updates and release notes. No spam.

© 2026 nosmai, inc · all rights reserved