cobalt/web
wukko 38823ecb22
Some checks failed
Run service tests / test service functionality (push) Has been cancelled
Run tests / check lockfile correctness (push) Has been cancelled
Run tests / web sanity check (push) Has been cancelled
Run tests / api sanity check (push) Has been cancelled
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
Run service tests / test service: ${{ matrix.service }} (push) Has been cancelled
web/changelogs/10.5: rephrase some sentences
2024-12-24 00:24:59 +06:00
..
changelogs web/changelogs/10.5: rephrase some sentences 2024-12-24 00:24:59 +06:00
i18n web/error: add the error for temporarily disabled youtube 2024-12-12 23:01:05 +06:00
src web/layout: add more padding and a separation line to h2 in long text 2024-12-23 23:03:35 +06:00
static web/changelogs: add a 10.4 changelog 2024-12-23 23:06:21 +06:00
.gitignore git: update general gitignore & web gitignore 2024-08-02 21:16:04 +06:00
.npmrc web: project skeleton 2024-06-13 15:32:17 +06:00
eslint.config.js web: add eslint 2024-06-19 17:55:06 +06:00
LICENSE web: add license 2024-07-29 15:26:04 +06:00
package.json web/package: bump version to 10.5 2024-12-23 23:22:19 +06:00
README.md web: remove TURNSTILE_KEY env from readme 2024-10-04 15:19:19 +00:00
svelte.config.js svelte/csp: add forgotten frame-ancestors directive to config 2024-09-30 14:31:44 +00:00
tsconfig.json web: add support for cloudflare turnstile 2024-08-16 00:08:57 +06:00
vite.config.ts web: add automatic sitemap generation 2024-12-10 16:14:20 +00:00

cobalt web

the cobalt frontend is a static web app built with sveltekit + vite.

configuring

  • to run a dev environment, run pnpm run dev.
  • to make a release build of the frontend, run pnpm run build.

environment variables

the frontend has several build-time environment variables for configuring various features. to use them, you must specify them when building the frontend (or running a vite server for development).

name example description
WEB_HOST cobalt.tools domain on which the frontend will be running. used for meta tags and configuring plausible.
WEB_PLAUSIBLE_HOST plausible.io* enables plausible analytics with provided hostname as receiver backend.
WEB_DEFAULT_API https://api.cobalt.tools/ changes url which is used for api requests by frontend clients.

* don't use plausible.io as receiver backend unless you paid for their cloud service. use your own domain when hosting community edition of plausible. refer to their docs when needed.

license

cobalt web code is licensed under CC-BY-NC-SA-4.0.

this license allows you to:

  • copy and redistribute the code in any medium or format, and
  • remix, transform, use and build upon the code

as long as you:

  • give appropriate credit to the original repo,
  • provide a link to the license and indicate if changes to the code were made,
  • release the code under the same license, and
  • don't use the code for any commercial purposes.

cobalt branding, mascots, and other related assets included in the repo are copyrighted and not covered by the license. you cannot use them under same terms.

you are allowed to host an unmodified instance of cobalt with branding for non-commercial purposes, but this does not give you permission to use the branding anywhere else, or make derivatives of it in any way.

when making an alternative version of the project, please replace or remove all branding (including the name).

3rd party licenses