examples/

directory
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2026 License: Apache-2.0

Directories

Path Synopsis
Command android-native shows a view from a precompiled Android library.
Command android-native shows a view from a precompiled Android library.
Command appclip is a café's app with an App Clip: the app, here, keeps the user's orders, and the clip, in package clip, orders at a table from the link its code opens, without installing the app.
Command appclip is a café's app with an App Clip: the app, here, keeps the user's orders, and the clip, in package clip, orders at a table from the link its code opens, without installing the app.
clip command
Command clip is the App Clip of the café's app: a table's code opens https://cafe.example.com/table?n=12, and the clip orders to that table.
Command clip is the App Clip of the café's app: a table's code opens https://cafe.example.com/table?n=12, and the clip orders to that table.
Command embed-desktop is a desktop app of its own that embeds NSGo: its window, built with the platform's toolkit and run by its own event loop, shows a status line, a button and two NSGo views of examples/embedded/app side by side, each an engine of its own.
Command embed-desktop is a desktop app of its own that embeds NSGo: its window, built with the platform's toolkit and run by its own event loop, shows a status line, a button and two NSGo views of examples/embedded/app side by side, each an engine of its own.
Command embedded builds the embeddable app in app for iOS and Android hosts: `nsgo build -embed -target ios` makes the framework examples/embed-ios links, and `-target android` the library examples/embed-android adds.
Command embedded builds the embeddable app in app for iOS and Android hosts: `nsgo build -embed -target ios` makes the framework examples/embed-ios links, and `-target android` the library examples/embed-android adds.
app
Package app is an NSGo app made to be embedded: it greets the user its host names in its launch parameters, shows the host's messages, calls and posts to the host, shows the host's own badge as a native component, opens a link the host routes, and themes itself with the host's tokens, locale and text size.
Package app is an NSGo app made to be embedded: it greets the user its host names in its launch parameters, shows the host's messages, calls and posts to the host, shows the host's own badge as a native component, opens a link the host routes, and themes itself with the host's tokens, locale and text size.
Command gallery shows what NSGo apps are made of: core's elements and services, and the components of base and ui, in NSH's gallery's design, under two tabs.
Command gallery shows what NSGo apps are made of: core's elements and services, and the components of base and ui, in NSH's gallery's design, under two tabs.
locales
Package locales says the gallery's own messages, its settings' among them, in the language it shows.
Package locales says the gallery's own messages, its settings' among them, in the language it shows.
Command gallery-miniprogram is the gallery for mini programs: the components a mini program shows, in examples/gallery's look, small enough for the 2 MB package WeChat, QQ, Alipay and Douyin hold a mini program's module to, which examples/gallery is far past.
Command gallery-miniprogram is the gallery for mini programs: the components a mini program shows, in examples/gallery's look, small enough for the 2 MB package WeChat, QQ, Alipay and Douyin hold a mini program's module to, which examples/gallery is far past.
Command gallery-tsx is the gallery's Components written in TSX: a page per family of components, on nsgo/ui and nsgo/base, with knobs that set their props.
Command gallery-tsx is the gallery's Components written in TSX: a page per family of components, on nsgo/ui and nsgo/base, with knobs that set their props.
Command hello is the smallest app worth packaging: it greets the name typed into it and counts its greetings, in English and Chinese, and its App Clip (clip) greets the name a link gives.
Command hello is the smallest app worth packaging: it greets the name typed into it and counts its greetings, in English and Chinese, and its App Clip (clip) greets the name a link gives.
clip command
Command clip is the hello example's App Clip: a link such as https://hello.example.com/?name=Ada opens it, and it greets the name the link gives, in the app's languages.
Command clip is the hello example's App Clip: a link such as https://hello.example.com/?name=Ada opens it, and it greets the name the link gives, in the app's languages.
locales
Package locales says the hello example's messages in the language it shows.
Package locales says the hello example's messages in the language it shows.
Command orbit shows six live native views standing on one ring in perspective, over a calibrated dial a WGSL shader draws on the floor.
Command orbit shows six live native views standing on one ring in perspective, over a calibrated dial a WGSL shader draws on the floor.
Command pip demonstrates native video and a captioned video tree in iOS Picture in Picture.
Command pip demonstrates native video and a captioned video tree in iOS Picture in Picture.
Command plugins is a Go app that installs and runs signed TSX packages: it verifies greeter.nsgopkg against the root key rootKey, off the engine's goroutine, asks the user to grant what its capabilities declare, installs it in the app's data directory and shows it in tsx.View, which reaches the app only through a host channel of its own; or it shows why the package was refused.
Command plugins is a Go app that installs and runs signed TSX packages: it verifies greeter.nsgopkg against the root key rootKey, off the engine's goroutine, asks the user to grant what its capabilities declare, installs it in the app's data directory and shows it in tsx.View, which reaches the app only through a host channel of its own; or it shows why the package was refused.
Command previews shows the docs' component examples live: each demo is the code of a block in docs/public/*/ui/, with what the block leaves out defined around it.
Command previews shows the docs' component examples live: each demo is the code of a block in docs/public/*/ui/, with what the block leaves out defined around it.
Command shell is a desktop window in ui.SidebarShell's inset variant: the content floats as a card beside a sidebar over the window's material, and slides over the sidebar as the toggle hides it.
Command shell is a desktop window in ui.SidebarShell's inset variant: the content floats as a card beside a sidebar over the window's material, and slides over the sidebar as the toggle hides it.
Command tray is a menu bar app run as an Avalonia application runs: nsgo.Run starts the app's function, which opens what it shows.
Command tray is a menu bar app run as an Avalonia application runs: nsgo.Run starts the app's function, which opens what it shows.
Command tsx is an app written in TSX and styled with Tailwind CSS classes: today's tasks and a focus timer.
Command tsx is an app written in TSX and styled with Tailwind CSS classes: today's tasks and a focus timer.
Command tui runs an ordinary NSGo view tree in a terminal.
Command tui runs an ordinary NSGo view tree in a terminal.
Command widgets is a counter whose widgets show its count: on the Mac's desktop and in Notification Center, and on the Home Screen and the Lock Screen of an iPhone or an iPad.
Command widgets is a counter whose widgets show its count: on the Mac's desktop and in Notification Center, and on the Home Screen and the Lock Screen of an iPhone or an iPad.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL