dhg/Glue — an open-source project — sits at 59 GitHub stars. Simple prototyping
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
Glue.js is for creating quick, beautiful prototypes. Here’s why it’s awesome:
HTML partials served up with AJAX
Glue lets you break up your markup into external HTML files for better organization, much like you would with CSS or JS. That means you can organize your HTML however you like, plus run and share it with just JS. No need for PHP, a Node server or anything like that.
Single-page prototype with page animations
Clicking from page to page in a Glue prototype all works without page refreshes, meaning you can use CSS to add transitions between pages. Don’t worry, you still have working, sensable URLs even though the whole prototype is technically on one page.
It’s stupid fast, easy and lightweight
Link up a single 1.5kb JS file (plus an optional 1kb CSS file) and you’re ready to go. As soon as Glue is loaded, it AJAX's any included HTML and then fades the page in as a whole. Glue's syntax was designed for semantic simplicity, so it’s extremely easy to learn and read.
Using Glue is super simple. There are only 3 things you need to know:
data-glue-src is for partials
Use the “data-glue-src” attribute on any element to replace its content with HTML from the template you specifiy when the page loads.
<div data-glue-src="navbar">
Glue-link is for links to new pages
Put a “data-glue-link” attribute on an anchor to clear the existing page and replace it with the new one you specify.
<a data-glue-link=”page2”>Go to the next page</a>
The .glue-container in your index.html is important
Any content that is going to change from page to page will be loaded into the .glue-container, so leave it in your index.html. Any templates outside of this will persist on every page.
<div class="glue-container"></div>
Get started now with just 3 super simple steps:
Download or clone Glue
You can just download the project with these docs or feel free to check out the Github page and clone it.
Run a server of any kind (don’t worry, it’s easy)
Unfortunately, all browsers consider AJAXing local files to be a security threat if not in a server environment. It’s super easy to solve this though. If you’re on a Mac, just open terminal, drag your prototype folder onto the terminal icon in your doc and run this command:
python -m SimpleHTTPServer
Alternatively, turning on web sharing, using MAMP or any other server will work. If you’re on a Windows machine …
Open your browser and go to your server address
However you set up your simple server, just point your browser at the appropriate localhost port and you should see the Glue docs. For reference, the standard python server URL will be localhost:8000.
The most recent commit recorded on dhg/Glue was 14.4 years ago, based on the GitHub push timestamp. The repository has 13 forks — one of the better signals of community interest.
How many stars does dhg/Glue have?
dhg/Glue has 59 GitHub stars — refresh the page for the live number, or check github.com/dhg/Glue. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is dhg/Glue open source?
TopGit's metadata for dhg/Glue does not record a license. Most public repositories on GitHub ARE open source, but the exact terms vary — verify by opening the LICENSE file directly.
What is dhg/Glue?
dhg/Glue (dhg/Glue) is a JavaScript project on GitHub. From the project's own README: Simple prototyping
What language is dhg/Glue written in?
dhg/Glue is written primarily in JavaScript. GitHub's language field is based on the largest share of bytes in the default branch.
Where do I read more about dhg/Glue?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/dhg/Glue is the definitive source.
Read full README in the tab above.
Is Glue worth your time?
ChatGPT, Claude and Perplexity can all read this page. Ask one of them what it makes of Glue.