This repository contains:
- fixi.js - The original ultra-minimalist hypermedia library (3.2KB)
- fiximod - A modern TypeScript reimplementation with modular architecture
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 |
Both libraries use the same HTML attributes:
<button fx-action="/api/data" fx-swap="innerHTML">
Load Data
</button>
<script src="https://unpkg.com/fixi.js"></script>
<!-- Auto-initializes -->
import { init } from './src/fiximod';
init(); // Same behavior as fixi.js
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
0BSD - Same as original fixi.js by Big Sky Software