From e1bf5a2d7aae8d7a2160cb09f894639246b9b7d3 Mon Sep 17 00:00:00 2001 From: Laurence Date: Fri, 3 Jul 2026 19:00:36 +0100 Subject: [PATCH] scaffold: 12 Hobbies Studio site + OpenScribe project page Initial static site (no framework, no build) for the 12 Hobbies Studio maker studio, featuring OpenScribe as the flagship project. What changed: - index.html: studio home - hero, featured OpenScribe block with sync diagram, projects grid, about. British spelling, dark warm theme. - projects/openscribe.html: OpenScribe product page. Leads with the "bring your own AI" differentiator, an interactive provider picker, the feature set, a four-step build guide, and licensing. - assets/styles.css: all styling (palette, cards, featured layout, picker, code blocks). - assets/app.js: dependency-free provider picker that swaps a sample server .env snippet across Ollama / OpenAI / Anthropic / Groq / LM Studio - on message with OpenScribe's any-AI design. - README, LICENSE (MIT for site code), .gitignore. Why: - The user asked to develop a site on 12 Hobbies Studio; this is the first cut, showcasing OpenScribe and the connect-to-any-AI capability. Branding uses sensible defaults and is trivially editable (noted in README). Notes: - Pure static files; deploy to any static host or Forgejo Pages. Validated: app.js passes node --check; HTML section tags balanced. Co-Authored-By: Claude Opus 4.8 --- .gitignore | 5 ++ LICENSE | 21 +++++++ README.md | 39 ++++++++++++ assets/app.js | 86 ++++++++++++++++++++++++++ assets/styles.css | 128 +++++++++++++++++++++++++++++++++++++++ index.html | 115 +++++++++++++++++++++++++++++++++++ projects/openscribe.html | 103 +++++++++++++++++++++++++++++++ 7 files changed, 497 insertions(+) create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 README.md create mode 100644 assets/app.js create mode 100644 assets/styles.css create mode 100644 index.html create mode 100644 projects/openscribe.html diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6fb2f28 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +.DS_Store +Thumbs.db +*.swp +*~ +node_modules/ diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..3c9a109 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 12 Hobbies Studio + +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: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +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. diff --git a/README.md b/README.md new file mode 100644 index 0000000..e226f43 --- /dev/null +++ b/README.md @@ -0,0 +1,39 @@ +# 12 Hobbies Studio - website + +A small, dependency-free static site for **12 Hobbies Studio**, a maker studio that builds +open-source, self-hostable projects. The flagship project featured here is +[OpenScribe](https://git.discworld.casa/laurence/openscribe), an open AI voice recorder you +can connect to any AI. + +> Note on branding: this is an initial site with sensible defaults (name, tagline, colours, +> copy). All of it is easy to change - edit `assets/styles.css` for the look and the HTML for +> the words. Nothing here is locked in. + +## What's here + +``` +index.html Studio home: hero, featured project, projects grid, about +projects/openscribe.html OpenScribe product page + interactive "bring your own AI" picker +assets/styles.css All styling (no framework, no build) +assets/app.js Provider picker that swaps a sample server .env snippet +``` + +## Preview locally + +It is plain HTML/CSS/JS - open `index.html` in a browser, or serve the folder: + +```bash +python -m http.server 8080 # then visit http://localhost:8080 +``` + +## Deploy + +Any static host works (it is just files). For Forgejo Pages, publish this repo per your +instance's Pages setup; for a plain web server, copy the files to the web root. There is no +build step and no server-side code. + +## Licence + +Site code (HTML/CSS/JS) is MIT (see `LICENSE`). Prose content is the studio's own. +OpenScribe is an independent project inspired by the Plaud class of device and is not +affiliated with Plaud. diff --git a/assets/app.js b/assets/app.js new file mode 100644 index 0000000..f2f61ed --- /dev/null +++ b/assets/app.js @@ -0,0 +1,86 @@ +// SPDX-License-Identifier: MIT +// Interactive AI-provider picker for the OpenScribe page. Swaps a sample server .env +// snippet as you choose a provider - the whole point of OpenScribe: bring your own AI. +(function () { + var PROVIDERS = { + ollama: { + label: "Ollama (local)", + lines: [ + ["c", "# Fully local and self-hosted - no cloud, no key"], + ["k", "OPENSCRIBE_LLM_PROVIDER", "ollama"], + ["k", "OPENSCRIBE_OLLAMA_URL", "http://localhost:11434"], + ["k", "OPENSCRIBE_OLLAMA_MODEL", "llama3.1"], + ], + }, + openai: { + label: "OpenAI", + lines: [ + ["c", "# Any OpenAI-compatible endpoint works the same way"], + ["k", "OPENSCRIBE_LLM_PROVIDER", "openai_compatible"], + ["k", "OPENSCRIBE_LLM_BASE_URL", "https://api.openai.com/v1"], + ["k", "OPENSCRIBE_LLM_API_KEY", "sk-..."], + ["k", "OPENSCRIBE_LLM_MODEL", "gpt-4o-mini"], + ], + }, + anthropic: { + label: "Anthropic (Claude)", + lines: [ + ["c", "# Commercial Claude via the official Anthropic API"], + ["k", "OPENSCRIBE_LLM_PROVIDER", "anthropic"], + ["k", "OPENSCRIBE_LLM_API_KEY", "sk-ant-..."], + ["k", "OPENSCRIBE_LLM_MODEL", "claude-opus-4-8"], + ], + }, + groq: { + label: "Groq", + lines: [ + ["c", "# Fast + cheap, OpenAI-compatible"], + ["k", "OPENSCRIBE_LLM_PROVIDER", "openai_compatible"], + ["k", "OPENSCRIBE_LLM_BASE_URL", "https://api.groq.com/openai/v1"], + ["k", "OPENSCRIBE_LLM_API_KEY", "gsk_..."], + ["k", "OPENSCRIBE_LLM_MODEL", "llama-3.3-70b-versatile"], + ], + }, + lmstudio: { + label: "LM Studio (local)", + lines: [ + ["c", "# A local model server on your LAN, OpenAI-compatible"], + ["k", "OPENSCRIBE_LLM_PROVIDER", "openai_compatible"], + ["k", "OPENSCRIBE_LLM_BASE_URL", "http://localhost:1234/v1"], + ["k", "OPENSCRIBE_LLM_MODEL", "local-model"], + ], + }, + }; + + function esc(s) { return s.replace(/&/g, "&").replace(/' + esc(l[1]) + ""; + return '' + esc(l[1]) + "=" + esc(l[2]); + }).join("\n"); + document.getElementById("env-out").innerHTML = html; + } + + function init() { + var picker = document.getElementById("provider-picker"); + if (!picker) return; + Object.keys(PROVIDERS).forEach(function (key, i) { + var b = document.createElement("button"); + b.type = "button"; + b.textContent = PROVIDERS[key].label; + b.setAttribute("aria-pressed", i === 0 ? "true" : "false"); + b.addEventListener("click", function () { + picker.querySelectorAll("button").forEach(function (x) { x.setAttribute("aria-pressed", "false"); }); + b.setAttribute("aria-pressed", "true"); + render(key); + }); + picker.appendChild(b); + }); + render(Object.keys(PROVIDERS)[0]); + } + + if (document.readyState !== "loading") init(); + else document.addEventListener("DOMContentLoaded", init); +})(); diff --git a/assets/styles.css b/assets/styles.css new file mode 100644 index 0000000..bdcb595 --- /dev/null +++ b/assets/styles.css @@ -0,0 +1,128 @@ +/* SPDX-License-Identifier: MIT + 12 Hobbies Studio - site styles. No framework, no build step. */ + +:root { + --ink: #10131a; + --ink-2: #171b24; + --panel: #1e2330; + --line: #2c3444; + --text: #e7ecf3; + --muted: #9aa6b8; + --accent: #f0a35e; /* warm amber */ + --accent-2: #6ec7c0; /* teal */ + --radius: 14px; + --wrap: 1080px; + --sans: ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; + --mono: ui-monospace, "SF Mono", "Cascadia Code", "Fira Code", Consolas, monospace; +} + +* { box-sizing: border-box; } + +html { scroll-behavior: smooth; } + +body { + margin: 0; + font-family: var(--sans); + color: var(--text); + background: + radial-gradient(1200px 600px at 80% -10%, rgba(240,163,94,0.10), transparent 60%), + radial-gradient(1000px 500px at -10% 10%, rgba(110,199,192,0.08), transparent 55%), + var(--ink); + line-height: 1.6; +} + +a { color: var(--accent); text-decoration: none; } +a:hover { text-decoration: underline; } + +.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; } + +/* Header */ +.site-header { + position: sticky; top: 0; z-index: 10; + backdrop-filter: blur(8px); + background: rgba(16,19,26,0.72); + border-bottom: 1px solid var(--line); +} +.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; } +.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.2px; color: var(--text); } +.brand .mark { + display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; + background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #0c0e13; font-weight: 800; +} +.nav a { color: var(--muted); margin-left: 22px; font-weight: 500; } +.nav a:hover { color: var(--text); text-decoration: none; } + +/* Hero */ +.hero { padding: 84px 0 40px; } +.eyebrow { color: var(--accent-2); font-family: var(--mono); font-size: 0.82rem; letter-spacing: 2px; text-transform: uppercase; } +.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; margin: 12px 0 14px; } +.hero p.lead { font-size: 1.18rem; color: var(--muted); max-width: 640px; } +.hero .accent { color: var(--accent); } + +/* Buttons */ +.btn { + display: inline-block; padding: 11px 18px; border-radius: 10px; font-weight: 600; + border: 1px solid var(--line); color: var(--text); background: var(--panel); +} +.btn:hover { text-decoration: none; border-color: var(--accent); } +.btn.primary { background: linear-gradient(135deg, var(--accent), #e8925a); color: #14100a; border: none; } +.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; } + +/* Sections */ +section { padding: 46px 0; } +h2 { font-size: 1.7rem; margin: 0 0 6px; } +.section-sub { color: var(--muted); margin: 0 0 26px; } + +/* Cards / grid */ +.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); } +.card { + background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); + padding: 20px; transition: border-color .15s, transform .15s; +} +.card:hover { border-color: var(--accent); transform: translateY(-2px); } +.card h3 { margin: 0 0 6px; font-size: 1.12rem; } +.card p { color: var(--muted); margin: 0; } +.card .tag { display: inline-block; font-family: var(--mono); font-size: 0.72rem; color: var(--accent-2); + border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; margin-bottom: 10px; } +.card.soon { opacity: 0.72; } + +/* Featured */ +.featured { + display: grid; grid-template-columns: 1.2fr 1fr; gap: 26px; align-items: center; + background: linear-gradient(180deg, var(--ink-2), var(--panel)); + border: 1px solid var(--line); border-radius: 18px; padding: 28px; +} +.featured h2 { font-size: 1.9rem; } +.featured .kicker { color: var(--accent); font-family: var(--mono); font-size: .8rem; letter-spacing: 1.5px; text-transform: uppercase; } +.featured ul { margin: 14px 0 0; padding-left: 18px; color: var(--muted); } +.diagram { + font-family: var(--mono); font-size: 0.8rem; color: var(--muted); + background: #0c0f16; border: 1px solid var(--line); border-radius: 12px; padding: 16px; white-space: pre; overflow-x: auto; +} +@media (max-width: 780px) { .featured { grid-template-columns: 1fr; } } + +/* Provider picker (openscribe page) */ +.picker { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; } +.picker button { + font-family: var(--sans); font-size: .92rem; cursor: pointer; + background: var(--panel); color: var(--text); border: 1px solid var(--line); + border-radius: 999px; padding: 8px 15px; +} +.picker button[aria-pressed="true"] { border-color: var(--accent); background: rgba(240,163,94,0.14); color: var(--text); } +pre.code { + font-family: var(--mono); font-size: 0.86rem; color: #d7e2f0; + background: #0c0f16; border: 1px solid var(--line); border-radius: 12px; padding: 16px; overflow-x: auto; +} +pre.code .c { color: var(--muted); } +pre.code .k { color: var(--accent-2); } + +/* Feature list */ +.features { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); } +.feature { border-left: 2px solid var(--accent); padding-left: 14px; } +.feature h4 { margin: 0 0 3px; } +.feature p { margin: 0; color: var(--muted); font-size: 0.96rem; } + +/* Footer */ +.site-footer { border-top: 1px solid var(--line); padding: 30px 0; color: var(--muted); } +.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; } +.pill { font-family: var(--mono); font-size: .75rem; color: var(--accent-2); } diff --git a/index.html b/index.html new file mode 100644 index 0000000..a1a2ef4 --- /dev/null +++ b/index.html @@ -0,0 +1,115 @@ + + + + + + + 12 Hobbies Studio - open, self-hosted maker projects + + + + + + +
+
+
+
A maker studio
+

Twelve hobbies, one habit:
build it open, run it yourself.

+

12 Hobbies Studio makes small, open-source, self-hostable projects across + hardware, software and everything in between. No lock-in, no subscriptions you cannot leave, + no data you do not own.

+ +
+
+ +
+
+ +
+
+ +
+
+

Projects

+

One shipped, more in the workshop. Everything here is open source.

+
+ + hardware + AI +

OpenScribe

+

Self-hosted AI voice recorder. Bring your own AI, open or commercial.

+
+
+ in the workshop +

More soon

+

New hobbies, new builds. This grid grows as projects ship.

+
+
+ idea +

Your idea?

+

Open a discussion on the forge. The studio likes a good excuse to build.

+
+
+
+
+ +
+
+

About the studio

+

+ 12 Hobbies Studio is a home for maker projects that are worth doing properly and worth + sharing. The through-line: build in the open, keep the data with the person who made it, + and let anyone reproduce the whole thing from the repo alone. Firmware, servers and apps + are copyleft; hardware is open-hardware licensed; docs are share-alike. +

+
+
+
+ + + + diff --git a/projects/openscribe.html b/projects/openscribe.html new file mode 100644 index 0000000..94dbaaa --- /dev/null +++ b/projects/openscribe.html @@ -0,0 +1,103 @@ + + + + + + + OpenScribe - open, self-hosted AI voice recorder | 12 Hobbies Studio + + + + + + +
+
+
+
Project - hardware + AI
+

