8000 GitHub - joshmu/videonote: Deprecated: no longer maintained. VideoNote carries on at videonote.app. · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Nov 1, 2026. It is now read-only.
joshmuPublic archive

About

Deprecated: no longer maintained. VideoNote carries on at videonote.app.

Topics

Resources

Stars

12 stars

Watchers

2 watching

Forks

Latest commit

 

History

639 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VideoNote

Warning

This repository is deprecated and no longer maintained. VideoNote carries on at videonote.app, developed privately. This code is kept for reference.

A video review app with slick intuitive controls to create timestamped notes on the fly. ✨

Tech Stack

Some additional experimental features are enabled in tailwind.config.js: uniformColorPalette, extendedSpacingScale, extendedFontSizeScale

Setup

  • Docker (DynamoDB Local)
  • JWT secret

Create a .env.local based on the .env.example for local development.

Run it

pnpm install && pnpm db:up && pnpm dev, then pnpm db:seed for demo data.

Test it

  • pnpm test: unit and server tests
  • pnpm test:e2e: production build plus Playwright user flows (needs ffmpeg and pnpm exec playwright install chromium)

API conventions

Routes under pages/api/ use two small higher-order wrappers from utils/auth/withAuthenticatedUser.ts to keep authentication out of the handler bodies:

  • withAuthenticatedUser(handler) — required for routes that mutate user data (auth, user, settings, project). The handler receives a third ctx argument with { userDoc, email, newToken }. Missing/invalid tokens short-circuit with 401; missing users short-circuit with 401.
  • withOptionalUser(handler) — used by pages/api/note.ts, which allows guest note creation. The handler receives a discriminated ctx: either { isGuest: true, ... null } or the full authenticated context. A token that is present but invalid still 401s — there is no silent fallback to the guest branch.

Shared-project access goes through utils/share/sharePassword.ts:

  • hashSharePassword(plaintext) — used by pages/api/project.ts when creating or updating a Share document. Returns null for empty input.
  • verifySharePassword(storedHash, candidate) — used by pages/api/public_project.ts when reading a shared project. Returns a ShareAccessResult discriminated union: open | passwordRequired | incorrect | ok.

Note write-path goes through utils/note/noteIntake.ts:

  • upsertNote(input, authorId) — used by pages/api/note.ts. Creates if _id is not found, updates otherwise. On create also attaches the note id to its Project. Pass null for authorId to skip authorship (guest path).
  • removeDoneProjectNotes(projectId) — used by the same handler for the REMOVE_DONE_NOTES action; returns the surviving notes.

All three modules have unit tests under src/__test__/ that exercise behaviour through their public interface.

About

Deprecated: no longer maintained. VideoNote carries on at videonote.app.

Topics

Resources

Stars

12 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages

0