Gallery: Real-World Examples β
Live interactive demos showing tina4js in real-world scenarios. Each demo is one self-contained HTML file, so there's no build step. Click "Open full demo" to run it in a new tab.
π Admin Dashboard β
Live stats with reactive counters, computed KPIs, polling effects, and a notification feed.
signal computed effect component
π₯ Contact Manager β
Full CRUD: create, edit, delete contacts with search filtering and form validation.
signal api html routing
π¬ Live Chat β
WebSocket-powered chat with signal-driven message list, auto-scroll, and reconnect status.
websocket signal component
π Auth Flow β
Login / logout with JWT token storage, route guards, protected pages, and 401 redirect.
api routing signal
π Shopping Cart β
Product listing, add-to-cart, quantity controls, computed totals, and checkout summary.
signal computed batch
π Dynamic Form Builder β
Add/remove fields at runtime, reactive validation, conditional sections, and live preview.
signal html effect
π± PWA Notes β
Offline-capable notes app with service worker, localStorage persistence, and install prompt.
pwa signal component
π Data Table β
Sortable, paginated data table with column filters, row selection, and CSV export.
signal computed html
π Live Search β
Debounced search with API calls, loading states, highlight matching, and keyboard navigation.
signal api effect
πΎ Persistent Prefs β
Theme, language, and sidebar state survive a refresh via persist(): opt-in localStorage with credential-shape warnings, version migration, and cross-tab sync.
signal persist storage
π Localization (i18n) β
Switch between six languages and watch every translated string plus Intl number, currency, and date formatting update in place. Arabic flips the layout to right-to-left. The active locale is a signal.
i18n signal intl rtl
π‘ Live Streaming (SSE) β
Server-Sent Events and NDJSON streaming wired to signals: an AI-style token stream and a live server-event feed, each piped into state behind a reactive status badge.
sse signal pipe
ποΈ Islands (Web Components) β
A static, server-rendered product page with three self-hydrating Tina4Element islands - star rating, add-to-cart, and a live viewer count - each shadow-DOM encapsulated with its own scoped styles.
component shadow-dom signal
π GraphQL Client β
Typed queries and mutations through api.graphql(): search with variables, restock with a mutation, and a live wire console showing the exact request and response.
graphql api signal
π€ File Upload β
Drag-and-drop or browse, a real FileReader preview, and multipart api.upload() with a live per-file progress bar.
api upload signal
Using the Examples as Starting Points β
Each demo is a single self-contained HTML file. Copy any one and start editing:
# View the source of any live demo
curl https://tina4.com/gallery/01-dashboard.htmlOr grab the whole gallery from the repo:
git clone https://github.com/tina4stack/tina4-js.git
open tina4-js/examples/gallery/index.htmlAll examples use the CDN build so they work without a build step:
<script type="module">
import { signal, html } from 'https://cdn.jsdelivr.net/npm/tina4js@latest/dist/index.es.js';
</script>