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.
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 · Nov 2027
- 99%
- typical 97%
- 3 years · Nov 2029
- 98%
- typical 94%
- 5 years · Nov 2031
- 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
Does a similar job
free ones →all alternatives →
Nue2025 · nuejs.org · ▲756Nue 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.


One2024 · onestack.dev · ▲506One is a React framework designed to unify web and native app development.
FastDom2019 · github.com · ▲41Full reactivity JS/TS framework. Lightweight replacement of React + MobX + React Router. Very small and fast !!
More dev tools this month
the category →



Put a game, quiz or survey in your next email. No coding
Dev tools · 24d ago · stripo.email

This is a GitHub repository for a development tool focused on data brokers.
Dev tools · 9d ago · github.com
ExitPath▲252Find, compare and switch to open-source alternatives for the tools you depend on. Honest ratings, migration difficulty scores and step-by-step checklists. Nothing you do here leaves your browser.
Dev tools · 17d ago · exitpath-ruddy.vercel.app
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 →
Boring Report▲1,166In today's world, catchy headlines and articles often distract readers from the facts and relevant information. By utilizing OpenAI's language models, Boring Report processes sensationalist news articles, transforms them into the content you see, and helps readers focus on the essential details. We recently updated our iOS app experience, so any and all feedback would be appreciated. App Link: https://apps.apple.com/us/app/boring-report-news-by-ai/id644...
AI · 2023 · boringreport.org

Momentum Page▲834Grow your startup: launch landing pages, collect waitlist, create, connect with your audience, sell.
Dev tools · 2023 · page.mmntm.build
Desku▲772Unify email, live chat and social support with Desku's AI-powered helpdesk. Automate repetitive queries, respond faster and delight every customer.
AI · 2023 · desku.io
