HeadlessJS

Looking for a Headless JS Web Framework without the Headless CMS? MainJS offers much of the Headless advantages without the headaches. This project is Merging with Betterprompt 🚀️ project Rocket, hope to see there!

Developer Features

Headless page hydration

Main features two distinct namespaces; main parent namespace is for controls and visible or engagable elements and tags, and main.js for page hydration, configuration and function calls.

Headless fonts

MainJS allows you to customise your font requirements from your provider, including fonts for specific sections and element types, sans and serif fonts, branded fonts, themed fonts, monospace and symbols.

Headless controls and accessibility

MainJS manages switch and checkbox controls, with customisable functions, full ARIA checked attributes and page hydration support, this is also offered to buttons with the ARIA pressed attribute.

Powerful fetch functions

MainJS headless page hydration offers you a powerful flexible fetcher() function, streamlining async request and responses for all major mime types, server configurations and storage environments.

Complete headless hydration

MainJS hydration systems achieve seamless page navigation, by using fully flexible ‘function arrays,’ allowing easy injection of hydration requirements with push() calls to passive and active listeners to complete rendering processes.

Headless page navigation

MainJS dynamically loads and renders pages on navigation through opener and listener configurations, easily handling page layouts, notifications, applications, updates and smooth scrolling to the top during history progression.

Dynamic menu and application rendering

MainJS enables easy Main/Burger Menus design and distribution by leveraging the headless power of MainJS and using the common Human Sitemap for menu content population.

Complexity reduced

MainJS fetch functions clarify complex systems like pathing (URI and headers,) asynchronous timing (ASYNC,) cross origin requests (CORS,) network resource types (MIME,) browser history and customisable purpose.

Fetch complex data types

MainJS fetch function supports many common mime types; web-pages, text and rich text documents, XML, JSON, form data, scripts, styles, images, video, audio, and fonts.

Dynamic dialog boxes

Main uses advanced Dialog components to achieve a flexible notifications, alert dialogues (popup boxes) and status updates, sidebars, menus, search boxes and application containers (login and more.)

Why MainHTML

MainHTML is a downloadable template that makes designing and building websites easier and faster. Leveraging server-less architecture for performance and millions of styling possibilities, you can build a small website in minutes or maintain a significant digital presence with Main. MainHTML or as it's affectionately called <main> after the element and ARIA role, is perfect for;

  • students looking to learn web dev;
  • professionals looking for a high performance and low cost website;
  • small businesses needing fast content updates, local brand visibility and SEO built-in;
  • SME who need versatile content and have regional consent and measurement responsibilities;
  • companies who demand higher functionality from their websites including powerful personalisation and A/B testing;
  • governments where browser compatibility, high availability and accessibility are top priority;
  • corporations who demand everything including high fault tolerance and multi-domain cookie less architectures.