OpenScribe

+

An open-source, self-hosted AI voice recorder in the spirit of a Plaud device. + Record on a small ESP32-S3, sync to your phone and your own server, and turn recordings into + transcripts and summaries with any AI you choose.

+ +
+
+ +
+
+

Bring your own AI

+

This is the difference. A commercial recorder locks you to its cloud. + OpenScribe lets you point transcription and summaries at whatever you want - a local model, + an open-standard endpoint, or a commercial API. Pick one and drop it in your server config:

+
+
+

Transcription is just as flexible: local faster-whisper, or + any OpenAI-compatible audio endpoint (OpenAI, Groq, or your own whisper server).

+
+
+ +
+
+

What it does

+

The expected recorder features, without the lock-in.

+
+

One-button recording

Capture to microSD on a wearable ESP32-S3. No length limit.

+

Three ways to sync

BLE for control, WiFi to the app, and independent WiFi upload when on charge.

+

Transcribe + summarise

Server-side, with the AI provider you chose. Overview, key points, action items.

+

Completely open API

List, download and export recordings (audio, TXT, SRT, VTT, Markdown, JSON).

+

Self-hosted storage

Upload to your own S3-compatible store, WebDAV or NAS. Your data stays yours.

+

Mobile app

Flutter app for Android and iOS: provisioning, library, playback, summaries.

+
+
+
+ +
+
+

Build one

+

Off-the-shelf parts, a printed case, and a server you run.

+
+
hardware

1. Get the parts

ESP32-S3 with PSRAM, an I2S MEMS mic, a microSD card, a LiPo and a charge IC. Full BOM in the repo.

+
firmware

2. Flash it

PlatformIO builds two board profiles. Record to WAV, then sync over WiFi and the on-device REST API.

+
case

3. Print the case

Parametric OpenSCAD enclosure you can re-tune to your exact board and battery.

+
server

4. Run the server

FastAPI ingest + transcription + summaries. Point it at your chosen AI and storage.

+
+ +
+
+ +
+
+

Open all the way down

+

+ Firmware, server and app are GPL-3.0. The hardware design is CERN-OHL-S. The case and docs + are CC-BY-SA. Anyone can build it, improve it, and keep the result open. OpenScribe is an + independent project inspired by the Plaud class of device; it is not affiliated with Plaud. +

+
+
+
+ + + + + +