8000 GitHub - codetalcott/fixi
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

codetalcott/fixi

 
 

Repository files navigation

fixi.js & fiximod

This repository contains:

  • fixi.js - The original ultra-minimalist hypermedia library (3.2KB)
  • fiximod - A modern TypeScript reimplementation with modular architecture

Quick Comparison

Feature fixi.js fiximod
Size 1.4KB gzipped ~4KB gzipped
Language JavaScript TypeScript
Architecture Single IIFE 8 ES modules
View Transitions ✅ Always ✅ Configurable
Type Safety ✅ Full
Tree Shaking
Extensibility Events only Events + Modules

Quick Start

Both libraries use the same HTML attributes:

<button fx-action="/api/data" fx-swap="innerHTML">
  Load Data
</button>

Using fixi.js (Original)

<script src="https://unpkg.com/fixi.js"></script>
<!-- Auto-initializes -->

Using fiximod (TypeScript)

import { init } from './src/fiximod';
init(); // Same behavior as fixi.js

When to Use Which?

Use fixi.js when:

  • Minimal bundle size is critical (1.4KB)
  • You want a single file solution
  • No build process needed
  • Maximum simplicity

Use fiximod when:

  • You need TypeScript support
  • You want modular, testable code
  • You need custom swap mechanisms
  • You're building larger applications

Documentation

License

0BSD - Same as original fixi.js by Big Sky Software

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 36.1%
  • HTML 35.2%
  • JavaScript 28.7%
0