Hasty Briefsbeta

Bilingual

Show HN: Vertex.js – A 1kloc SPA Framework

5 hours ago
  • #javascript
  • #frontend
  • #framework
  • Vertex is a 1kloc SPA framework combining features from React, Ractive-Load, and jQuery.
  • It is a single, self-contained file with no build step and no dependencies.
  • Vertex.js can be loaded via a script tag, CommonJS require(), or AMD define().
  • It provides a DOM wrapper (V$) similar to jQuery, with methods for element manipulation, traversal, and event handling.
  • Vertex includes a mustache-based templating system with features like loops, conditionals, and data binding.
  • The framework supports React-compatible hooks (useState, useEffect, etc.) and a fiber-based reconciler.
  • Vertex.ajax() provides a jQuery-like interface for HTTP requests with support for Promises.
  • Vertex.Router handles client-side routing with hash-based navigation and dynamic segments.
  • Vertex is designed to coexist with jQuery, loading it first to avoid conflicts.
  • The framework includes utility functions (VQuery) mirroring jQuery's static methods.