Autobahn: a theme engine for Abicart
Autobahn is a theme engine for Abicart webshops. It shows the shop to the visitor. It gets all shop data from the Abicart API. This article describes what Autobahn is, how it works, and what it gives to the shop owner.
The public documentation of the Abicart API is at .
1. Purpose
Autobahn has these goals:
- Show the shop fast. Each page loads only the CSS and JavaScript that it uses.
- Give the best possible scores in Lighthouse and PageSpeed Insights.
- Obey WCAG 2.2 level AA.
- Keep all URLs of the shop exactly as they are.
- Keep the code small and the build simple.
The first theme of Autobahn is named Dusseldorf.
2. How Autobahn works
2.1 Server rendering
The server makes the full HTML of each page. Autobahn is not a single-page application. The page shows all content when JavaScript does not run. Forms send their data to the server.
JavaScript only adds behavior. Examples are menus, the search suggestions, the product filter and the cart popup.
2.2 Data from the Abicart API
Autobahn gets all shop data from the Abicart API. The API uses JSON-RPC 2.0. Autobahn does not keep a database of its own. The API owns the data.
Autobahn follows these rules:
- Autobahn asks only for the fields that the page shows.
- Autobahn keeps public data in a short-lived cache.
- Autobahn does not calculate prices, VAT or totals. It shows the values from the API.
- Autobahn does not cache personal data. Cart, checkout and customer pages are private.
2.3 URLs
The shop keeps its URLs when it changes to Autobahn. The API owns the URLs. Autobahn does not change, clean or shorten them. This includes the path, the file extension, the trailing slash and the language prefix.
The API also gives the redirects. Autobahn sends them to the visitor as 301 responses.
2.4 Themes
A theme contains HTML, CSS and small JavaScript blocks. The core of Autobahn gives the data to the theme. A theme can use another theme as its parent and change only the files that are different.
3. What the visitor gets
| Function | Description |
|---|---|
| Pages | Start page, custom pages, article group pages, article pages and search. |
| Product lists | Grid or list, pagination or infinite scroll, sort orders. |
| Filter | A filter bar for the product lists. It changes the list at once. |
| Search | Search with suggestions under the search field. |
| Cart and checkout | The cart and the checkout use the Abicart order system. |
| Customer account | Login, registration, password reset, profile and order history. |
| Favorites | A heart icon on the products. The list stays in the browser. |
| Cookie consent | A cookie banner. Tracking scripts wait for the consent of the visitor. |
4. What the shop owner gets
The shop owner changes the theme in an admin. The admin has these areas:
- Header, menu, sidebar and footer.
- Article page, article group page, and product grids and lists.
- Filter and search.
- Checkout.
- Colors in light and dark mode, with a contrast check.
- Fonts, page width and the shape of buttons and forms.
- Google and Meta marketing tags, and the cookie banner.
The admin saves the settings in the shop. The shop owner logs in with an Abicart account. Only an administrator of the shop can change that shop.
5. Performance
Autobahn uses a small set of tools:
| Part | Technology |
|---|---|
| Server | PHP 8.5, no framework |
| Templates | Plain PHP views |
| Behavior | Alpine.js 3, and small scripts without Alpine |
| CSS | Tailwind CSS 4 |
| JavaScript build | Vite |
| Icons | Lucide, and Simple Icons for social networks |
These methods keep the pages fast:
- A page loads a script only when the page needs it. Some scripts load at the first touch or hover.
- Images have a width, a height and a
srcset. The layout does not shift. - The first visible image loads first. All other images load later.
- The theme uses the system font by default. Theme fonts are self-hosted and not loaded from a third party.
- Autobahn does not load CSS or JavaScript from a CDN.
6. Accessibility and SEO
Autobahn follows WCAG 2.2 level AA:
- Each page has a skip link, one
h1and a correct heading order. - All functions work with the keyboard only. The focus is visible.
- Text contrast is 4.5:1 or more.
- Animations stop when the visitor prefers reduced motion.
Each page has these SEO parts:
- A unique title and meta description.
- A canonical link.
hreflanglinks for each language.- JSON-LD data for products, breadcrumbs and the organization.
sitemap.xml,robots.txtandllms.txt, made from the shop data.
7. Security
- The admin uses the Abicart login.
- Each form that changes data has a CSRF token.
- Autobahn cleans all HTML that a shop administrator writes before it shows the HTML.
- Secrets are never in the page, in the settings or in the log.
8. More information
- Abicart API documentation:
- Autobahn product page: