<p>
  <a href="https://makandra.de/">
    <picture>
      <source media="(prefers-color-scheme: light)" srcset="media/sponsored-by-makandra.light.svg">
      <source media="(prefers-color-scheme: dark)" srcset="media/sponsored-by-makandra.dark.svg">
      <img align="right" width="27%" alt="Sponsored by makandra" src="media/sponsored-by-makandra.light.svg">
    </picture>
  </a>

  <a href="https://unpoly.com">
    <picture>
      <source media="(prefers-color-scheme: light)" srcset="media/unpoly-logo.light.svg">
      <source media="(prefers-color-scheme: dark)" srcset="media/unpoly-logo.dark.svg">
      <img width="330" alt="Unpoly 3" role="heading" aria-level="1" src="media/unpoly-logo.light.svg">
    </picture>
  </a>
</p>

<p>
  <img alt="jsDelivr hits (npm)" src="https://img.shields.io/jsdelivr/npm/hy/unpoly">
  <img alt="NPM Downloads" src="https://img.shields.io/npm/dy/unpoly?label=npm">
  <img alt="Dependency count" src="https://img.shields.io/badge/dependencies-0-grey">
</p>


The missing application layer for HTML
--------------------------------------

[Unpoly](https://unpoly.com) expands what links, forms and server-rendered pages can do, while your application stays on the server:

```html
<a href="/tasks/123" up-target="#pane">Details</a>   <!-- updates a fragment -->
<a href="/users/new" up-layer="new">Add user</a>     <!-- opens in a modal overlay -->
<form up-validate>…</form>                           <!-- validates against your server -->
<main up-poll>…</main>                               <!-- keeps itself fresh -->
```

When the user follows an Unpoly link, the server responds with HTML (a full page is fine), and Unpoly updates only the targeted fragment. Everything outside the fragment stays as it is, including scroll positions and unsaved form input. Every URL keeps working on its own, so you don't need separate endpoints for fragments.

When attributes aren't enough, a JavaScript API and [compilers](https://unpoly.com/api/up.compiler) let you recompose Unpoly's behavior and plug in your own code.

Unpoly works with any language or framework. It plays nice with existing code, and gracefully degrades without JavaScript.

This branch tracks the current major version, Unpoly **3.x**.\
If you're using Unpoly **2.x**, use the [`2.x-stable`](https://github.com/unpoly/unpoly/tree/2.x-stable) branch.\
If you're using Unpoly **1.x** or **0.x**, use the [`1.x-stable`](https://github.com/unpoly/unpoly/tree/1.x-stable) branch.


Getting started
---------------

- See [unpoly.com](https://unpoly.com) for guides and documentation.
- See [demo.unpoly.com](https://demo.unpoly.com) for an example application using Unpoly.
- See [installation instructions](https://unpoly.com/learn/install) for many different package managers and languages.
- See [discussions](https://github.com/unpoly/unpoly/discussions) for our community forum.
- See [notable changes](https://unpoly.com/changes).


Docs for coding agents
----------------------

Install Unpoly's documentation as an agent skill:

```
npx skills add --global https://unpoly.com
```

See [unpoly.com/learn/skill](https://unpoly.com/learn/skill) for more options.


Contributing
------------

- See [`CONTRIBUTING.md`](CONTRIBUTING.md) for how to work on the Unpoly framework itself.


License
-------

Unpoly is released under the [MIT License](LICENSE).


Credits
-------

- [Henning Koch](mailto:henning.koch@makandra.de) from [makandra](https://makandra.com) ([@triskweline](https://twitter.com/triskweline) on Twitter)
- [Contributors](https://github.com/unpoly/unpoly/graphs/contributors)
