Skip to content

Instantly share code, notes, and snippets.

View andyfutcher's full-sized avatar
🚀
Better prompt it!

Andy Futcher andyfutcher

🚀
Better prompt it!
View GitHub Profile
@andyfutcher
andyfutcher / headless.html
Last active February 14, 2026 01:24
Better Prompt Rocket Main JS HTMLless Snippet; this helps speed up page-speed and lighthouse scores by deferring resources until the DOM has loaded fully.
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Page Customisation: START -->
<!-- Page Encoding -->
<meta charset="UTF-8">
<!-- Page Meta -->
<title>Blank Main.JS Snippet</title>
<meta name="author" content="Your Name">
@andyfutcher
andyfutcher / publish.bash
Last active February 14, 2026 01:24
Better Prompt Rocket Publish Script example; useful for Main HTML and Main.JS for hosting a website on Google Cloud and Google CDN.
# GNU General Public License v3.0
# Betterprompt Rocket Main.HTML is an accessibility aware template putting users and web developers first, Copyright (C) 2026 Better Prompt Pty Ltd. See <https://www.betterprompt.com/> for more
# This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
## Main.HTML not modified from original. Date: 2026-02-14 ###
# Feferences: https://cloud.google.com/sdk/gcloud/reference/storage/cp
# Load Configuration
publish_config="gcloud.conf
@andyfutcher
andyfutcher / default.css
Last active February 14, 2026 01:24
Better Prompt Rocket Default.CSS theme template; includes social icons, light and dark mode and tool-tip controls.
/* GNU General Public License v3.0
# Betterprompt Rocket Main.HTML is an accessibility aware template putting users and web developers first, Copyright (C) 2026 Better Prompt Pty Ltd. See <https://www.betterprompt.com/> for more
# This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
## Main.HTML not modified from original. Date: 2026-02-14 ### */
/* Main.HTML Theme Colours */
:root { /* Page Boundaries */
--page-width:1040px;
--page-margin:auto; /*a
@andyfutcher
andyfutcher / main.html
Last active February 14, 2026 01:24
Better Prompt Rocket Main.HTML template; example controls for Main.JS support, including Head Snippets and CSS Wireframe.
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Page Customisation: START -->
<!-- Page Encoding -->
<meta charset="UTF-8">
<!-- Page Meta -->
<title>Rocket Template</title>
<meta name="author" content="Your Name">
@andyfutcher
andyfutcher / sitemap.xml
Last active February 14, 2026 01:24
Better Prompt Rocket Sitemap.xml examples; Combining sitemaps, image sitemaps and sitemap indexes for maximum visibility.
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
<!-- This sitemap.xml file lists all pages to be indexed and any optional images -->
<url>
<loc>https://www.betterprompt.com/</loc>
<image:image><image:loc>https://www.betterprompt.com/images/logo.png</image:loc></image:image>
</url>
<url>
<loc>https://www.betterprompt.com/project/</loc>
<image:image><image:loc>https://www.betterprompt.com/images/logo.png</image:loc></image:image>
@andyfutcher
andyfutcher / humans.txt
Last active February 14, 2026 01:24
Better Prompt Rocket Robots.txt example, Main.JS combines this with humans.txt for reliable fetch() controller.
# Human Readability
## Website Metadata
author: Your Name
website: Your Website
## Main.JS Directive
### Include optional Main.JS property controls here:
main.js.network.capable: true
@andyfutcher
andyfutcher / main.css
Last active February 14, 2026 01:24
Better Prompt Rocket Main.CSS - Theme ready style sheet wire frame designed for browser conformity and core web vitals performance.
/* GNU General Public License v3.0
# Betterprompt Rocket Main.CSS is an accessibility aware template putting users and web developers first, Copyright (C) 2026 Better Prompt Pty Ltd. See <https://www.betterprompt.com/> for more
# This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
## Main.CSS not modified from original. Date: 2026-02-14 ### */
/* Wireframe */
*,*::before,*::after {box-sizing:border-box;margin:0;padding:0;
} :root {--ver-major:0;--ver-minor:8;-
@andyfutcher
andyfutcher / main.js
Last active February 14, 2026 01:23
Better Prompt Rocket Main.JS is an AI-optimized, accessibility-first JavaScript framework designed for the generative era.
/* GNU General Public License v3.0
# Betterprompt Rocket Main.JS is a modern, lightweight and portable website JavaScript framework, Copyright (C) 2026 Better Prompt Pty Ltd. See <https://www.betterprompt.com/> for more
# This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
## Main.JS not modified from original. Date: 2026-02-14 ### */
/* Main.JS Bootloader */
main=window['main']||{};main.js=Object.assign({create:{},inherit:{}},main.js||{});let create=main.js.