filemon 560ceb6fa0 Refine UI tour guide movement, backdrop scoping, surface alignment, and dev reset
MiniBlobbiGuide rewrite:
- Replace per-frame WALK_SPEED with deltaTime-based physics at 45 px/s
  (matching the companion's mid-energy range of 20-80 px/s)
- Import and use calculateFloatAnimation from the companion module for
  organic walking bob and idle breathing, scaled to 40-50% for mini size
- Add edge pause behavior: guide stops for 800ms at each edge before
  turning, creating a natural 'look around then turn' rhythm
- Remove CSS animation classes (bounce-gentle, walk-bob, look-down) in
  favor of the companion-style float animation applied via inline styles
- Position feet directly on surfaceY with float offset applied on top

UITourOverlay changes:
- Dark backdrop only renders on the welcome step (isWelcome guard).
  Bar item steps have no full-screen overlay — just the modal, highlight,
  and guide integrated into the page.
- For bar_item steps, the guide walks across the entire bottom bar width
  (bar-item-0 left edge to rightmost bar-item right edge), not just
  the single highlighted item's bounds.
- Use ResizeObserver to accurately measure modal rect for guide surface
  calculation, avoiding stale getBoundingClientRect after layout shifts.
- Modal container uses pointer-events-none with inner pointer-events-auto
  so clicks on the backdrop don't block page interaction on non-welcome steps.

Dev reset:
- resetTourWithProfile now also resets blobbi_ui_tour_done to 'false'
  on the Kind 11125 profile alongside blobbi_first_hatch_tour_done.
- In-memory UI tour state is reset via uiTourResetRef (ref bridge avoids
  circular dependency between the dev reset callback and the UI tour hook
  which is defined later in the component).
2026-04-03 22:12:19 -03:00
2026-04-02 23:12:45 -05:00
2026-04-02 23:12:45 -05:00
2026-04-02 23:12:45 -05:00
2026-03-16 01:43:42 -05:00
2026-02-16 16:54:01 -06:00
2026-04-02 23:12:45 -05:00
2026-02-26 21:20:15 +00:00
2026-02-22 16:35:53 -06:00
2026-04-02 23:12:45 -05:00

Ditto

Your content. Your vibe. Your rules. A fun, customizable Nostr client that puts you in control.

ditto.pub | Docs | Source

About

Ditto is an open-source, decentralized social media client built on the Nostr protocol. It's designed for people who want to have fun online without feeding the Big Tech machine. Express yourself with custom themes, Lightning payments, and an ever-growing set of content types -- all while owning your identity and data.

Made by Soapbox.

Features

  • Theming -- 9 built-in theme presets, 19 CSS token properties for full customization, and the ability to publish and share themes as Nostr events
  • Infinite Content Types -- Text notes, articles, short-form videos (Divines), live streams, polls, follow packs, color moments, magic decks, geocaching, and Webxdc mini-apps
  • Lightning Payments -- Zap posts and profiles with sats via Nostr Wallet Connect (NWC) or WebLN
  • Private Messaging -- End-to-end encrypted DMs (NIP-04 and NIP-17)
  • Comments -- Comment on anything: posts, URLs, profiles, hashtags, books, and more (NIP-22)
  • Self-Hosting -- Builds to static HTML/JS/CSS. Deploy anywhere -- GitHub Pages, Netlify, Vercel, a VPS, or a Raspberry Pi
  • Mobile -- Android native app via Capacitor, responsive design for all screen sizes

Getting Started

Prerequisites

Development

git clone https://gitlab.com/soapbox-pub/ditto.git
cd ditto
npm install
npm run dev

The dev server starts at http://localhost:8080.

Build

npm run build

The built site is output to dist/.

Test

Runs type-checking, linting, unit tests, and a production build:

npm test

Configuration

Ditto is configured through a ditto.json file at the project root, read at build time. This file is gitignored so each deployment can have its own configuration.

{
  "theme": "dark",
  "relayMetadata": {
    "relays": [
      { "url": "wss://relay.ditto.pub", "read": true, "write": true }
    ]
  },
  "blossomServers": ["https://blossom.ditto.pub"],
  "feedSettings": {
    "showPosts": true,
    "showReposts": true,
    "showArticles": true
    // ...and more content type toggles
  }
}

Configuration is resolved in three layers (highest priority first):

  1. User settings stored in localStorage
  2. Build config from ditto.json
  3. Hardcoded defaults

Use an alternate config file path with: CONFIG_FILE=./my-config.json npm run build

Custom Branding

For self-hosted instances:

  • Replace public/logo.svg and public/logo.png with your logo
  • Update the app name in index.html and public/manifest.webmanifest
  • Replace public/og-image.jpg for social sharing previews
  • Set default relays and upload servers in ditto.json

Deployment

Ditto builds to static files and can be deployed anywhere that serves HTML.

  • GitHub Pages / GitLab Pages -- Push to main and CI auto-deploys
  • Netlify / Vercel -- Connect your fork and deploy. A _redirects file is included for SPA routing
  • VPS / Any web server -- Build and copy dist/ to your server. Configure SPA routing (e.g., Nginx try_files $uri $uri/ /index.html)

Android

Build a native Android app with Capacitor:

npm run build
npx cap sync
npx cap open android

Tech Stack

Layer Technology
Framework React 18
Build Vite
Language TypeScript
Styling TailwindCSS 3 + shadcn/ui
Routing React Router 6
Data TanStack Query
Nostr Nostrify + nostr-tools
Mobile Capacitor
Testing Vitest + React Testing Library

Project Structure

src/
  components/     UI components (100+), including shadcn/ui primitives
  hooks/          Custom React hooks (65+)
  pages/          Page components for each route (30+)
  contexts/       React context providers
  lib/            Utilities and shared logic
  test/           Test setup and helpers
public/           Static assets, icons, manifest

License

AGPL-3.0

S
Description
Activist social network and fundraising platform on Nostr
Readme AGPL-3.0 43 MiB
Languages
TypeScript 95.7%
Java 1.5%
JavaScript 0.9%
Swift 0.9%
CSS 0.5%
Other 0.4%