Skip to content
Download

Every window,
in its place.

Every project gets its own workspace: your apps and windows arranged and ready in one click.

Free and open source.

1
checkout.tsx - shop - Code

SHOP

app
checkout
page.tsx
checkout.tsx
components
button.tsx
price.tsx
lib
cart.ts
money.ts
pay.ts
checkout.tsx
cart.ts
pay.ts
app checkout checkout.tsx
1import { useState } from "react"
2import { useRouter } from "next/navigation"
3import { useCart } from "@/lib/cart"
4import { formatPrice } from "@/lib/money"
5
6export function Checkout() {
7 const router = useRouter()
8 const { items, total } = useCart()
9 const [status, setStatus] = useState<"idle" | "paying">("idle")
10
11 async function pay() {
12 setStatus("paying")
13 const res = await fetch("/api/pay", {
14 method: "POST",
15 body: JSON.stringify({ items, total }),
16 })
17 if (!res.ok) throw new Error("Payment failed")
18 router.push("/thanks")
19 }
20
21 return (
22 <button onClick={pay} disabled={status === "paying"}>
23 Pay {formatPrice(total)}
24 </button>
25 )
26}
feat/checkoutLn 17, Col 40    TypeScript React
1
checkout.tsx - shop - Code

SHOP

app
checkout
page.tsx
checkout.tsx
components
button.tsx
price.tsx
lib
cart.ts
money.ts
pay.ts
checkout.tsx
cart.ts
pay.ts
app checkout checkout.tsx
1import { useState } from "react"
2import { useRouter } from "next/navigation"
3import { useCart } from "@/lib/cart"
4import { formatPrice } from "@/lib/money"
5
6export function Checkout() {
7 const router = useRouter()
8 const { items, total } = useCart()
9 const [status, setStatus] = useState<"idle" | "paying">("idle")
10
11 async function pay() {
12 setStatus("paying")
13 const res = await fetch("/api/pay", {
14 method: "POST",
15 body: JSON.stringify({ items, total }),
16 })
17 if (!res.ok) throw new Error("Payment failed")
18 router.push("/thanks")
19 }
20
21 return (
22 <button onClick={pay} disabled={status === "paying"}>
23 Pay {formatPrice(total)}
24 </button>
25 )
26}
feat/checkoutLn 17, Col 40    TypeScript React
3
>_ PowerShell
Ubuntu
shop on feat/checkout ❯ npm run dev
▲ Next.js 16
- Local: http://localhost:3000
✓ Ready in 842ms
○ Compiling /checkout ...
✓ Compiled /checkout in 311ms
GET /checkout 200 in 38ms
POST /api/pay 200 in 112ms
GET /thanks 200 in 21ms
shop on feat/checkout ❯
2
Add one-tap checkout #482
git.acme.dev/shop/pull/482/files
S

Add one-tap checkout #482

Openana wants to merge 3 commits into main from feat/checkout
Conversation 4Commits 3Checks 6Files changed 5
lib/cart.ts+14 −3
41 export function total(items: Item[]) {
42- return items.reduce((s, i) => s + i.price, 0)
43+ const sum = items.reduce((s, i) => s + i.price * i.qty, 0)
44+ return Math.round(sum * 100) / 100
45 }
46
47+export const SHIPPING_FREE_OVER = 75
All checks have passed 6 successful checks
4
Acme - releases

Acme

general

releases

design

random

Direct messages

Ana

Ravi

Mia

releases
M

Mia 09:31

Morning. Checkout copy is in review, feedback welcome.

R

Ravi 09:48

Looks good to me. One nit on the empty cart state.

A

Ana 10:05

Fixed the nit and pushed. CI is running.

M

Mia 10:12

Thanks! Approving once it goes green.

A

Ana 10:42

Staging is green. Merging #482 after lunch.

R

Ravi 10:44

Pay button copy is updated. Can someone check it on mobile?

M

Mia 10:51

On it. Release notes draft is in the doc.

A

Ana 10:58

Thanks both. Tagging v2.4.0 at 3.

Message #releases

Client work. Editor, terminal, pull request and team chat, switched as one.

Three ideas that tidy a whole desktop.

Zones give every window a home

One click reads what you are working on: the window you work in gets the most room, a terminal goes under your editor, and the windows that help sit beside it. Or pick one of eight layouts, or carve the screen into zones of your own, numbered by place. Before you click, Mosaïk shows where each window would go, and you can drag windows and the lines between zones until it is right.

  • Zones belong to the project, not the monitor
  • Every window shows its zone’s number in its colour, so you can tell at a glance
  • Works across multiple displays
1
checkout.tsx - shop - Code

SHOP

