nowfound

Dev tools · May 18, 2023

Swap.js

Swap.js is a lightweight JavaScript micro-framework that enables AJAX-style page updates by fetching and swapping HTML fragments from the server.

Launched as “Swap.js – a JavaScript micro-framework (HTML fragments over the wire)”

Swap.js launched on May 18, 2023 with 127 votes, #287 of 4,395 launches that month and more than 95% of that year's launches. The site was still online in September 2026, 3 years on.

In plain words

Swap.js is a lightweight JavaScript micro-framework that enables AJAX-style page updates by fetching and swapping HTML fragments from the server. It targets developers seeking an alternative to heavy client-side frameworks like React, allowing them to build dynamic web applications using HTML, plain JavaScript, and any server-side language without requiring bundlers, compilers, or build tools. The framework uses the Fetch API and MutationObserver to detect and handle DOM changes automatically.

written by AI from its launch page and website · 5 September 2026

Originality

38/100

Crowded field. 62% of products launched in 2023 entered a less crowded field.

Similar products before it
28
in the archive on its launch day
See similar products ↓
Similar products since
36
launched after it
See similar products ↓

crowded fieldone of a kind

The score compares the words of this launch with every earlier launch in the archive: the fewer close matches on launch day, the higher the score. It says how new the idea was, not how good the product is. Similar products counted on November 30, 2026. See the similar products →This week’s most original launches →

Forecast

95%

chance that Swap.js’s website is still online in November 2031. Typical launch of 2023 gets 87%.

1 year
99%
typical 97%
3 years
98%
typical 94%
5 years
95%
typical 87%
  • Swap.js
  • Typical launch of 2023

Launch signals stronger than 99% of the archiveweakest → strongest

Made on November 29, 2026, when the site was online, from what was public on launch day. It is not revised, and it is graded when the site is checked again. How the forecast works and how often it is right →

From the sources

Swap.js is a "HTML-over-the-wire" AJAX-navigation micro-library - josephernest/Swap.js

In the maker’s words, at launch

Hi HN! I created this lib in the need of a simple and tiny framework to easily do AJAX-style navigation / replacement of fragments in the page, in a web application. For people who don't want to use client-side-rendering and complex frameworks à la React, there are nowadays a few "HTML-over-the-wire" libraries, like…

Pricing, as stated on its site

Free — Free and open source

checked November 2026 · prices change

  • Nue2025 · nuejs.org · ▲756

    Nue is a framework for building lightweight applications and user interfaces.

  • µJSMar 2026 · mujs.org · ▲161

    µJS is a 5KB JavaScript library that enables AJAX-based navigation and form handling for web applications.

  • Swapy2024 · swapy.tahazsh.com · ▲146

    JavaScript tool to convert any layout to a drag-to-swap one

  • Remix2022 · remix.run · ▲413

    Next gen full stack web framework

  • One2024 · onestack.dev · ▲506

    One is a React framework designed to unify web and native app development.

  • FastDom2019 · github.com · ▲41

    Full reactivity JS/TS framework. Lightweight replacement of React + MobX + React Router. Very small and fast !!

More dev tools this month

the category →

Is Swap.js yours? Feature it on the home page: $19, or free with the badge →

Source: Show HN post ↗ · launch text quoted in part

Launched alongside, May 2023

the whole month →