Skip to content

Repository files navigation

Embark 2.0

A modern recreation of Ink & Switch's Embark: a shared travel note where freeform plans, structured places, live computations, and rich views stay in one document.

Built with TanStack Start, React 19, SpacetimeDB 2, and Biome.

What is included

  • Editable, nested trip outline with place mentions, todos, routes, and live weather blocks
  • Linked map, calendar, and table views
  • Selection shared between the outline and map
  • Realtime SpacetimeDB tables and transactional reducers
  • Local-first browser fallback when SpacetimeDB is not running
  • Responsive desktop and mobile layouts

Run locally

Install the web app and module dependencies:

bun install
cd spacetimedb && bun install && cd ..

Start SpacetimeDB in one terminal:

spacetime start

Publish the seeded module:

spacetime publish embark-2 --server local --yes

Start TanStack Start in another terminal:

bun run dev

Open http://localhost:5173. If the database is unavailable, the interface automatically switches to a persistent local draft.

Configuration

Copy .env.example to .env.local to connect to a different SpacetimeDB deployment.

VITE_SPACETIMEDB_URI=ws://127.0.0.1:3000
VITE_SPACETIMEDB_DATABASE=embark-2

After changing the schema in spacetimedb/src/index.ts, rebuild and regenerate the typed client bindings:

bun run build:module
bun run generate-bindings

Checks

bun run check
bun run build
bun run build:module

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages