Skip to content

armgit / ente

Public Imported from GitHub
0

๐Ÿ’š End-to-end encrypted cloud for everything.

Format web Markdown

Manav Rathi774df0c1fb5d
diff --git a/web/CLAUDE.md b/web/CLAUDE.md
index f51e8dc152..eb4e2f0757 100644
--- a/web/CLAUDE.md
+++ b/web/CLAUDE.md
@@ -46,8 +46,7 @@ yarn lint # Check formatting, linting, and TypeScript types
yarn lint:fix # Auto-fix linting and formatting issues
```
-Use plain `yarn install` only when intentionally updating dependencies and
-reviewing the resulting `yarn.lock` changes.
+Use plain `yarn install` only when intentionally updating dependencies and reviewing the resulting `yarn.lock` changes.
## Structure
diff --git a/web/README.md b/web/README.md
index 2200092fd8..371eee8a06 100644
--- a/web/README.md
+++ b/web/README.md
@@ -9,8 +9,7 @@ Live versions are at:
- Ente Auth: [auth.ente.com](https://auth.ente.com)
- Ente Locker: [locker.ente.com](https://locker.ente.com)
-To know more about Ente, see [our main README](../README.md) or visit
-[ente.com](https://ente.com).
+To know more about Ente, see [our main README](../README.md) or visit [ente.com](https://ente.com).
## Building from source
@@ -22,8 +21,7 @@ Install dependencies
yarn install --frozen-lockfile
```
-Use plain `yarn install` only when you are intentionally updating dependencies
-and reviewing the resulting `yarn.lock` changes.
+Use plain `yarn install` only when you are intentionally updating dependencies and reviewing the resulting `yarn.lock` changes.
Start a local development server
@@ -35,17 +33,13 @@ That's it. The web app will automatically hot reload when you make changes.
> [!TIP]
>
-> If you're new to web development and unsure about how to get started, or are
-> facing some problems when running the above steps, see
-> [docs/new](docs/new.md).
+> If you're new to web development and unsure about how to get started, or are facing some problems when running the above steps, see [docs/new](docs/new.md).
## Other apps
-By default, `yarn dev` builds the Photos app. To run the public albums app, use
-`yarn dev:albums`. To run auth, use `yarn dev:auth`.
+By default, `yarn dev` builds the Photos app. To run the public albums app, use `yarn dev:albums`. To run auth, use `yarn dev:auth`.
-To see the full list of apps you can run (and other scripts that you can use),
-use `yarn run`.
+To see the full list of apps you can run (and other scripts that you can use), use `yarn run`.
For more details about development workflows, see [docs/dev](docs/dev.md).
@@ -54,33 +48,24 @@ For more details about development workflows, see [docs/dev](docs/dev.md).
As a brief overview, this directory contains the following apps:
- `apps/photos`: A fully functional web client for Ente Photos.
-- `apps/albums`: The public albums web app used for shared album and file
- links.
-- `apps/auth`: A view only client for Ente Auth. Currently you can only view
- your 2FA codes using this web app. For adding and editing your 2FA codes,
- please use the Ente Auth [mobile/desktop app](../auth/README.md) instead.
+- `apps/albums`: The public albums web app used for shared album and file links.
+- `apps/auth`: A view only client for Ente Auth. Currently you can only view your 2FA codes using this web app. For adding and editing your 2FA codes, please use the Ente Auth [mobile/desktop app](../auth/README.md) instead.
-These are the primary public facing apps. There are other parts of the code
-which are accessed as features within the main apps, but in terms of code are
-independently maintained and deployed:
+These are the primary public facing apps. There are other parts of the code which are accessed as features within the main apps, but in terms of code are independently maintained and deployed:
- `apps/accounts`: Passkey support.
- `apps/cast`: Browser and Chromecast casting support.
- `apps/payments`: Handle subscription payments.
-> Apart from these, we also have the manage family portal whose code is
-> currently in a separate repository (https://github.com/ente-io/families) and
-> still needs to be brought here.
+> Apart from these, we also have the manage family portal whose code is currently in a separate repository (https://github.com/ente-io/families) and still needs to be brought here.
The apps take use various `packages/` to share code amongst themselves.
-You might also find this [overview of dependencies](docs/dependencies.md)
-useful.
+You might also find this [overview of dependencies](docs/dependencies.md) useful.
## Docker images
-A Docker image containing the self-hosting web apps is available from
-`ghcr.io/ente-io/web`. See [docs/docker.md](docs/docker.md) for more details.
+A Docker image containing the self-hosting web apps is available from `ghcr.io/ente-io/web`. See [docs/docker.md](docs/docker.md) for more details.
## Attributions
@@ -90,13 +75,9 @@ City coordinates from [Simple Maps](https://simplemaps.com/data/world-cities)
[![Crowdin](https://badges.crowdin.net/ente-photos-web/localized.svg)](https://crowdin.com/project/ente-photos-web)
-If you're interested in helping out with translation, please visit our
-[Crowdin project](https://crowdin.com/project/ente-photos-web) to get started.
-Thank you for your support.
+If you're interested in helping out with translation, please visit our [Crowdin project](https://crowdin.com/project/ente-photos-web) to get started. Thank you for your support.
-If your language is not listed for translation, please
-[create a GitHub issue](https://github.com/ente-io/ente/issues/new?title=Request+for+New+Language+Translation&body=Language+name%3A)
-to have it added.
+If your language is not listed for translation, please [create a GitHub issue](https://github.com/ente-io/ente/issues/new?title=Request+for+New+Language+Translation&body=Language+name%3A) to have it added.
## ๐Ÿ’š Contribute
diff --git a/web/apps/accounts/README.md b/web/apps/accounts/README.md
index 36c55af38f..aa4d43531a 100644
--- a/web/apps/accounts/README.md
+++ b/web/apps/accounts/README.md
@@ -2,27 +2,19 @@
Code that runs on `accounts.ente.com`.
-Primarily, this serves a common domain where our clients can create and
-authenticate using shared passkeys tied to the user's Ente account.
+Primarily, this serves a common domain where our clients can create and authenticate using shared passkeys tied to the user's Ente account.
> [!NOTE]
>
-> Passkeys can be shared by multiple subdomains, so we didn't strictly need a
-> separate web origin for sharing passkeys between our (photos and auth) web
-> clients, but we do need a web origin to handle the passkey flow for the
-> desktop and mobile clients.
+> Passkeys can be shared by multiple subdomains, so we didn't strictly need a separate web origin for sharing passkeys between our (photos and auth) web clients, but we do need a web origin to handle the passkey flow for the desktop and mobile clients.
-`accounts.ente.io` remains the legacy origin for users who already have
-Passkeys scoped to the old `ente.io` relying-party ID.
+`accounts.ente.io` remains the legacy origin for users who already have Passkeys scoped to the old `ente.io` relying-party ID.
-For more details about the Passkey flows,
-[docs/webauthn-passkeys.md](../../docs/webauthn-passkeys.md).
+For more details about the Passkey flows, [docs/webauthn-passkeys.md](../../docs/webauthn-passkeys.md).
## Development
-To set this up to work with a locally running museum, modify your local
-`museum.yaml` to set the relaying party's ID to "localhost" (without any port
-number).
+To set this up to work with a locally running museum, modify your local `museum.yaml` to set the relaying party's ID to "localhost" (without any port number).
```yaml
webauthn:
@@ -31,5 +23,4 @@ webauthn:
- "http://localhost:3001"
```
-Note that browsers already treat `localhost` as a secure domain, so Passkey APIs
-will work even if our local dev server is using `http`.
+Note that browsers already treat `localhost` as a secure domain, so Passkey APIs will work even if our local dev server is using `http`.
diff --git a/web/apps/payments/README.md b/web/apps/payments/README.md
index 71071972c1..f84d18aede 100644
--- a/web/apps/payments/README.md
+++ b/web/apps/payments/README.md
@@ -1,7 +1,6 @@
# Payments
-Code that runs on `payments.ente.com`. It brokers between our services and
-Stripe's API for payments.
+Code that runs on `payments.ente.com`. It brokers between our services and Stripe's API for payments.
## Development
@@ -13,8 +12,7 @@ There are three pieces that need to be connected to have a working local setup:
### Client app
-For the client, let us consider the Photos web app (similar configuration can be
-done in the mobile client too).
+For the client, let us consider the Photos web app (similar configuration can be done in the mobile client too).
Add the following to `web/apps/photos/.env.local`:
@@ -32,15 +30,11 @@ yarn dev:photos
This tells it to connect to the museum and payments app running on localhost.
-> For connecting from the mobile app, you'll need to run museum on a local IP
-> instead localhost. If so, just replace "http://localhost:8080" with (say)
-> "http://192.168.1.2:8080" wherever mentioned.
+> For connecting from the mobile app, you'll need to run museum on a local IP instead localhost. If so, just replace "http://localhost:8080" with (say) "http://192.168.1.2:8080" wherever mentioned.
### Payments app
-For this (payments) web app, configure it to connect to the local museum, and
-use a set of (development) Stripe keys which can be found in
-[Stripe's developer dashboard](https://dashboard.stripe.com).
+For this (payments) web app, configure it to connect to the local museum, and use a set of (development) Stripe keys which can be found in [Stripe's developer dashboard](https://dashboard.stripe.com).
Add the following to `web/apps/payments/.env.local`:
@@ -57,16 +51,13 @@ yarn dev:payments
### Museum
-1. Install the [stripe-cli](https://docs.stripe.com/stripe-cli) and capture the
- webhook signing secret.
+1. Install the [stripe-cli](https://docs.stripe.com/stripe-cli) and capture the webhook signing secret.
2. Define this secret within your `museum.yaml`
-3. Update the `whitelisted-redirect-urls` so that it supports redirecting to the
- locally running payments app.
+3. Update the `whitelisted-redirect-urls` so that it supports redirecting to the locally running payments app.
-Assuming that your local payments app is running on `localhost:3001`, your
-`server/museum.yaml` should look as follows.
+Assuming that your local payments app is running on `localhost:3001`, your `server/museum.yaml` should look as follows.
```yaml
stripe:
@@ -82,8 +73,7 @@ stripe:
cancel: ?status=fail&reason=canceled
```
-Make sure you have test plans available for museum to use, by placing them in
-(say) `server/data/billing/us-testing.json`.
+Make sure you have test plans available for museum to use, by placing them in (say) `server/data/billing/us-testing.json`.
Finally, start museum, for example:
@@ -91,7 +81,4 @@ Finally, start museum, for example:
docker compose up
```
-Now if you try to purchase a plan from your locally running photos web client,
-it should redirect to the locally running payments app, and from there to
-Stripe. Once the test purchase completes it should redirect back to the local
-web client.
+Now if you try to purchase a plan from your locally running photos web client, it should redirect to the locally running payments app, and from there to Stripe. Once the test purchase completes it should redirect back to the local web client.
diff --git a/web/docs/README.md b/web/docs/README.md
index ca1a53b57e..6a5d55a29b 100644
--- a/web/docs/README.md
+++ b/web/docs/README.md
@@ -7,8 +7,7 @@ yarn install --frozen-lockfile
yarn dev
```
-The docs in this directory provide more details that some developers might find
-useful.
+The docs in this directory provide more details that some developers might find useful.
> [!TIP]
>
diff --git a/web/docs/dependencies.md b/web/docs/dependencies.md
index 636f828911..04e312e538 100644
--- a/web/docs/dependencies.md
+++ b/web/docs/dependencies.md
@@ -2,8 +2,7 @@
## Dev
-These are some global dev dependencies in the root `package.json`. These set the
-baseline for how our code be in all the workspaces in this (yarn) monorepo.
+These are some global dev dependencies in the root `package.json`. These set the baseline for how our code be in all the workspaces in this (yarn) monorepo.
- [prettier](https://prettier.io) - Formatter
@@ -11,291 +10,172 @@ baseline for how our code be in all the workspaces in this (yarn) monorepo.
- [typescript](https://www.typescriptlang.org/) - Type checker
-They also need some support packages, which come from the leaf
-`ente-build-config` package:
+They also need some support packages, which come from the leaf `ente-build-config` package:
-- [@eslint/js](https://eslint.org/) provides JavaScript ESLint functionality,
- and provides the configuration recommended the by ESLint team.
+- [@eslint/js](https://eslint.org/) provides JavaScript ESLint functionality, and provides the configuration recommended the by ESLint team.
-- [typescript-eslint](https://typescript-eslint.io/packages/typescript-eslint/)
- \- provides TypeScript ESLint functionality and provides a set of recommended
- configurations (`typescript-eslint` is the new entry point, our yet-unmigrated
- packages use the older method of separately including
- [@typescript-eslint/parser](https://typescript-eslint.io/packages/eslint-plugin/)
- \- which tells ESLint how to read TypeScript syntax - and
- [@typescript-eslint/eslint-plugin](https://typescript-eslint.io/packages/eslint-plugin/)
- \- which provides the TypeScript rules and presets).
+- [typescript-eslint](https://typescript-eslint.io/packages/typescript-eslint/) \- provides TypeScript ESLint functionality and provides a set of recommended configurations (`typescript-eslint` is the new entry point, our yet-unmigrated packages use the older method of separately including [@typescript-eslint/parser](https://typescript-eslint.io/packages/eslint-plugin/) \- which tells ESLint how to read TypeScript syntax - and [@typescript-eslint/eslint-plugin](https://typescript-eslint.io/packages/eslint-plugin/) \- which provides the TypeScript rules and presets).
-- [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react),
- [eslint-plugin-react-hooks](https://reactjs.org/) \- Some React specific
- ESLint rules and configurations that are used by the workspaces that have
- React code.
+- [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react), [eslint-plugin-react-hooks](https://reactjs.org/) \- Some React specific ESLint rules and configurations that are used by the workspaces that have React code.
-- [eslint-plugin-react-refresh](https://github.com/ArnaudBarre/eslint-plugin-react-refresh)
- \- A plugin to ensure that React components are exported in a way that they
- can be HMR-ed.
+- [eslint-plugin-react-refresh](https://github.com/ArnaudBarre/eslint-plugin-react-refresh) \- A plugin to ensure that React components are exported in a way that they can be HMR-ed.
-- [prettier-plugin-organize-imports](https://github.com/simonhaenisch/prettier-plugin-organize-imports)
- \- A Prettier plugin to sort imports.
+- [prettier-plugin-organize-imports](https://github.com/simonhaenisch/prettier-plugin-organize-imports) \- A Prettier plugin to sort imports.
-- [prettier-plugin-packagejson](https://github.com/matzkoh/prettier-plugin-packagejson)
- \- A Prettier plugin to also prettify `package.json`.
+- [prettier-plugin-packagejson](https://github.com/matzkoh/prettier-plugin-packagejson) \- A Prettier plugin to also prettify `package.json`.
The root `package.json` also has a convenience dev dependency:
-- [concurrently](https://github.com/open-cli-tools/concurrently) for spawning
- parallel tasks when we invoke various yarn scripts.
+- [concurrently](https://github.com/open-cli-tools/concurrently) for spawning parallel tasks when we invoke various yarn scripts.
> [!NOTE]
>
-> We need to repeat some of the dependencies in multiple `package.json`s to
-> avoid spurious missing peer dependency warnings.
+> We need to repeat some of the dependencies in multiple `package.json`s to avoid spurious missing peer dependency warnings.
>
-> For example, ideally we'd just have specified the react dependencies in
-> _ente-base_, but that leads to missing peer dependency warnings in our other
-> packages, so we need to need to repeat them. For now, we manually ensure that
-> all of them use the same version.
+> For example, ideally we'd just have specified the react dependencies in _ente-base_, but that leads to missing peer dependency warnings in our other packages, so we need to need to repeat them. For now, we manually ensure that all of them use the same version.
>
-> Additionally, we pin the versions of the react types using the resolutions
-> field in the top level `package.json`, to avoid type errors because of
-> multiple versions of react types being in scope.
+> Additionally, we pin the versions of the react types using the resolutions field in the top level `package.json`, to avoid type errors because of multiple versions of react types being in scope.
## Cryptography
-We use [libsodium](https://libsodium.gitbook.io/doc/) for our cryptography
-primitives. We use its WebAssembly target, accessible via JavaScript wrappers
-maintained by the original authors of libsodium themselves -
-[libsodium-wrappers](https://github.com/jedisct1/libsodium.js).
+We use [libsodium](https://libsodium.gitbook.io/doc/) for our cryptography primitives. We use its WebAssembly target, accessible via JavaScript wrappers maintained by the original authors of libsodium themselves - [libsodium-wrappers](https://github.com/jedisct1/libsodium.js).
-More precisely, we use the sumo variant, "libsodium-wrappers-sumo", since the
-standard variant does not provide the `crypto_pwhash_*` functions.
+More precisely, we use the sumo variant, "libsodium-wrappers-sumo", since the standard variant does not provide the `crypto_pwhash_*` functions.
## Meta frameworks
### Next.js
-[Next.js](https://nextjs.org) (package:
-[next](https://github.com/vercel/next.js)) provides the meta framework for both
-the photos and the auth app, and also for some of the sidecar apps like accounts
-and cast.
+[Next.js](https://nextjs.org) (package: [next](https://github.com/vercel/next.js)) provides the meta framework for both the photos and the auth app, and also for some of the sidecar apps like accounts and cast.
-We use a limited subset of Next.js. The main thing we get out of it is a
-reasonable set of defaults for bundling our app into a static export which we
-can then deploy to our webserver. In addition, the Next.js page router is
-convenient. Overall our apps can be described as regular React SPAs, and are not
-particularly tied to Next.js.
+We use a limited subset of Next.js. The main thing we get out of it is a reasonable set of defaults for bundling our app into a static export which we can then deploy to our webserver. In addition, the Next.js page router is convenient. Overall our apps can be described as regular React SPAs, and are not particularly tied to Next.js.
### Vite
-For some of our newer code, we have started to use [Vite](https://vitejs.dev).
-It is likely the future (both generally, and for our code) since Next.js is
-becoming less suitable for SPAs and static SSR with their push towards RSC and
-dynamic SSR.
+For some of our newer code, we have started to use [Vite](https://vitejs.dev). It is likely the future (both generally, and for our code) since Next.js is becoming less suitable for SPAs and static SSR with their push towards RSC and dynamic SSR.
## UI
### React
-[React](https://react.dev) (package: [react](https://github.com/facebook/react))
-is our core framework. We also import its a sibling
-[react-dom](https://github.com/facebook/react) package that renders JSX to the
-DOM.
+[React](https://react.dev) (package: [react](https://github.com/facebook/react)) is our core framework. We also import its a sibling [react-dom](https://github.com/facebook/react) package that renders JSX to the DOM.
### MUI and Material Icons
-We use [MUI](https://mui.com)'s
-[@mui/material](https://mui.com/material-ui/getting-started/installation/) as
-our base React component library (In our code and documentation, we use the name
-"MUI" to refer to the the combination of both MUI's "Material UI" and "System"
-packages that we use).
+We use [MUI](https://mui.com)'s [@mui/material](https://mui.com/material-ui/getting-started/installation/) as our base React component library (In our code and documentation, we use the name "MUI" to refer to the the combination of both MUI's "Material UI" and "System" packages that we use).
-MUI uses [Emotion](https://emotion.sh/) as its preferred CSS-in-JS library, for
-which we need to install install two Emotion packages (`@emotion/react` and
-`@emotion/styled`) as peer dependencies.
+MUI uses [Emotion](https://emotion.sh/) as its preferred CSS-in-JS library, for which we need to install install two Emotion packages (`@emotion/react` and `@emotion/styled`) as peer dependencies.
-We also use MUI's
-[@mui/material-icons](https://mui.com/material-ui/material-icons/) package,
-which provides Material icons exported as React components (a `SvgIcon`).
+We also use MUI's [@mui/material-icons](https://mui.com/material-ui/material-icons/) package, which provides Material icons exported as React components (a `SvgIcon`).
> [!NOTE]
>
> For a similar reason as with react,
>
-> - the `@mui/material` dependency is also repeated at more places - the one in
-> _ente-base_ is the canonical one.
-> - we need to add an explicit dependency to `mui/system` in _ente-new_ even
-> though we don't directly depend on it.
+> - the `@mui/material` dependency is also repeated at more places - the one in _ente-base_ is the canonical one.
+> - we need to add an explicit dependency to `mui/system` in _ente-new_ even though we don't directly depend on it.
### Date pickers
-[@mui/x-date-pickers](https://mui.com/x/react-date-pickers/getting-started/) is
-used to get a date/time picker component. This is the community version of the
-DateTimePicker component provided by MUI.
+[@mui/x-date-pickers](https://mui.com/x/react-date-pickers/getting-started/) is used to get a date/time picker component. This is the community version of the DateTimePicker component provided by MUI.
-[dayjs](https://github.com/iamkun/dayjs) is used as the date library that that
-`@mui/x-date-pickers` will internally use to manipulate dates.
+[dayjs](https://github.com/iamkun/dayjs) is used as the date library that that `@mui/x-date-pickers` will internally use to manipulate dates.
### Translations
-For showing the app's UI in multiple languages, we use the
-[i18next](https://www.i18next.com), specifically its three components
+For showing the app's UI in multiple languages, we use the [i18next](https://www.i18next.com), specifically its three components
- [i18next](https://github.com/i18next/i18next): The core `i18next` library.
-- [react-i18next](https://github.com/i18next/react-i18next): React specific
- support in `i18next`.
+- [react-i18next](https://github.com/i18next/react-i18next): React specific support in `i18next`.
-- [i18next-http-backend](https://github.com/i18next/i18next-http-backend): Adds
- support for initializing `i18next` with JSON file containing the translation
- in a particular language, fetched at runtime.
+- [i18next-http-backend](https://github.com/i18next/i18next-http-backend): Adds support for initializing `i18next` with JSON file containing the translation in a particular language, fetched at runtime.
-Note that inspite of the "next" in the name of the library, it has nothing to do
-with Next.js.
+Note that inspite of the "next" in the name of the library, it has nothing to do with Next.js.
-[get-user-locale](https://github.com/wojtekmaj/get-user-locale) is used for
-enumerating the user's locale's to find the best match.
+[get-user-locale](https://github.com/wojtekmaj/get-user-locale) is used for enumerating the user's locale's to find the best match.
For more details, see [translations.md](translations.md).
### Font
-Inter Variable (with support for weights 100 - 90) is used as the primary font,
-via [@fontsource-variable/inter](https://fontsource.org/fonts/inter/install).
+Inter Variable (with support for weights 100 - 90) is used as the primary font, via [@fontsource-variable/inter](https://fontsource.org/fonts/inter/install).
### UI components
-- [react-window](https://github.com/bvaughn/react-window) is used for lazy-ily
- rendering large lists of dynamically created content, each item being of a
- variable height. It is usually used in tandem with its sibling package,
- [react-virtualized-auto-sizer](https://github.com/bvaughn/react-virtualized-auto-sizer)
- which allows the lazy list to resize itself automatically to fill the entire
- remaining space available in the container.
+- [react-window](https://github.com/bvaughn/react-window) is used for lazy-ily rendering large lists of dynamically created content, each item being of a variable height. It is usually used in tandem with its sibling package, [react-virtualized-auto-sizer](https://github.com/bvaughn/react-virtualized-auto-sizer) which allows the lazy list to resize itself automatically to fill the entire remaining space available in the container.
-- [formik](https://github.com/jaredpalmer/formik) provides an easier to use
- abstraction for dealing with form state, validation and submission states when
- using React.
+- [formik](https://github.com/jaredpalmer/formik) provides an easier to use abstraction for dealing with form state, validation and submission states when using React.
- [react-select](https://react-select.com/) is used for search dropdowns.
-- [react-otp-input](https://github.com/devfolioco/react-otp-input) is used to
- render a segmented OTP input field for 2FA authentication.
+- [react-otp-input](https://github.com/devfolioco/react-otp-input) is used to render a segmented OTP input field for 2FA authentication.
## Utilities
-- [comlink](https://github.com/GoogleChromeLabs/comlink) provides a minimal
- layer on top of web workers to make them more easier to use.
+- [comlink](https://github.com/GoogleChromeLabs/comlink) provides a minimal layer on top of web workers to make them more easier to use.
-- [idb](https://github.com/jakearchibald/idb) provides a promise API over the
- browser-native IndexedDB APIs. Older code (the file and collection store),
- uses [localForage](https://github.com/localForage/localForage) for IndexedDB
- access.
+- [idb](https://github.com/jakearchibald/idb) provides a promise API over the browser-native IndexedDB APIs. Older code (the file and collection store), uses [localForage](https://github.com/localForage/localForage) for IndexedDB access.
> For more details about IDB and its role, see [storage.md](storage.md).
-- [zod](https://github.com/colinhacks/zod) is used for runtime typechecking
- (e.g. verifying that API responses match the expected TypeScript shape).
+- [zod](https://github.com/colinhacks/zod) is used for runtime typechecking (e.g. verifying that API responses match the expected TypeScript shape).
-- [nanoid](https://github.com/ai/nanoid) is used for generating unique
- identifiers. For one particular use case, we also need
- [uuid](https://github.com/uuidjs/uuid) for UUID v4 generation.
+- [nanoid](https://github.com/ai/nanoid) is used for generating unique identifiers. For one particular use case, we also need [uuid](https://github.com/uuidjs/uuid) for UUID v4 generation.
-- [bs58](https://github.com/cryptocoinjs/bs58) is used for base-58 conversion
- (used for encoding the collection key to use as the hash in the share URL).
+- [bs58](https://github.com/cryptocoinjs/bs58) is used for base-58 conversion (used for encoding the collection key to use as the hash in the share URL).
-- [debounce](https://github.com/sindresorhus/debounce) and its
- promise-supporting sibling
- [p-debounce](https://github.com/sindresorhus/p-debounce) are used for
- debouncing operations (See also: `[Note: Throttle and debounce]`).
+- [debounce](https://github.com/sindresorhus/debounce) and its promise-supporting sibling [p-debounce](https://github.com/sindresorhus/p-debounce) are used for debouncing operations (See also: `[Note: Throttle and debounce]`).
-- [bip39](https://github.com/bitcoinjs/bip39) is used for generating the 24-word
- recovery key mnemonic.
+- [bip39](https://github.com/bitcoinjs/bip39) is used for generating the 24-word recovery key mnemonic.
-- [zxcvbn](https://github.com/dropbox/zxcvbn) is used for password strength
- estimation.
+- [zxcvbn](https://github.com/dropbox/zxcvbn) is used for password strength estimation.
-- [fast-srp-hap](https://github.com/homebridge/fast-srp) is used for the maths
- underlying the SRP protocol.
+- [fast-srp-hap](https://github.com/homebridge/fast-srp) is used for the maths underlying the SRP protocol.
## Media
-- [@ffmpeg/ffmpeg](https://github.com/ffmpegwasm/ffmpeg.wasm) is used to run
- FFmpeg in the browser using WebAssembly (Wasm). Note that this is
- substantially slower than native ffmpeg (the desktop app can, and does, bundle
- the faster native ffmpeg implementation too).
+- [@ffmpeg/ffmpeg](https://github.com/ffmpegwasm/ffmpeg.wasm) is used to run FFmpeg in the browser using WebAssembly (Wasm). Note that this is substantially slower than native ffmpeg (the desktop app can, and does, bundle the faster native ffmpeg implementation too).
- [exifreader](https://github.com/mattiasw/ExifReader) is used for Exif parsing.
-- [jszip](https://github.com/Stuk/jszip) is used for reading zip files in the
- web code (Live photos are zip files under the hood). Note that the desktop app
- uses also has a ZIP parser (that one supports streaming).
+- [jszip](https://github.com/Stuk/jszip) is used for reading zip files in the web code (Live photos are zip files under the hood). Note that the desktop app uses also has a ZIP parser (that one supports streaming).
-- [file-type](https://github.com/sindresorhus/file-type) is used for MIME type
- detection.
+- [file-type](https://github.com/sindresorhus/file-type) is used for MIME type detection.
-- [heic-convert](https://github.com/catdad-experiments/heic-convert) is used for
- converting HEIC files (which browsers don't natively support) into JPEG. For
- (much more) details, see [heic.md](heic.md).
+- [heic-convert](https://github.com/catdad-experiments/heic-convert) is used for converting HEIC files (which browsers don't natively support) into JPEG. For (much more) details, see [heic.md](heic.md).
## Photos app specific
-- [photoswipe](https://photoswipe.com) provides the base image viewer on top of
- which we've built our file viewer.
+- [photoswipe](https://photoswipe.com) provides the base image viewer on top of which we've built our file viewer.
- For streaming video (HLS), we use three libraries:
- 1. [media-chrome](https://github.com/muxinc/media-chrome) provides custom
- video controls which we use when playing HLS playlists (we use custom
- controls to provide a standardized UX across browsers, but really the
- main reason is that Safari's default video controls are on the verge of
- unusable, especially for streaming playback),
+ 1. [media-chrome](https://github.com/muxinc/media-chrome) provides custom video controls which we use when playing HLS playlists (we use custom controls to provide a standardized UX across browsers, but really the main reason is that Safari's default video controls are on the verge of unusable, especially for streaming playback),
- 2. [hls-video-element](https://github.com/muxinc/media-elements/tree/main/packages/hls-video-element)
- provides a custom web component element that glues media-chrome and
- hls.js together, and
+ 2. [hls-video-element](https://github.com/muxinc/media-elements/tree/main/packages/hls-video-element) provides a custom web component element that glues media-chrome and hls.js together, and
- 3. [hls.js](https://github.com/video-dev/hls.js/) (indirect dependency via
- hls-video-element) is needed on HLS playback on Chrome and Firefox (which
- do not have native support for HLS playlists).
+ 3. [hls.js](https://github.com/video-dev/hls.js/) (indirect dependency via hls-video-element) is needed on HLS playback on Chrome and Firefox (which do not have native support for HLS playlists).
-- [react-dropzone](https://github.com/react-dropzone/react-dropzone/) is a React
- hook to create a drag-and-drop input zone.
+- [react-dropzone](https://github.com/react-dropzone/react-dropzone/) is a React hook to create a drag-and-drop input zone.
-- [sanitize-filename](https://github.com/parshap/node-sanitize-filename) is for
- converting arbitrary strings into strings that are suitable for being used as
- filenames.
+- [sanitize-filename](https://github.com/parshap/node-sanitize-filename) is for converting arbitrary strings into strings that are suitable for being used as filenames.
-- [chrono-node](https://github.com/wanasit/chrono) is used for parsing natural
- language queries into dates for showing search results.
+- [chrono-node](https://github.com/wanasit/chrono) is used for parsing natural language queries into dates for showing search results.
-- [ml-matrix](https://github.com/mljs/matrix) is mathematical matrix abstraction
- by the machine learning code. It is used alongwith
- [similarity-transformation](https://github.com/shaileshpandit/similarity-transformation-js)
- during face alignment.
+- [ml-matrix](https://github.com/mljs/matrix) is mathematical matrix abstraction by the machine learning code. It is used alongwith [similarity-transformation](https://github.com/shaileshpandit/similarity-transformation-js) during face alignment.
-- [react-top-loading-bar](https://github.com/klendi/react-top-loading-bar) is
- used for showing a progress indicator for global actions (This shouldn't be
- used always, it is only meant as a fallback when there isn't an otherwise
- suitable place for showing a local activity indicator).
+- [react-top-loading-bar](https://github.com/klendi/react-top-loading-bar) is used for showing a progress indicator for global actions (This shouldn't be used always, it is only meant as a fallback when there isn't an otherwise suitable place for showing a local activity indicator).
## Auth app specific
-- [otpauth](https://github.com/hectorm/otpauth) is used for the generation of
- the actual OTP from the user's TOTP/HOTP secret.
+- [otpauth](https://github.com/hectorm/otpauth) is used for the generation of the actual OTP from the user's TOTP/HOTP secret.
-- However, otpauth doesn't support steam OTPs. For these, we need to compute the
- SHA-1, and we use the same library, `jssha` that `otpauth` uses since it is
- already part of our bundle (transitively).
+- However, otpauth doesn't support steam OTPs. For these, we need to compute the SHA-1, and we use the same library, `jssha` that `otpauth` uses since it is already part of our bundle (transitively).
## Pinned
-- `otpauth` is pinned to 9.2.4 since subsequent versions changed the underlying
- hash library, which requires a change in the steam OTP generation code.
+- `otpauth` is pinned to 9.2.4 since subsequent versions changed the underlying hash library, which requires a change in the steam OTP generation code.
-- `react-dropzone` is pinned to the 14.2.10, the last version in the 14.2
- series, since if we use 14.3 onwards (I tested till 14.3.5) then we are unable
- to get back a path from the file by using the `webUtils.getPathForFile`
- function provided by Electron. See:
- https://github.com/react-dropzone/react-dropzone/issues/1411
+- `react-dropzone` is pinned to the 14.2.10, the last version in the 14.2 series, since if we use 14.3 onwards (I tested till 14.3.5) then we are unable to get back a path from the file by using the `webUtils.getPathForFile` function provided by Electron. See: https://github.com/react-dropzone/react-dropzone/issues/1411
-- `@stripe/stripe-js` is pinned to the latest 1.x (it works as it is currently,
- migrating to newer major versions requires headspace since it _might_ also
- require museum changes).
+- `@stripe/stripe-js` is pinned to the latest 1.x (it works as it is currently, migrating to newer major versions requires headspace since it _might_ also require museum changes).
diff --git a/web/docs/deploy.md b/web/docs/deploy.md
index 6d01fe4aa8..6316912fa3 100644
--- a/web/docs/deploy.md
+++ b/web/docs/deploy.md
@@ -1,20 +1,16 @@
# Deploying
-The various web apps and static sites in this repository are deployed on
-Cloudflare Pages using GitHub workflows.
+The various web apps and static sites in this repository are deployed on Cloudflare Pages using GitHub workflows.
- Automated production deployments of `main` daily 8:00 AM IST.
-- [ente.com/help](https://ente.com/help) gets deployed whenever a PR that changes
- anything inside `docs/` gets merged to `main`.
+- [ente.com/help](https://ente.com/help) gets deployed whenever a PR that changes anything inside `docs/` gets merged to `main`.
-- Production deployments can made manually by triggering the
- corresponding workflow.
+- Production deployments can made manually by triggering the corresponding workflow.
## Deployments
-Here is a list of all the deployments, whether or not they are production
-deployments, and the action that triggers them:
+Here is a list of all the deployments, whether or not they are production deployments, and the action that triggers them:
| URL | Type | Deployment action |
| ---------------------------------------------- | ---------- | ------------------------------------------ |
@@ -31,44 +27,28 @@ deployments, and the action that triggers them:
Apart from this, there are also some other deployments:
-- `family.ente.io` is currently in a separate repository (Enhancement: bring it
- in here).
-- `accounts.ente.io` remains the legacy Passkey RP origin during the
- `accounts.ente.com` dual-RP migration.
+- `family.ente.io` is currently in a separate repository (Enhancement: bring it in here).
+- `accounts.ente.io` remains the legacy Passkey RP origin during the `accounts.ente.com` dual-RP migration.
---
## Details
-The rest of the document describes details about how things were setup. You
-likely don't need to know them to be able to deploy.
+The rest of the document describes details about how things were setup. You likely don't need to know them to be able to deploy.
## First time preparation
-Create a new Pages project in Cloudflare, setting it up to use
-[Direct Upload](https://developers.cloudflare.com/pages/get-started/direct-upload/).
+Create a new Pages project in Cloudflare, setting it up to use [Direct Upload](https://developers.cloudflare.com/pages/get-started/direct-upload/).
> [!NOTE]
>
-> Direct upload doesn't work for existing projects tied to your repository using
-> the
-> [Git integration](https://developers.cloudflare.com/pages/get-started/git-integration/).
+> Direct upload doesn't work for existing projects tied to your repository using the [Git integration](https://developers.cloudflare.com/pages/get-started/git-integration/).
>
-> If you want to keep the pages.dev domain from an existing project, you should
-> be able to delete your existing project and recreate it (assuming no one
-> claims the domain in the middle). I've not seen this documented anywhere, but
-> it worked when I tried, and it seems to have worked for
-> [other people too](https://community.cloudflare.com/t/linking-git-repo-to-existing-cf-pages-project/530888).
-
-There are two ways to create a new project, using Wrangler
-[[1](https://github.com/cloudflare/pages-action/issues/51)] or using the
-Cloudflare dashboard
-[[2](https://github.com/cloudflare/pages-action/issues/115)]. Since this is one
-time thing, the second option might be easier.
-
-The remaining steps are documented in
-[Cloudflare's guide for using Direct Upload with CI](https://developers.cloudflare.com/pages/how-to/use-direct-upload-with-continuous-integration/).
-As a checklist,
+> If you want to keep the pages.dev domain from an existing project, you should be able to delete your existing project and recreate it (assuming no one claims the domain in the middle). I've not seen this documented anywhere, but it worked when I tried, and it seems to have worked for [other people too](https://community.cloudflare.com/t/linking-git-repo-to-existing-cf-pages-project/530888).
+
+There are two ways to create a new project, using Wrangler [[1](https://github.com/cloudflare/pages-action/issues/51)] or using the Cloudflare dashboard [[2](https://github.com/cloudflare/pages-action/issues/115)]. Since this is one time thing, the second option might be easier.
+
+The remaining steps are documented in [Cloudflare's guide for using Direct Upload with CI](https://developers.cloudflare.com/pages/how-to/use-direct-upload-with-continuous-integration/). As a checklist,
- Generate `CLOUDFLARE_API_TOKEN`
- Add `CLOUDFLARE_ACCOUNT_ID` and `CLOUDFLARE_API_TOKEN` to the GitHub secrets
@@ -78,22 +58,12 @@ This is the basic setup, and should already work.
## Deploying multiple sites
-However, we wish to deploy multiple sites from this same repository, so the
-standard Cloudflare conception of a single "production" branch doesn't work for
-us.
+However, we wish to deploy multiple sites from this same repository, so the standard Cloudflare conception of a single "production" branch doesn't work for us.
-Instead, we tie each deployment to a branch name. Note that we don't have to
-actually create the branch or push to it, this branch name is just used as the
-the `branch` parameter that gets passed to `cloudflare/pages-action`.
+Instead, we tie each deployment to a branch name. Note that we don't have to actually create the branch or push to it, this branch name is just used as the the `branch` parameter that gets passed to `cloudflare/pages-action`.
-Since our root pages project is `ente.pages.dev`, so a branch named `foo` would
-be available at `foo.ente.pages.dev`.
+Since our root pages project is `ente.pages.dev`, so a branch named `foo` would be available at `foo.ente.pages.dev`.
-Finally, we create CNAME aliases using a
-[Custom Domain in Cloudflare](https://developers.cloudflare.com/pages/how-to/custom-branch-aliases/)
-to point to these deployments from our user facing DNS names.
+Finally, we create CNAME aliases using a [Custom Domain in Cloudflare](https://developers.cloudflare.com/pages/how-to/custom-branch-aliases/) to point to these deployments from our user facing DNS names.
-As a concrete example, the GitHub workflow that deploys `docs/` passes "help" as
-the branch name. The resulting deployment is available at "help.ente.pages.dev".
-Finally, we add a custom domain to point to it from
-[ente.com/help](https://ente.com/help).
+As a concrete example, the GitHub workflow that deploys `docs/` passes "help" as the branch name. The resulting deployment is available at "help.ente.pages.dev". Finally, we add a custom domain to point to it from [ente.com/help](https://ente.com/help).
diff --git a/web/docs/dev.md b/web/docs/dev.md
index 777504e6b6..9cff6288ec 100644
--- a/web/docs/dev.md
+++ b/web/docs/dev.md
@@ -7,8 +7,7 @@ We recommend VS Code, with the following extensions:
- Prettier - reformats your code automatically (enable format on save),
- ESLint - warns you about issues
-Optionally, if you're going to make many changes to the CSS in JS, you might
-also find it useful to install the _vscode-styled-components_ extension.
+Optionally, if you're going to make many changes to the CSS in JS, you might also find it useful to install the _vscode-styled-components_ extension.
## Yarn commands
@@ -16,72 +15,51 @@ Make sure you're on yarn 1.x series (aka yarn "classic").
### yarn install --frozen-lockfile
-Installs dependencies using the committed lockfile. This should be the default
-for local setup, and whenever there is a change in `yarn.lock` (e.g. when
-pulling the latest upstream).
+Installs dependencies using the committed lockfile. This should be the default for local setup, and whenever there is a change in `yarn.lock` (e.g. when pulling the latest upstream).
-Use plain `yarn install` only when intentionally updating dependencies and
-reviewing the resulting `package.json` and `yarn.lock` changes.
+Use plain `yarn install` only when intentionally updating dependencies and reviewing the resulting `package.json` and `yarn.lock` changes.
### yarn dev:\*
-Launch the app in development mode. There is one `yarn dev:foo` for each app,
-e.g. `yarn dev:auth`. `yarn dev` is a shortcut for `yarn dev:photos`.
+Launch the app in development mode. There is one `yarn dev:foo` for each app, e.g. `yarn dev:auth`. `yarn dev` is a shortcut for `yarn dev:photos`.
-Common ports are `3000` for photos, `3002` for albums, `3003` for auth,
-`3005` for share, and `3006` for embed. See `package.json` for the full list.
+Common ports are `3000` for photos, `3002` for albums, `3003` for auth, `3005` for share, and `3006` for embed. See `package.json` for the full list.
### yarn build:\*
-Build a production export for the app. This is a bunch of static HTML/JS/CSS
-that can be then deployed to any web server.
+Build a production export for the app. This is a bunch of static HTML/JS/CSS that can be then deployed to any web server.
-There is one `yarn build:foo` for each app, e.g. `yarn build:auth`. The output
-will be placed in `apps/<foo>/out`, e.g. `apps/auth/out`.
+There is one `yarn build:foo` for each app, e.g. `yarn build:auth`. The output will be placed in `apps/<foo>/out`, e.g. `apps/auth/out`.
### lint, lint:fix
-Use `yarn lint` to check that your code formatting is as expected, and that
-there are no linter errors. Use `yarn lint:fix` to try and automatically fix the
-issues.
+Use `yarn lint` to check that your code formatting is as expected, and that there are no linter errors. Use `yarn lint:fix` to try and automatically fix the issues.
## Monorepo
The monorepo uses Yarn (classic) workspaces.
-To run a command for a workspace `<ws>`, invoke `yarn workspace <ws> <cmd>` from
-the root folder instead the `yarn <cmd>` youโ€™d have done otherwise. For example,
-to start a development server for the `photos` app, we can do
+To run a command for a workspace `<ws>`, invoke `yarn workspace <ws> <cmd>` from the root folder instead the `yarn <cmd>` youโ€™d have done otherwise. For example, to start a development server for the `photos` app, we can do
```sh
yarn workspace photos next dev
```
-There is also a convenience alias, `yarn dev:photos`. See `package.json` for the
-full list of such aliases. The two common patterns are `dev:<app-name>` for
-running a local development server, and `build:<app-name>` for creating a
-production build.
+There is also a convenience alias, `yarn dev:photos`. See `package.json` for the full list of such aliases. The two common patterns are `dev:<app-name>` for running a local development server, and `build:<app-name>` for creating a production build.
> Tip: `yarn dev` is a shortcut for `yarn dev:photos`
-Note that yarn does not automatically update `node_modules` if you switch to a
-branch that has added or modified dependencies. So if you encounter unexpected
-errors on switching branches, make sure that your `node_modules` is up to date
-by running `yarn install --frozen-lockfile` first.
+Note that yarn does not automatically update `node_modules` if you switch to a branch that has added or modified dependencies. So if you encounter unexpected errors on switching branches, make sure that your `node_modules` is up to date by running `yarn install --frozen-lockfile` first.
-> `yarn` is a shortcut for `yarn install`, but normal development should prefer
-> `yarn install --frozen-lockfile`.
+> `yarn` is a shortcut for `yarn install`, but normal development should prefer `yarn install --frozen-lockfile`.
-To add a local package as a dependency, use `<package-name>@*`. The "\*" here
-denotes any version.
+To add a local package as a dependency, use `<package-name>@*`. The "\*" here denotes any version.
```sh
yarn workspace photos add 'ente-utils@*'
```
-> Note: The yarn (classic) command above causes harmless but noisy diffs in
-> `yarn.lock` when adding or removing dependencies to the workspaces. To fix
-> them, run `yarn` again once to reset these unnecessary changes.
+> Note: The yarn (classic) command above causes harmless but noisy diffs in `yarn.lock` when adding or removing dependencies to the workspaces. To fix them, run `yarn` again once to reset these unnecessary changes.
To see what packages depend on each other locally, use
diff --git a/web/docs/docker.md b/web/docs/docker.md
index ea6260b8c6..a1e0c407d7 100644
--- a/web/docs/docker.md
+++ b/web/docs/docker.md
@@ -1,7 +1,6 @@
# Docker
-Automated Docker images for the self-hosting web apps are created every
-Wednesday. You can fetch them from `ghcr.io/ente-io/web`.
+Automated Docker images for the self-hosting web apps are created every Wednesday. You can fetch them from `ghcr.io/ente-io/web`.
These images expose 9 web apps on the following ports:
@@ -15,8 +14,7 @@ These images expose 9 web apps on the following ports:
- `3008` - Paste
- `3010` - Memories
-For example, for selectively exposing only the photos web app on your port 8000,
-you could:
+For example, for selectively exposing only the photos web app on your port 8000, you could:
```sh
docker run -it --rm -p 8000:3000 ghcr.io/ente-io/web
@@ -24,11 +22,9 @@ docker run -it --rm -p 8000:3000 ghcr.io/ente-io/web
These images accept one environment variable:
-- `ENTE_API_ORIGIN` - The API origin (scheme://host:port) for your API server.
- Default: "http://localhost:8080".
+- `ENTE_API_ORIGIN` - The API origin (scheme://host:port) for your API server. Default: "http://localhost:8080".
-For example, if your API server is running at `https://api.example.org`, you can
-configure your Docker image to connect to it:
+For example, if your API server is running at `https://api.example.org`, you can configure your Docker image to connect to it:
```sh
docker run -it --rm -e ENTE_API_ORIGIN=https://api.example.org ghcr.io/ente-io/web
diff --git a/web/docs/heic.md b/web/docs/heic.md
index 1f18ad45fd..87a2f06c0e 100644
--- a/web/docs/heic.md
+++ b/web/docs/heic.md
@@ -4,12 +4,9 @@
**HEIF** is a container format.
-- It was developed by Nokia, which also provides a reference implementation that
- no one (?) uses (it has some samples though -
- https://github.com/nokiatech/heif/tree/gh-pages/content).
+- It was developed by Nokia, which also provides a reference implementation that no one (?) uses (it has some samples though - https://github.com/nokiatech/heif/tree/gh-pages/content).
-- The de-facto implementation is **libheif**
- (https://github.com/strukturag/libheif).
+- The de-facto implementation is **libheif** (https://github.com/strukturag/libheif).
**HEIF** can contain HEVC and AV1 data.
@@ -21,20 +18,15 @@
- It is the successor of H.264.
-- The de-facto implementation is x265, by the VLC folks
- (https://www.videolan.org/developers/x265.html). aka **libx265**.
+- The de-facto implementation is x265, by the VLC folks (https://www.videolan.org/developers/x265.html). aka **libx265**.
-- Since x265 is GPL, a popular LGPL alternative H.265 decoder (only) is
- **libde265** by the same folks who make libheif
- (https://github.com/strukturag/libde265).
+- Since x265 is GPL, a popular LGPL alternative H.265 decoder (only) is **libde265** by the same folks who make libheif (https://github.com/strukturag/libde265).
-- A new, still WIP, alternative encoder is
- https://github.com/ultravideo/kvazaar.
+- A new, still WIP, alternative encoder is https://github.com/ultravideo/kvazaar.
**AV1** is a video codec.
-- It is made by a pool of companies, AOM (Alliance for Open Media), as a royalty
- free alternative to H.265.
+- It is made by a pool of companies, AOM (Alliance for Open Media), as a royalty free alternative to H.265.
**AVIF** files are HEIF container and AV1 codec.
@@ -52,37 +44,20 @@ FFmpeg (and its native library, libavcodec) supports HEVC.
- Default software codec is libx265.
-- Hardware support is platform specific. On macOS `ffmpeg -codecs` lists
- `hevc_videotoolbox` as a codec. Video Toolbox is Apple's access to hardware
- encoders / decoders (https://developer.apple.com/documentation/videotoolbox)
+- Hardware support is platform specific. On macOS `ffmpeg -codecs` lists `hevc_videotoolbox` as a codec. Video Toolbox is Apple's access to hardware encoders / decoders (https://developer.apple.com/documentation/videotoolbox)
FFmpeg, as of 2024, partially supports converting HEIC files
-- "So once this patch is applied, the only unsupported items would be Alpha and
- Grid (Tiles) for both AVIF and HEIC."
- ([ref](https://patchwork.ffmpeg.org/project/ffmpeg/patch/[email protected]/#80191))
+- "So once this patch is applied, the only unsupported items would be Alpha and Grid (Tiles) for both AVIF and HEIC." ([ref](https://patchwork.ffmpeg.org/project/ffmpeg/patch/[email protected]/#80191))
-- This partial support is not enough. Trying `ffmpeg -i 1.heic 1.jpeg` on a
- photo taken by iPhone (iOS 18) gives only a small area of the image. The
- upstream issue -
- [Support merging HEIC tile grids in ffmpeg](https://trac.ffmpeg.org/ticket/11170) -
- mentions a workaround by combining the grid but that produces a thick gray
- border on the right and bottom (and the orientation is also not respected).
+- This partial support is not enough. Trying `ffmpeg -i 1.heic 1.jpeg` on a photo taken by iPhone (iOS 18) gives only a small area of the image. The upstream issue - [Support merging HEIC tile grids in ffmpeg](https://trac.ffmpeg.org/ticket/11170) - mentions a workaround by combining the grid but that produces a thick gray border on the right and bottom (and the orientation is also not respected).
-FFmpeg support would be nice since we already bundle it both in the desktop app
-and also as a web Wasm build.
+FFmpeg support would be nice since we already bundle it both in the desktop app and also as a web Wasm build.
---
## libheif + libde265
-Every other HEIC converter, binary or library (e.g. ImageMagick, GraphicsMagick,
-libvips, sharp and wasm-vips), I've seen eventually the uses the combination of
-libheif (for the HEIF container) + libde265 (for the HEVC decoding), with an
-option to swap libde265 with libx265 or kvazaar.
+Every other HEIC converter, binary or library (e.g. ImageMagick, GraphicsMagick, libvips, sharp and wasm-vips), I've seen eventually the uses the combination of libheif (for the HEIF container) + libde265 (for the HEVC decoding), with an option to swap libde265 with libx265 or kvazaar.
-Currently our web app uses
-[heic-convert](https://github.com/catdad-experiments/heic-convert), which
-provides packaged Wasm builds of libheif + libde265, and the desktop app uses a
-[custom build](https://github.com/ente-io/libvips-packaging) of `vips` on Linux
-and Windows, and Apple's `sips` on macOS.
+Currently our web app uses [heic-convert](https://github.com/catdad-experiments/heic-convert), which provides packaged Wasm builds of libheif + libde265, and the desktop app uses a [custom build](https://github.com/ente-io/libvips-packaging) of `vips` on Linux and Windows, and Apple's `sips` on macOS.
diff --git a/web/docs/new.md b/web/docs/new.md
index f94c8fafd4..8e7730a00b 100644
--- a/web/docs/new.md
+++ b/web/docs/new.md
@@ -1,7 +1,6 @@
# Welcome!
-If you're new to web stuff or coming back to it after mobile/backend
-development, here is a recommended workflow:
+If you're new to web stuff or coming back to it after mobile/backend development, here is a recommended workflow:
1. Install **VS Code**.
@@ -9,24 +8,20 @@ development, here is a recommended workflow:
3. Enable the VS Code setting to format on save.
-4. Install **node** on your machine. There are myriad ways to do this, here are
- some examples:
- - OS agnostic: Install [NVM](https://github.com/nvm-sh/nvm), then
- `nvm install 24 && corepack enable`.
+4. Install **node** on your machine. There are myriad ways to do this, here are some examples:
+ - OS agnostic: Install [NVM](https://github.com/nvm-sh/nvm), then `nvm install 24 && corepack enable`.
- macOS: `brew install node@24`
- Ubuntu: `sudo apt install nodejs npm && sudo npm i -g corepack`
-5. Enable corepack. This allows us to use the correct version of our package
- manager (**Yarn**):
+5. Enable corepack. This allows us to use the correct version of our package manager (**Yarn**):
```sh
corepack enable
```
- If now you run `yarn --version` in the web directory, you should be seeing a
- 1.22.xx version, otherwise your `yarn install` will fail.
+ If now you run `yarn --version` in the web directory, you should be seeing a 1.22.xx version, otherwise your `yarn install` will fail.
```sh
$ yarn --version
diff --git a/web/docs/storage.md b/web/docs/storage.md
index 761e4a2079..475f3889b5 100644
--- a/web/docs/storage.md
+++ b/web/docs/storage.md
@@ -4,14 +4,11 @@
Data tied to the browser tab's lifetime.
-The primary information store in session storage is the user's encryption key
-here. In addition, various other transient bits and bobs are also kept here.
+The primary information store in session storage is the user's encryption key here. In addition, various other transient bits and bobs are also kept here.
## Local Storage
-Data in the local storage is persisted even after the user closes the tab, or
-the browser itself. This is in contrast with session storage, where the data is
-cleared when the browser tab is closed.
+Data in the local storage is persisted even after the user closes the tab, or the browser itself. This is in contrast with session storage, where the data is cleared when the browser tab is closed.
The data in local storage is tied to the Document's origin (scheme + host).
@@ -21,23 +18,17 @@ Some things that get stored here are:
- Some user preferences (export settings, collection sort order).
-> Local storage is not accessible to web workers, so if any non main-thread
-> context needs access to the data, it should be stored in IndexedDB.
+> Local storage is not accessible to web workers, so if any non main-thread context needs access to the data, it should be stored in IndexedDB.
## IndexedDB
-IndexedDB is a transactional NoSQL store provided by browsers. It has quite
-large storage limits, and data is stored per origin (and remains persistent
-across tab restarts).
+IndexedDB is a transactional NoSQL store provided by browsers. It has quite large storage limits, and data is stored per origin (and remains persistent across tab restarts).
-Unlike local storage, IndexedDB is also accessible from web workers and so we
-also use IndexedDB for storing ad-hoc key value pairs.
+Unlike local storage, IndexedDB is also accessible from web workers and so we also use IndexedDB for storing ad-hoc key value pairs.
-Older code used the LocalForage library for storing things in Indexed DB. This
-library falls back to localStorage in case Indexed DB storage is not available.
+Older code used the LocalForage library for storing things in Indexed DB. This library falls back to localStorage in case Indexed DB storage is not available.
-Newer code uses the idb library which provides a promise API over the IndexedDB,
-but otherwise does not introduce any new abstractions.
+Newer code uses the idb library which provides a promise API over the IndexedDB, but otherwise does not introduce any new abstractions.
For more details, see:
@@ -47,16 +38,12 @@ For more details, see:
Some things that get stored here are:
-- The collection and file data (See: [Files DB]). Note that the file contents
- themselves are not stored, only the "EnteFile" object that describes a file.
+- The collection and file data (See: [Files DB]). Note that the file contents themselves are not stored, only the "EnteFile" object that describes a file.
- Various key value pairs (See: [Note: KV DB]).
## OPFS
-OPFS is used for caching entire files when we're running under Electron (the Web
-Cache API is used in the browser).
+OPFS is used for caching entire files when we're running under Electron (the Web Cache API is used in the browser).
-As it name suggests, it is an entire file system, private for us ("origin"). In
-is not undbounded though, and the storage is not guaranteed to be persistent (at
-least with the APIs we use), hence the cache designation.
+As it name suggests, it is an entire file system, private for us ("origin"). In is not undbounded though, and the storage is not guaranteed to be persistent (at least with the APIs we use), hence the cache designation.
diff --git a/web/docs/translations.md b/web/docs/translations.md
index fffc98a8f7..2db294b916 100644
--- a/web/docs/translations.md
+++ b/web/docs/translations.md
@@ -1,45 +1,31 @@
# Translations
-We use Crowdin for translations, and the `i18next` library to load these at
-runtime.
+We use Crowdin for translations, and the `i18next` library to load these at runtime.
-Within our project we have the _source_ strings - these are the key value pairs
-in the `packages/base/locales/en-US/translation.json` file.
+Within our project we have the _source_ strings - these are the key value pairs in the `packages/base/locales/en-US/translation.json` file.
-Volunteers can add a new _translation_ in their language corresponding to each
-such source key-value to our
-[Crowdin project](https://crowdin.com/project/ente-photos-web).
+Volunteers can add a new _translation_ in their language corresponding to each such source key-value to our [Crowdin project](https://crowdin.com/project/ente-photos-web).
-Every Monday, and whenever source strings or the Crowdin config change on `main`,
-we run a [GitHub workflow](../../.github/workflows/web-crowdin-sync.yml) that
+Every Monday, and whenever source strings or the Crowdin config change on `main`, we run a [GitHub workflow](../../.github/workflows/web-crowdin-sync.yml) that
-- Uploads sources to Crowdin - So any new key value pair we add in the source
- `translation.json` becomes available to translators to translate.
+- Uploads sources to Crowdin - So any new key value pair we add in the source `translation.json` becomes available to translators to translate.
-- Downloads translations from Crowdin - So any new translations that translators
- have made on the Crowdin dashboard (for existing sources) will be added to the
- corresponding `lang/translation.json`.
+- Downloads translations from Crowdin - So any new translations that translators have made on the Crowdin dashboard (for existing sources) will be added to the corresponding `lang/translation.json`.
-The workflow also uploads the current source strings before downloading
-translations.
+The workflow also uploads the current source strings before downloading translations.
## Adding a new string
-- Add a new entry in `packages/base/locales/en-US/translation.json` (the
- **source `translation.json`**).
+- Add a new entry in `packages/base/locales/en-US/translation.json` (the **source `translation.json`**).
- Use the new key in code with the `t` function (`import { t } from "i18next"`).
-- During the next sync, the workflow will upload this source item to Crowdin's
- dashboard, allowing translators to translate it.
+- During the next sync, the workflow will upload this source item to Crowdin's dashboard, allowing translators to translate it.
## Updating an existing string
- Update the existing value for the key in the source `translation.json`.
-- During the next sync, the workflow will clear out all the existing
- translations so that they can be translated afresh.
+- During the next sync, the workflow will clear out all the existing translations so that they can be translated afresh.
## Deleting an existing string
- Remove the key value pair from the source `translation.json`.
-- During the next sync, the workflow will delete that source item from all
- existing translations (both in the Crowdin project and also from the other
- `lang/translation.json` files in the repository).
+- During the next sync, the workflow will delete that source item from all existing translations (both in the Crowdin project and also from the other `lang/translation.json` files in the repository).
diff --git a/web/docs/webauthn-passkeys.md b/web/docs/webauthn-passkeys.md
index 97c0fa00d1..ae0fb131a0 100644
--- a/web/docs/webauthn-passkeys.md
+++ b/web/docs/webauthn-passkeys.md
@@ -1,14 +1,6 @@
# Passkeys on Ente
-Passkeys is a colloquial term for a relatively new authentication standard
-called [WebAuthn](https://en.wikipedia.org/wiki/WebAuthn). Now rolled out to all
-major browsers and operating systems, it uses asymmetric cryptography to
-authenticate the user with a server using replay-attack resistant signatures.
-These processes are usually abstracted from the user through biometric prompts,
-such as Touch ID/Face ID/Optic ID, Fingerprint Unlock and Windows Hello. These
-passkeys can also be securely synced by major password managers, such as
-Bitwarden and 1Password, although the syncing experience can greatly vary due to
-some operating system restrictions.
+Passkeys is a colloquial term for a relatively new authentication standard called [WebAuthn](https://en.wikipedia.org/wiki/WebAuthn). Now rolled out to all major browsers and operating systems, it uses asymmetric cryptography to authenticate the user with a server using replay-attack resistant signatures. These processes are usually abstracted from the user through biometric prompts, such as Touch ID/Face ID/Optic ID, Fingerprint Unlock and Windows Hello. These passkeys can also be securely synced by major password managers, such as Bitwarden and 1Password, although the syncing experience can greatly vary due to some operating system restrictions.
## Terms
@@ -21,22 +13,15 @@ some operating system restrictions.
## Getting to the passkeys manager
-As of Jun 2024, Ente clients have a button to navigate to a WebView of Ente
-Accounts. Ente Accounts allows users to add and manage their registered
-passkeys, and later authenticate with them as a second factor.
+As of Jun 2024, Ente clients have a button to navigate to a WebView of Ente Accounts. Ente Accounts allows users to add and manage their registered passkeys, and later authenticate with them as a second factor.
> [!NOTE]
>
-> Your WebView MUST invoke the operating-system's default browser, or an
-> equivalent browser with matching API parity. Otherwise, the user will not be
-> able to register or use registered WebAuthn credentials.
+> Your WebView MUST invoke the operating-system's default browser, or an equivalent browser with matching API parity. Otherwise, the user will not be able to register or use registered WebAuthn credentials.
### Ente Accounts specific session token
-When a user clicks this button, the client sends a request for an
-Accounts-specific JWT session token as shown below. **The Ente Accounts API is
-restricted to this type of session token, so the user session token cannot be
-used.** This restriction is a byproduct of the enablement for automatic login.
+When a user clicks this button, the client sends a request for an Accounts-specific JWT session token as shown below. **The Ente Accounts API is restricted to this type of session token, so the user session token cannot be used.** This restriction is a byproduct of the enablement for automatic login.
#### GET /users/accounts-token
@@ -55,27 +40,17 @@ used.** This restriction is a byproduct of the enablement for automatic login.
### Automatically logging into Ente Accounts
-Clients open a WebView with the URL
-`<accountsUrl>/passkeys?token=<accountsToken>`.
+Clients open a WebView with the URL `<accountsUrl>/passkeys?token=<accountsToken>`.
-If the token is valid, the user will be show a list of their passkeys, and they
-can edit / delete them, or add new ones.
+If the token is valid, the user will be show a list of their passkeys, and they can edit / delete them, or add new ones.
## Registering a WebAuthn credential
### Requesting publicKey options (begin)
-The registration ceremony starts in the browser. When the user clicks the "Add
-new passkey" button, a request is sent to the server for "public key" creation
-options. Although named "public key" options, they actually define customizable
-parameters for the entire credential creation process. They're like an
-instructional sheet that defines exactly what we want.
+The registration ceremony starts in the browser. When the user clicks the "Add new passkey" button, a request is sent to the server for "public key" creation options. Although named "public key" options, they actually define customizable parameters for the entire credential creation process. They're like an instructional sheet that defines exactly what we want.
-On the server side, the WebAuthn library generates this information based on
-data provided from a `webauthn.User` interface. As a result, we satisfy this
-interface by creating a type with methods returning information from the
-database. Information stored in the database about credentials are all
-pre-processed using base64 where necessary.
+On the server side, the WebAuthn library generates this information based on data provided from a `webauthn.User` interface. As a result, we satisfy this interface by creating a type with methods returning information from the database. Information stored in the database about credentials are all pre-processed using base64 where necessary.
```go
type PasskeyUser struct {
@@ -157,10 +132,7 @@ func (u *PasskeyUser) WebAuthnCredentials() []webauthn.Credential {
### Pre-processing the options before registration
-Even though the server generates these options, the browser still doesn't
-understand them. For interoperability, the server's WebAuthn library returns
-binary data in base64, like IDs and the challenge. However, the browser requires
-this data back in binary.
+Even though the server generates these options, the browser still doesn't understand them. For interoperability, the server's WebAuthn library returns binary data in base64, like IDs and the challenge. However, the browser requires this data back in binary.
We just have to decode the base64 fields back into `Uint8Array`.
@@ -173,10 +145,7 @@ options.publicKey.user.id = sodium.from_base64(options.publicKey.user.id);
### Creating the credential
-We use `navigator.credentials.create` with these options to generate the
-credential. At this point, the user will see a prompt to decide where to save
-this credential, and probably a biometric authentication gate depending on the
-platform.
+We use `navigator.credentials.create` with these options to generate the credential. At this point, the user will see a prompt to decide where to save this credential, and probably a biometric authentication gate depending on the platform.
```ts
const newCredential = await navigator.credentials.create(options);
@@ -184,8 +153,7 @@ const newCredential = await navigator.credentials.create(options);
### Sending the public key to the server (finish)
-The browser returns the newly created credential with a bunch of binary fields,
-so we have to encode them into base64 for transport to the server.
+The browser returns the newly created credential with a bunch of binary fields, so we have to encode them into base64 for transport to the server.
```ts
const attestationObjectB64 = sodium.to_base64(
@@ -197,18 +165,13 @@ const clientDataJSONB64 = sodium.to_base64(
sodium.base64_variants.URLSAFE_NO_PADDING
```
-Attestation object contains information about the nature of the credential, like
-what device it was generated on. Client data JSON contains metadata about the
-credential, like where it is registered to.
+Attestation object contains information about the nature of the credential, like what device it was generated on. Client data JSON contains metadata about the credential, like where it is registered to.
-After pre-processing, the client sends the public key to the server so it can
-verify future signatures during authentication.
+After pre-processing, the client sends the public key to the server so it can verify future signatures during authentication.
#### POST /passkeys/registration/finish
-When the server receives the new public key credential, it pre-processes the
-JSON objects so they can fit within the database. This includes base64 encoding
-`[]byte` slices and their encompassing arrays or objects.
+When the server receives the new public key credential, it pre-processes the JSON objects so they can fit within the database. This includes base64 encoding `[]byte` slices and their encompassing arrays or objects.
```go
// Convert the PublicKey to base64
@@ -283,11 +246,7 @@ On retrieval, this process is effectively the opposite.
## Authenticating with a credential
-Passkeys have been integrated into the existing two-factor ceremony. When
-logging in via SRP or verifying an email OTT, the server checks if the user has
-any number of credentials setup or has 2FA TOTP enabled. If the user has setup
-at least one credential, they will be served a `passkeySessionID` which will
-initiate the authentication ceremony.
+Passkeys have been integrated into the existing two-factor ceremony. When logging in via SRP or verifying an email OTT, the server checks if the user has any number of credentials setup or has 2FA TOTP enabled. If the user has setup at least one credential, they will be served a `passkeySessionID` which will initiate the authentication ceremony.
```tsx
const {
@@ -300,8 +259,7 @@ if (passkeySessionID) {
}
```
-The client should redirect the user to the Ente Accounts web app with this
-session ID to prompt credential authentication.
+The client should redirect the user to the Ente Accounts web app with this session ID to prompt credential authentication.
```
https://accounts.ente.com/passkeys?
@@ -309,12 +267,9 @@ https://accounts.ente.com/passkeys?
redirect=<redirect>&recover=<recover-redirect>
```
-We use Ente Accounts as the central WebAuthn hub since it allows us to handle
-mobile and desktop clients too.
+We use Ente Accounts as the central WebAuthn hub since it allows us to handle mobile and desktop clients too.
-During the dual-RP migration, the server returns `accounts.ente.io` for users
-who still have legacy `ente.io` passkeys, and `accounts.ente.com` for users
-without legacy passkeys.
+During the dual-RP migration, the server returns `accounts.ente.io` for users who still have legacy `ente.io` passkeys, and `accounts.ente.com` for users without legacy passkeys.
### Requesting publicKey options (begin)
@@ -358,8 +313,7 @@ without legacy passkeys.
### Pre-processing the options before retrieval
-The browser requires `Uint8Array` versions of the `options` challenge and
-credential IDs.
+The browser requires `Uint8Array` versions of the `options` challenge and credential IDs.
```ts
publicKey.challenge = sodium.from_base64(
@@ -382,8 +336,7 @@ const credential = await navigator.credentials.get({ publicKey: options });
### Pre-processing the credential metadata and signature before authentication
-Before sending the public key and signature to the server, their outputs must be
-encoded into Base64.
+Before sending the public key and signature to the server, their outputs must be encoded into Base64.
```ts
authenticatorData: sodium.to_base64(
diff --git a/web/packages/accounts-rs/README.md b/web/packages/accounts-rs/README.md
index 98dcd4554d..28fd472a84 100644
--- a/web/packages/accounts-rs/README.md
+++ b/web/packages/accounts-rs/README.md
@@ -6,10 +6,8 @@ Currently this is used by the photos and auth apps.
> [!NOTE]
>
-> This is distinct from the accounts _app_, which currently acts as a broker for
-> passkeys.
+> This is distinct from the accounts _app_, which currently acts as a broker for passkeys.
### Packaging
-This (internal) package exports a React TypeScript library. We rely on the
-importing project to transpile and bundle it.
+This (internal) package exports a React TypeScript library. We rely on the importing project to transpile and bundle it.
diff --git a/web/packages/accounts/README.md b/web/packages/accounts/README.md
index b3a027fa0d..e9a56f85f3 100644
--- a/web/packages/accounts/README.md
+++ b/web/packages/accounts/README.md
@@ -6,10 +6,8 @@ Currently this is used by the photos and auth apps.
> [!NOTE]
>
-> This is distinct from the accounts _app_, which currently acts as a broker for
-> passkeys.
+> This is distinct from the accounts _app_, which currently acts as a broker for passkeys.
### Packaging
-This (internal) package exports a React TypeScript library. We rely on the
-importing project to transpile and bundle it.
+This (internal) package exports a React TypeScript library. We rely on the importing project to transpile and bundle it.
diff --git a/web/packages/base/README.md b/web/packages/base/README.md
index 723b8a7b48..9343359194 100644
--- a/web/packages/base/README.md
+++ b/web/packages/base/README.md
@@ -2,13 +2,10 @@
A base (+ UI layer) package for sharing code between our production apps.
-This is a higher layer package than `ente-utils` (which is framework agnostic).
-This package is meant for sharing code between our Next.js apps that use React
-and MUI. Both the photos and auth apps use it.
+This is a higher layer package than `ente-utils` (which is framework agnostic). This package is meant for sharing code between our Next.js apps that use React and MUI. Both the photos and auth apps use it.
Our smaller, Vite based apps, e.g. payments, don't use this.
### Packaging
-This (internal) package exports a React TypeScript library. We rely on the
-importing project to transpile and bundle it.
+This (internal) package exports a React TypeScript library. We rely on the importing project to transpile and bundle it.
diff --git a/web/packages/build-config/README.md b/web/packages/build-config/README.md
index 024409d352..324a70d793 100644
--- a/web/packages/build-config/README.md
+++ b/web/packages/build-config/README.md
@@ -1,22 +1,15 @@
## ente-build-config
-Build time configuration files. This can be thought of as a `devDependency` that
-exports various config files that our packages use at build time.
+Build time configuration files. This can be thought of as a `devDependency` that exports various config files that our packages use at build time.
### Packaging
-This is _not_ a TypeScript package, nor is it linted. It is not meant to be
-transpiled, it just exports static files that can be included verbatim.
+This is _not_ a TypeScript package, nor is it linted. It is not meant to be transpiled, it just exports static files that can be included verbatim.
### Debugging
-Too see what tsc is seeing (e.g. when it is trying to type-check `ente-utils`),
-use `yarn workspace ente-utils tsc --showConfig`.
+Too see what tsc is seeing (e.g. when it is trying to type-check `ente-utils`), use `yarn workspace ente-utils tsc --showConfig`.
-Similarly, to verify what ESLint is trying to do, use
-`yarn workspace ente-utils eslint --debug .`
+Similarly, to verify what ESLint is trying to do, use `yarn workspace ente-utils eslint --debug .`
-If the issue is in VSCode, open the output window of the corresponding plugin,
-it might be telling us what's going wrong there. In particular, when changing
-the settings here, you might need to "Developer: Reload Window" in VSCode to get
-it to pick up the changes.
+If the issue is in VSCode, open the output window of the corresponding plugin, it might be telling us what's going wrong there. In particular, when changing the settings here, you might need to "Developer: Reload Window" in VSCode to get it to pick up the changes.
diff --git a/web/packages/gallery/README.md b/web/packages/gallery/README.md
index 04c7ef64ab..06b1ad7bdc 100644
--- a/web/packages/gallery/README.md
+++ b/web/packages/gallery/README.md
@@ -1,12 +1,9 @@
## ente-gallery
-A package for sharing code between our apps that show media (photos, videos) in
-a gallery like view.
+A package for sharing code between our apps that show media (photos, videos) in a gallery like view.
-Specifically, this is the intersection of code required by both the photos and
-public albums apps.
+Specifically, this is the intersection of code required by both the photos and public albums apps.
### Packaging
-This (internal) package exports a React TypeScript library. We rely on the
-importing project to transpile and bundle it.
+This (internal) package exports a React TypeScript library. We rely on the importing project to transpile and bundle it.
diff --git a/web/packages/media/README.md b/web/packages/media/README.md
index f48a79e1af..9491734bc0 100644
--- a/web/packages/media/README.md
+++ b/web/packages/media/README.md
@@ -2,10 +2,8 @@
A package for sharing code between our apps that show media (photos, videos).
-Specifically, this is the intersection of code required by both the photos app
-(or the public albums app) and cast apps.
+Specifically, this is the intersection of code required by both the photos app (or the public albums app) and cast apps.
### Packaging
-This (internal) package exports a React TypeScript library. We rely on the
-importing project to transpile and bundle it.
+This (internal) package exports a React TypeScript library. We rely on the importing project to transpile and bundle it.
diff --git a/web/packages/new/README.md b/web/packages/new/README.md
index 820f68831f..ebf4373d01 100644
--- a/web/packages/new/README.md
+++ b/web/packages/new/README.md
@@ -1,10 +1,7 @@
## ente-new
-This package is only transient. Once the remaining files in apps/photos have
-been revisited for clarity, and the albums app has been split into a separate
-folder, this package will not exist.
+This package is only transient. Once the remaining files in apps/photos have been revisited for clarity, and the albums app has been split into a separate folder, this package will not exist.
### Packaging
-This (internal) package exports a vanilla TypeScript library. We rely on the
-importing project to transpile and bundle it.
+This (internal) package exports a vanilla TypeScript library. We rely on the importing project to transpile and bundle it.
diff --git a/web/packages/utils/README.md b/web/packages/utils/README.md
index 68cf0d0b27..67b5fd5a4f 100644
--- a/web/packages/utils/README.md
+++ b/web/packages/utils/README.md
@@ -6,5 +6,4 @@ Utility functions, types and assortments.
### Packaging
-This (internal) package exports a vanilla TypeScript library. We rely on the
-importing project to transpile and bundle it.
+This (internal) package exports a vanilla TypeScript library. We rely on the importing project to transpile and bundle it.