Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,142 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SUI-JS

Version Download License

A lightweight TypeScript frontend framework with predefined UI components. Built with esbuild, styled with custom SCSS, and fully documented with JSDoc.

Features

  • Application Shell — routing, dependency injection, state management
  • 24 UI Components — Calendar, Form, Table, GoogleMap, Carousel, Popup, Navigation, and more
  • 20+ Form Fields — text, select, datetime, color, file, checkbox, radio, range, autocomplete
  • HTTP Client — fetch-based with typed responses
  • Utility Modules — EventBus, Cookie, Depot (storage), Dialog, Flash, Template
  • TypeScript — strict mode, full type declarations
  • Accessibility — jest-axe tested, ARIA support

Getting Started

Installing

npm install @siposdani87/sui-js

Basic Usage

import { Application, Route } from '@siposdani87/sui-js';

const config = {
    app_id: 'APP_ID',
    locale: 'en-GB',
    backend: 'http://localhost:3000',
    production: false,
};
const routes: Route[] = [];
const services: string[] = [];

const app = new Application(config);
app.run(routes, services);

IIFE / Script Tag

<link rel="stylesheet" href="node_modules/@siposdani87/sui-js/dist/sui.min.css" />
<script src="node_modules/@siposdani87/sui-js/dist/sui.min.js"></script>
<script>
    const app = new SUI.Application(config);
    app.run(routes, services);
</script>

Documentation

Full documentation, guides, and API reference available at sui-js.siposdani87.com.

Preview

Overview

Development

npm run dev          # Dev server on :4000 with watch mode
npm run build        # Full build (lint + test + bundle)
npm run test         # Run tests
npm run lint         # TypeScript + ESLint + Stylelint

Bugs or Requests

If you encounter any problems feel free to open an issue. If you feel the library is missing a feature, please raise a ticket. Pull requests are also welcome.

Developer

Daniel Sipos

Sponsors

This project is generously supported by TrophyMap, I18Nature, and several other amazing organizations.

Buy Me A Coffee

License

BSD 3-Clause

About

A lightweight frontend micro-framework written in TypeScript, documented with JSDoc, and compiled with Esbuild. Includes a rich set of predefined UI components.

Topics

Resources

Contributing

Security policy

Stars

Watchers

Forks

Releases

Used by

Contributors

Languages