Nayan Modules
Import games, drawing, media, storage and platform services from their individual engine entry points. Each reference includes usage examples.
37 results
- AnimationsAnimate view styles or game entities with timing, springs and sequences.
- Android
- iOS
- Web
nayan-ui/animations - AssetsLoad and cache bytes from bundled assets, URLs or in-memory data.
- Android
- iOS
- Web
nayan-ui/assets - AudioLoad sounds and play them with volume, playback rate and spatial controls.
- Android
- iOS
- Web
nayan-ui/audio - CameraOpen the camera capture flow and read a photo’s URI and dimensions.
- Android
- iOS
- Web
nayan-ui/camera - Screen CaptureCapture the app or screen as an image and release the temporary result after use.
- Android
- iOS
- Web
nayan-ui/capture - ClipboardRead and write plain text on the platform clipboard.
- Android
- iOS
- Web
nayan-ui/clipboard - Engine CoreInitialize the shared Rust core before using its low-level bindings.
- Android
- iOS
- Web
nayan-ui/core - DeviceInspect platform and device information to choose a suitable experience.
- Android
- iOS
- Web
nayan-ui/device - DrawingCreate a drawing document, mount a canvas and manage brush strokes and layers.
- Android
- iOS
- Web
nayan-ui/drawing - FilesRead and write application files or create temporary files for sharing.
- Android
- iOS
- Web
nayan-ui/files - Game RuntimeCreate a game world and render it with GameView using the focused games entry point.
- Android
- iOS
- Web
nayan-ui/games - HapticsPlay tactile feedback where the platform supports it.
- Android
- iOS
- Web
nayan-ui/haptics - Image PickerLet users choose an image from their library and inspect the selected asset.
- Android
- iOS
- Web
nayan-ui/image-picker - Keep AwakeKeep a display awake while a screen or activity needs it.
- Android
- iOS
- Web
nayan-ui/keep-awake - LocationGet a device location or watch for position updates.
- Android
- iOS
- Web
nayan-ui/location - MicrophoneRequest microphone access and record audio under user control.
- Android
- iOS
- Web
nayan-ui/microphone - NetworkObserve the platform’s connectivity state and check reachability when needed.
- Android
- iOS
- Web
nayan-ui/network - PermissionsCheck or request platform permissions and handle denied or restricted access.
- Android
- iOS
- Web
nayan-ui/permissions - Store ReviewAsk a supported app store to show its native review prompt.
- Android
- iOS
nayan-ui/review - SharingOpen the platform share sheet with text, a URL or a file.
- Android
- iOS
- Web
nayan-ui/sharing - SQLiteWork with app-local SQL databases and parameterized queries.
- Android
- iOS
- Web
nayan-ui/sqlite - StoragePersist small settings with a named store and read them reactively.
- Android
- iOS
- Web
nayan-ui/storage - Text to SpeechSpeak a text string with the platform’s speech synthesizer.
- Android
- iOS
- Web
nayan-ui/tts - UUIDGenerate stable identifiers for local records.
- Android
- iOS
- Web
nayan-ui/uuid - Video PlayerPlay a video with the engine player and optional playback controls.
- Android
- iOS
- Web
nayan-ui/video - MarkdownRender Markdown on an engine surface and parse optional front matter.
- Android
- iOS
- Web
nayan-ui/markdown - Styles CompilerCompile theme colours and utility classes into a shared engine stylesheet.
- Android
- iOS
- Web
nayan-ui/styles - IconsImport individual icon components for use inside engine content.
- Android
- iOS
- Web
nayan-ui/icons - Icon CatalogRender a named icon from the full outline catalog.
- Android
- iOS
- Web
nayan-ui/icons/catalog - Icon OutlinesUse outline data when drawing icons on a custom surface.
- Android
- iOS
- Web
nayan-ui/icons/outline - Named IconsImport a named component from the generated icon collection.
- Android
- iOS
- Web
nayan-ui/icons/named - Individual Icon ComponentsImport one icon component by its kebab-case name.
- Android
- iOS
- Web
nayan-ui/icons/components/* - Individual Icon PathsImport the paths, view box and stroke width of one icon.
- Android
- iOS
- Web
nayan-ui/icons/* - Web Entry PointUse the browser compatibility entry for an explicitly web-only consumer.
- Web
nayan-ui/web - WebAssembly RuntimeResolve the low-level WebAssembly runtime module in a browser build.
- Web
nayan-ui/wasm-runtime - Expo PluginConfigure native engine capabilities in an Expo app before building a development client.
- Android
- iOS
nayan-ui/app.plugin.js - Package MetadataRead the published engine manifest from a Bun script.
- Android
- iOS
- Web
nayan-ui/package.json
nayan-ui/modules
import { prepareUuid, uuid } from 'nayan-ui/modules';
export async function newId() {
await prepareUuid();
return uuid();
}