app
checkout
page.tsx
checkout.tsx
components
button.tsx
price.tsx
lib
cart.ts
money.ts
pay.ts
checkout.tsx
cart.ts
pay.ts
app checkout checkout.tsx
1import { useState } from "react"
2import { useRouter } from "next/navigation"
3import { useCart } from "@/lib/cart"
4import { formatPrice } from "@/lib/money"
5
6export function Checkout() {
7 const router = useRouter()
8 const { items, total } = useCart()
9 const [status, setStatus] = useState<"idle" | "paying">("idle")
10
11 async function pay() {
12 setStatus("paying")
13 const res = await fetch("/api/pay", {
14 method: "POST",
15 body: JSON.stringify({ items, total }),
16 })
17 if (!res.ok) throw new Error("Payment failed")
18 router.push("/thanks")
19 }
20
21 return (
22 <button onClick={pay} disabled={status === "paying"}>
23 Pay {formatPrice(total)}
24 </button>
25 )
26}
feat/checkoutLn 17, Col 40    TypeScript React
2
>_ PowerShell
Ubuntu
shop on feat/checkout ❯ npm run dev
▲ Next.js 16
- Local: http://localhost:3000
✓ Ready in 842ms
○ Compiling /checkout ...
✓ Compiled /checkout in 311ms
GET /checkout 200 in 38ms
POST /api/pay 200 in 112ms
GET /thanks 200 in 21ms
shop on feat/checkout ❯

Release to place in zone 3

3
Add one-tap checkout #482
git.acme.dev/shop/pull/482/files
S

Add one-tap checkout #482

Openana wants to merge 3 commits into main from feat/checkout
Conversation 4Commits 3Checks 6Files changed 5
lib/cart.ts+14 −3
41 export function total(items: Item[]) {
42- return items.reduce((s, i) => s + i.price, 0)
43+ const sum = items.reduce((s, i) => s + i.price * i.qty, 0)
44+ return Math.round(sum * 100) / 100
45 }
46
47+export const SHIPPING_FREE_OVER = 75
All checks have passed 6 successful checks

Tabs for any app, not only the browser

Stack your editor, terminal and design tool into one frame and flip between them like browser tabs. Tabs dragged out of Chrome or Edge join in too. One window to find instead of twelve.

  • Group any windows into one tab strip
  • Tab order is remembered per workspace
  • Pull a tab out and it becomes a window again
1
Editor
Terminal
Browser
Design
Drop to add

SHOP

app
checkout
page.tsx
checkout.tsx
components
button.tsx
price.tsx
lib
cart.ts
money.ts
pay.ts
checkout.tsx
cart.ts
pay.ts
app checkout checkout.tsx
1import { useState } from "react"
2import { useRouter } from "next/navigation"
3import { useCart } from "@/lib/cart"
4import { formatPrice } from "@/lib/money"
5
6export function Checkout() {
7 const router = useRouter()
8 const { items, total } = useCart()
9 const [status, setStatus] = useState<"idle" | "paying">("idle")
10
11 async function pay() {
12 setStatus("paying")
13 const res = await fetch("/api/pay", {
14 method: "POST",
15 body: JSON.stringify({ items, total }),
16 })
17 if (!res.ok) throw new Error("Payment failed")
18 router.push("/thanks")
19 }
20
21 return (
22 <button onClick={pay} disabled={status === "paying"}>
23 Pay {formatPrice(total)}
24 </button>
25 )
26}
feat/checkoutLn 17, Col 40    TypeScript React
2
Acme - releases

Acme

general

releases

design

random

Direct messages

Ana

Ravi

Mia

releases
M

Mia 09:31

Morning. Checkout copy is in review, feedback welcome.

R

Ravi 09:48

Looks good to me. One nit on the empty cart state.

A

Ana 10:05

Fixed the nit and pushed. CI is running.

M

Mia 10:12

Thanks! Approving once it goes green.

A

Ana 10:42

Staging is green. Merging #482 after lunch.

R

Ravi 10:44

Pay button copy is updated. Can someone check it on mobile?

M

Mia 10:51

On it. Release notes draft is in the doc.

A

Ana 10:58

Thanks both. Tagging v2.4.0 at 3.

Message #releases

Switch projects, not just windows

Save a workspace once and bring it back whenever you need it. Positions, sizes and tabs return together, so changing task takes a keystroke instead of ten minutes of rearranging.

  • Sets of the apps you use together, opened in one click
  • Saved on your computer, never in a cloud
  • Switch from the tray, the screen’s edge, or press Win+Alt+Space

Desktop first, because that’s where windows live.

Only a native app can move other apps’ windows, and each operating system allows a different amount. Here is the plan.

  • Windows

    Available

    Windows 11, and Windows 10 version 22H2. Windows lets one app move, resize and group other apps’ windows, which is all Mosaïk needs.

  • macOS

    Planned

    Next. Mosaïk will ask for the Accessibility permission, then place and group windows the same way.

  • Linux

    Planned, X11 first

    X11 allows the full feature set. Wayland deliberately limits what an app can do to other apps’ windows, so support there depends on the desktop environment.

Put your work back together.

Mosaïk is free and open source, and stays that way. If it earns its place on your desktop, you can support its work on Patreon.