├── .github ├── FUNDING.yml └── workflows │ └── hugo.yml ├── .gitignore ├── LICENSE ├── contributing.md ├── docs ├── .hugo_build.lock ├── archetypes │ └── default.md ├── cms │ └── copy.js ├── config.toml ├── content │ ├── _index.md │ ├── cms │ │ ├── copy.js │ │ ├── google-tag-manager.md │ │ ├── shopify.md │ │ ├── squarespace.md │ │ ├── webflow.md │ │ ├── wix.md │ │ └── wordpress.md │ ├── required.js │ ├── tachyon-white.svg │ ├── tachyon.svg │ ├── tachyonDemo.gif │ └── wave.css ├── css │ └── main.css ├── public │ ├── categories │ │ ├── index.html │ │ └── index.xml │ ├── cms │ │ ├── copy.js │ │ ├── google-tag-manager │ │ │ └── index.html │ │ ├── index.html │ │ ├── index.xml │ │ ├── self-hosting │ │ │ └── index.html │ │ ├── shopify │ │ │ └── index.html │ │ ├── squarespace │ │ │ └── index.html │ │ ├── webflow │ │ │ └── index.html │ │ ├── wix │ │ │ └── index.html │ │ └── wordpress │ │ │ └── index.html │ ├── css │ │ └── main.css │ ├── favicon.ico │ ├── index.html │ ├── index.xml │ ├── required.js │ ├── sitemap.xml │ ├── tachyon.svg │ ├── tachyonDemo.gif │ ├── tags │ │ ├── index.html │ │ └── index.xml │ └── wave.css ├── static │ └── css │ │ └── main.css ├── tachyonDemo.gif └── themes │ └── digitalgarden │ ├── .gitignore │ ├── LICENSE │ ├── archetypes │ └── default.md │ ├── assets │ └── css │ │ └── tailwind.css │ ├── layouts │ ├── 404.html │ ├── _default │ │ ├── _markup │ │ │ └── render-link.html │ │ ├── baseof.html │ │ ├── list.html │ │ └── single.html │ ├── articles │ │ ├── list.html │ │ └── single.html │ ├── index.html │ ├── partials │ │ ├── head.html │ │ └── icon │ │ │ ├── closeIcon.html │ │ │ ├── codebergIcon.html │ │ │ ├── codepenIcon.html │ │ │ ├── dribbbleIcon.html │ │ │ ├── emailIcon.html │ │ │ ├── externalIcon.html │ │ │ ├── githubIcon.html │ │ │ ├── gitlabIcon.html │ │ │ ├── instagramIcon.html │ │ │ ├── linkedinIcon.html │ │ │ ├── mastodonIcon.html │ │ │ ├── menuIcon.html │ │ │ ├── rssfeedIcon.html │ │ │ ├── sunIcon.html │ │ │ ├── twitchIcon.html │ │ │ └── twitterIcon.html │ ├── portfolio │ │ ├── list.html │ │ └── single.html │ └── stack │ │ └── list.html │ ├── static │ └── css │ │ └── main.css │ └── theme.toml ├── localized ├── readme.ko.md ├── readme.zh-CN.md └── readme.zh-TW.md ├── readme.md └── tachyon ├── LICENSE ├── package.json ├── readme.md ├── tachyon.js ├── tachyon.min.js ├── test ├── driver.js ├── index.html ├── sameorigin.html ├── whitelist-sameorigin.html └── whitelist.html └── wordpress ├── tachyon.php └── tachyon.zip /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [weebney] 4 | -------------------------------------------------------------------------------- /.github/workflows/hugo.yml: -------------------------------------------------------------------------------- 1 | # Sample workflow for building and deploying a Hugo site to GitHub Pages 2 | name: Deploy Hugo site to Pages 3 | 4 | on: 5 | # Runs on pushes targeting the default branch when docs directory is edited 6 | push: 7 | branches: ["main"] 8 | paths: ['docs/**'] 9 | 10 | # Allows you to run this workflow manually from the Actions tab 11 | workflow_dispatch: 12 | 13 | # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages 14 | permissions: 15 | contents: read 16 | pages: write 17 | id-token: write 18 | 19 | # Allow one concurrent deployment 20 | concurrency: 21 | group: "pages" 22 | cancel-in-progress: true 23 | 24 | # Default to bash 25 | defaults: 26 | run: 27 | shell: bash 28 | 29 | jobs: 30 | # Build job 31 | build: 32 | runs-on: ubuntu-latest 33 | env: 34 | HUGO_VERSION: 0.102.3 35 | steps: 36 | - name: Install Hugo CLI 37 | run: | 38 | wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.deb \ 39 | && sudo dpkg -i ${{ runner.temp }}/hugo.deb 40 | - name: Checkout 41 | uses: actions/checkout@v3 42 | with: 43 | submodules: recursive 44 | - name: Setup Pages 45 | id: pages 46 | uses: actions/configure-pages@v2 47 | - name: Build with Hugo 48 | env: 49 | # For maximum backward compatibility with Hugo modules 50 | HUGO_ENVIRONMENT: production 51 | HUGO_ENV: production 52 | run: | 53 | cd docs && hugo --gc --minify 54 | - name: Upload artifact to GH pages 55 | uses: actions/upload-pages-artifact@v1 56 | with: 57 | path: ./docs/public 58 | 59 | # Deployment job 60 | deploy: 61 | environment: 62 | name: github-pages 63 | url: ${{ steps.deployment.outputs.page_url }} 64 | runs-on: ubuntu-latest 65 | needs: build 66 | steps: 67 | - name: Deploy to GitHub Pages 68 | id: deployment 69 | uses: actions/deploy-pages@v1 70 | 71 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /test.html 2 | 3 | tachyon/.eslintrc.json 4 | tachyon/node_modules 5 | tachyon/package-lock.json 6 | 7 | tachyon/test/tachyon.js 8 | 9 | 10 | /build 11 | 12 | /docs/node_modules 13 | /docs/.hugo_build.lock 14 | /docs_old 15 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2023 weebney 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 4 | 5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 6 | 7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /contributing.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | Tachyon subscribes to the following philosophy: 4 | 5 | - If this project is not helping you, then there is a bug 6 | - If you are having a bad time using this project, then there is a bug 7 | - If the documentation is confusing, then the documentation is buggy 8 | - If there is a bug in this project, then we can work together to fix it. 9 | 10 | There is a [list of known issues](https://fasterthanlight.net/#known-issues) on the website—if anything else comes up, though, please do [open an issue](https://github.com/weebney/tachyon/issues/) in the [issue tracker](https://github.com/weebney/tachyon/issues/) or open a pull request. 11 | 12 | Tachyon has only a few code contribution rules to keep the project's codebase growing at a sustainable rate: 13 | 14 | - Please squash your commits before submitting a pull request. 15 | - Large pull requests should be split into multiple smaller pull requests where possible. -------------------------------------------------------------------------------- /docs/.hugo_build.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowtoolz/tachyon/31f680519c2aace7f19aeb37e7e45eadb9ac746e/docs/.hugo_build.lock -------------------------------------------------------------------------------- /docs/archetypes/default.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "{{ replace .Name "-" " " | title }}" 3 | date: {{ .Date }} 4 | draft: true 5 | --- 6 | 7 | -------------------------------------------------------------------------------- /docs/cms/copy.js: -------------------------------------------------------------------------------- 1 | const codeBlock = document.getElementById("codeBlock") 2 | const copyButton = document.getElementById("copier") 3 | 4 | codeBlock.innerText = ''; 5 | 6 | function sleep(ms) { 7 | return new Promise(resolve => setTimeout(resolve, ms)); 8 | } 9 | 10 | function toClipboard() { 11 | navigator.clipboard.writeText(codeBlock.innerText); 12 | copier.innerHTML = "Copied!"; 13 | sleep(1000).then(() => { 14 | copier.innerHTML = "Click me to copy!"; 15 | }) 16 | } 17 | 18 | copyButton.addEventListener("click", toClipboard) 19 | -------------------------------------------------------------------------------- /docs/config.toml: -------------------------------------------------------------------------------- 1 | baseURL = 'https://fasterthanlight.net/' 2 | languageCode = 'en-us' 3 | title = 'Tachon' 4 | theme = 'digitalgarden' 5 | 6 | [markup.goldmark.renderer] 7 | unsafe= true -------------------------------------------------------------------------------- /docs/content/_index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Tachyon" 3 | date: 2022-11-07T14:15:24-05:00 4 | draft: false 5 | --- 6 | 7 | 8 | 9 | 10 | 11 | 12 | ![](/tachyon.svg) 13 | 14 |

Tachyon

15 | 16 |
17 | 18 |

19 | 20 | [GitHub](https://github.com/weebney/tachyon/) · [简体中文](https://github.com/weebney/tachyon/blob/main/localized/readme.zh-CN.md) · [繁體中文](https://github.com/weebney/tachyon/blob/main/localized/readme.zh-TW.md) · [한국어](https://github.com/weebney/tachyon/blob/main/localized/readme.ko.md) 21 | 22 |

23 |
24 |
25 | 26 | 27 | Tachyon is a byte-sized script that improves the user experience of your website by making navigation between pages significantly quicker. 28 | 29 | **To test if Tachyon would've helped,** 31 | 32 |