Opening the main stage soonSite still under construction

A private initiative by MortyG, who is not a doctor or health professional. Tips here are personal experience, not medical advice. Read more

MGH Productions · Story studio

Ekorn.

A little life in the treetops.

Watch the squirrel video with three different stories. Choose a male, female or robot voice; saved recordings can be replayed. Sign-in is only needed to create stories from your own videos.

Morten’s squirrelReady
0:00 / 0:00

Story studio

18 / 18

The Fluffy Inspector

Story

Narrator

Story text

A squirrel climbs down the pine trunk, its bushy tail above it. Then we glimpse it among the branches. In our pretend story, this is the forest’s staircase inspector. So many branches to check! Apparently, this building has forgotten to install a lift.

AI-written fiction inspired by the video; AI-generated voices.

A squirrel. A friend. An idea.

I spotted a squirrel and filmed it for my friend Tapalena on TikTok, who loves squirrels. After filming, I thought: wouldn’t it be funny to send her the video with a narrated voice? That little idea became Ekorn — my own AI storytelling generator.

Morten Granli-Hansen · The idea behind Ekorn

How Ekorn works · technology & costs

Tech Talk

Small parts. Clear responsibilities.

Ekorn separates video preparation, storytelling, narration, storage and playback. These are logical modules, not separately deployed Docker containers. AI sees sampled still images, not every moment of the film, and writes fictional stories. Saved media does the work when you listen again.

Visitor analytics and click tracking are turned off. Optional browser storage now waits for the visitor’s answer: one shared helper keeps language, curtain and similar choices in memory for the visit, and writes them to localStorage only after “Remember my choices”; the offline service worker and Cache Storage start only after “Offline use”. Rejecting removes saved choices and offline files. The answer itself, sign-in sessions and Cloudflare’s short ‘__cf_bm’ security cookie are treated as necessary; that cookie arrives with the first response from the hosting network, before any question can be shown, so it is disclosed openly rather than asked about. The Privacy & cookies page lists every stored item and every outside service (Cloudflare, Lovable, Google Fonts, OpenAI and Google for Ekorn, Spotify) with links to their own privacy policies. The opening curtain follows the same answer everywhere, including the Home Screen icon: without a yes it shows on every new visit. The language button names the language it switches to (“Switch to English” / “Bytt til norsk”), so it is not mistaken for the language already shown. This is a design choice, not a compliance certification. The record crate on the Music page shows only the records the owner has switched on: the choices live in one small table where visitors can read only the records switched on, so hidden records and their names stay private; only the admin role can see and change every choice, and every record stays hidden until switched on. Covers are web-sized copies on the CDN, and the sliding vinyl is a flat layer behind the sleeve, so it never cuts through the sleeve as it turns. Below the crate, a Spotify section links straight to MortyG’s verified artist page; Spotify’s own artist player loads only after the visitor presses play, and the Spotify icon is shown unchanged in Spotify green, as Spotify’s design guidelines ask when linking to Spotify content. A note at the top says the Music page is still under construction and jumps to the listening section, which also links to MortyG’s artist pages on Apple Music, Deezer and iHeartRadio. Those are plain text links, checked against each service before adding, so nothing connects to them until a visitor clicks; Tidal, Amazon Music and YouTube Music are added once their artist links are confirmed. The top bar has one account button that reads its label from the live sign-in session: “Log in” when signed out, “Log out” when signed in. Logging out clears everything cached while signed in, then shows the same page as a visitor; on private pages it goes to the home page instead. Next to it, the owner sees a gold Admin shortcut and invited customers see “My workspace”; visitors see neither. The Admin home is a map with one tile per owner tool, read from a single list so a new tool is added in one place; the tools stay where they work, and each still checks the admin role in the database itself, so the shortcuts change only what is shown, never who can open or change anything.

Security & privacy

Creating your own video requires sign-in. Video and narration records are scoped to their creator, and private media uses temporary links. Sampled frames and story text are sent to AI services during creation. The public squirrel demo is intentionally shared; your uploads are not. Only upload footage you have permission to use.

