A Minimalist UI Framework

Designed to embrace core competencies


Fyord allows you to build your UI using components that contain their own state, styles, and behaviors. Simply extend from the base Component class and import where you need them.

private links = [
{ href: Routes.Home, label: 'Home' },
{ href: Routes.Examples, label: 'Examples' },
{ href: Routes.Styleguide, label: 'Styleguide' }

Template = async () =>
<nav class={styles.nav}>
{this.links.map((l, i) => <li key={i}>
<a href={l.href}>{l.label}</a>


Routing in Fyord is seamless. Simply use normal anchor tags! Local urls (which are not target=_blank) will be routed on the client. See the documentation to see examples of routing parameters.

Route = (route: Route) => route.path === Routes.Routing;
Template = async () =>
<li><a href="/">Home</a></li>
<li><a href="/blog">Blog</a></li>
<li><a href="/contact">Contact</a></li>


Styling components in Fyord is straightforward, whether you want global or component level styles.

Simply create a file with the .module.css and import to use! Prefer Sass instead? No problem, just change the extension to .scss.

import styles from'./contact.module.css';

Template = async () =>
<h1 class={styles.red}>Contact me!</h1>


Maintaining app and component state couldn’t be easier. Using decorators, you can quickly create state at the global app store or the local component level that will automatically update your component UI upon state change.

@AppStoreprivate userAge: number = 0;
@Stateprivate counter: number = 0;

Template = async () =>
<p>User's Age: <b>{this.userAge}</b></p>;
<p>Counter Value: <b>{this.counter}</b></p>;

And more...

JSX Templates

Create component templates Intuitively using familiar JSX syntax! Use the syntax and attributes you already know (class, events, etc.)


Fyord is designed with testability in mind! Testing Fyord components is like testing any other class. There are no life cycles or DI containers to pay tribute to here!


Fyord pages support three pre-render modes (static, dynamic, and hybrid), making optimizing for SEO or deploying a fully static site easy.