Maintenance

Frame extraction, story generation, voice creation, robot processing and playback have separate responsibilities. A voice effect can change without rewriting the player. Focused tests cover recording choices, video validation, robot processing and playback timing. Model and browser changes still need listening and playback checks.

Low AI cost

A new video gets three stories in both languages and up to 18 saved recordings. A recording is claimed before synthesis to reduce duplicate work from concurrent requests. Replaying a saved voice makes no new AI call. There is no enforced spending ceiling today. Creation, interrupted generation, hosting, storage and media delivery may still cost money; there is no claim of zero total running cost.

Why this architecture now?

For Ekorn’s current scope, the browser handles video preparation and playback, while Lovable Cloud handles protected creation and private storage. Keeping these jobs in clear modules lets us improve one part at a time without operating a separate Docker host. We avoid adding container images, server patching and deployment monitoring to the maintenance list. The main AI-cost control is generating a recording once and reusing it—not how the app is packaged. This is a practical starting point, not a measured claim that it is the cheapest possible setup.

When Docker could make sense

If Ekorn grows to process longer films, run heavier audio or video tools, or handle queued batches of recordings, a separate Docker-based media worker could become useful. A container packages those tools and their dependencies consistently, and the worker could be scaled separately from the player. The existing website, sign-in and saved library could remain in place. This is a future option, not a service running today.

Docker alone does not make the app secure or reduce AI-provider charges. A future worker would need verified job access, creator-scoped files, protected secrets, resource limits, safe retries that avoid duplicate synthesis, updates and monitoring. We should measure processing time, queue load and hosting costs before deciding whether the extra operation is worthwhile.

Possible next steps — not available yet

  • Review and edit scripts before generating voices, so unwanted text is not narrated.
  • Generate only the voices you choose first, with a visible creation budget and enforced usage limits.
  • Add deletion controls, retention choices and clearer recovery for interrupted generation.

Architecture drawing · Ekorn

Creator’s browser → protected cloud functions → AI services

  1. 01

    Video & ordered frames

    The browser prepares the film and extracts still images.

  2. 02

    Sign-in & ownership check

    Protected functions check the creator before generation.

  3. 03

    AI stories → AI voices

    Three bilingual stories; male, female and retro-robot recordings.

  4. 04

    Private saved library

    Stories and recordings are stored; media links expire.

  5. 05

    Synchronized replay

    Saved narration controls the film; no new AI generation.

Creation crosses the AI boundary. Replay reads saved media instead; narration is the playback clock.

Container demo: Ekorn

Press start to see how this app would boot as a container. It is a simulation in your browser: no server starts and it costs nothing.

Illustration only. The live app does not run in a container today.

When containers would help Ekorn

  • Many uploads at once

    Heavier video jobs could run in a separate worker that scales out with the queue instead of slowing the site.

  • Same result everywhere

    The image packs the code and its dependencies, so the worker behaves the same on a laptop and in the cloud.

  • Pay when busy

    Serverless container hosts can scale to zero instances when there are no jobs.

Independent sources for the demo

When should Ekorn switch to containers?

Ekorn is the app that gains most: video jobs grow with every upload. Today each job runs inside a short web request. A container worker costs a fixed amount per month, but each video becomes cheaper and longer jobs fit. Move the sliders to see total cost of ownership (TCO) over 24 months.

Monthly break-even
100 videos/month
Container pays off (incl. setup)
Month 24
Difference after 24 months
564 kr

Signs it is time to switch

  • Volume passes the break-even line above, month after month.
  • Videos get longer than a web request can handle within its time limit.
  • Uploads arrive in bursts and need a queue that scales out.
  • Heavier tools (e.g. FFmpeg) are needed that do not run on the edge runtime.

Example numbers only, not a provider quote or this site's bill. AI narration costs are the same in both setups and are left out. Time limits and runtime limits: see Cloudflare Workers limits and Cloud Run request timeout below.