PictoPy Website is the official landing page for PictoPy: a privacy-first, AI-powered desktop image gallery.
A high-performance, developer-friendly webpage built on Next.js 16 (App Router), React 19, Tailwind CSS v4, and pre-configured for Internationalization (i18n) and Localization (l10n) using next-intl.
PictoPy is an advanced desktop gallery application that combines Tauri, React, and Rust for the frontend with a Python backend for sophisticated AI-powered image analysis and management.
It runs entirely offline, keeping your photos and their analysis private — no cloud uploads, no external servers.
- Smart Auto-Tagging — automatically tags photos based on detected objects and recognized faces using YOLOv11 and FaceNet
- Face Clustering — groups photos by person using DBSCAN clustering on face embeddings
- Smart Search — find photos by objects, faces, or metadata instantly
- Album Management — full traditional gallery features alongside AI capabilities
- Privacy-First — fully offline, all processing happens locally on your machine
- Cross-Platform — runs on Windows, macOS, and Linux via Tauri
| Layer | Technology |
|---|---|
| Desktop Framework | Tauri |
| Frontend | React, TypeScript, Tailwind CSS |
| Rust Backend | Rust (file system & Tauri bridge) |
| Python Backend | FastAPI, Python |
| Object Detection | YOLOv11 |
| Face Recognition | FaceNet, ONNX Runtime |
| Face Clustering | DBSCAN |
| Database | SQLite |
| Image Processing | OpenCV |
| State Management | Redux Toolkit |
- Next.js 16 & React 19: Utilizing the latest Server Components, Client Actions, and async routing paradigms.
- Tailwind CSS v4: Modern utility-first styling with native CSS variables and streamlined postcss integrations.
- Dual Theme System: Flash-free light and dark themes using a custom React theme provider (
src/context/theme-provider.tsx) and Tailwind CSS v4 class-based custom variants. - Complete Landing Page: Hero with live download links (GitHub Releases API), Mac-style app mockups with a live locale-aware menu-bar clock, feature cards, metrics, community CTAs, FAQ accordion, and a footer with an interactive letter-animated watermark.
- Robust i18n & l10n: Deeply integrated multi-language support:
- Automatic locale detection based on browser preferences.
- Subpath routing (e.g.,
/hifor Hindi, and unprefixed/for English as default) with cleanas-neededURL prefixing. - Sleek, interactive language switcher client component.
- Zero-bundle-size footprint for static translations using Server Components & Client
useTranslations.
- Developer Experience: Strict TypeScript compilation and ES Lint setup.
- Application Control Compatibility: Configured with manual Webpack & Turbopack alias resolution to bypass restrictive execution environments blocking native binary compiles.
- Open-Source Governance & CI/CD: Integrated GitHub Actions workflows (
ci.yml,nextjs.yml,label-merge-conflicts.yml),.coderabbit.yaml, andDCO.mdlegal documentation. - AI Agent Pairing Ready: Includes
AGENTS.mdandCLAUDE.mdto guide AI development agents.
Here is a breakdown of the key i18n directories and files:
├── .github/ # GitHub configuration and CI workflows
│ └── workflows/
├── .coderabbit.yaml # Automated AI Code Review configuration
├── AGENTS.md # AI agent directives and rules
├── BestPracticesChecklist.md # OpenSSF best-practices self-assessment
├── CLAUDE.md # Notes for Claude or AI assistance
├── CONTRIBUTING.md # How to contribute
├── COPYRIGHT.md
├── Contributors.md
├── DCO.md
├── LICENSE # GNU GPL v3.0
├── MAINTAINERS.md # Maintainers and mentors
├── README.md
├── SECURITY.md # Private vulnerability reporting
├── Tasks.md
├── eslint.config.mjs
├── next.config.ts
├── next-env.d.ts
├── package.json
├── package-lock.json
├── postcss.config.mjs
├── public/ # Public static assets
│ ├── llms.txt
│ ├── og-image.png # 1200x630 social share image
│ ├── robots.txt
│ └── brand/
│ ├── Brand.md
│ ├── assets/ # App screenshots used in the mockups
│ │ ├── hero.jpg
│ │ ├── 1.jpg
│ │ ├── 2.jpg
│ │ └── 3.jpg
│ └── icons/
│ ├── aossie_logo.svg
│ ├── pictopy_logo.svg
│ ├── stability_nexus_logo.svg
│ └── favicon.ico
├── src/ # Source files
│ ├── app/
│ │ ├── (root)/ # Bare `/`: full metadata + redirect to /en
│ │ ├── sitemap.ts
│ │ └── [locale]/
│ │ ├── globals.css
│ │ ├── layout.tsx
│ │ ├── page.tsx
│ │ ├── error.tsx
│ │ └── not-found.tsx
│ ├── assets/ # Imported logos (SVG/PNG)
│ ├── components/
│ │ ├── Download.tsx # Platform download buttons + release version bar
│ │ ├── Faq.tsx # FAQ accordion
│ │ ├── Features.tsx # Feature cards (AI Tagging, Memories)
│ │ ├── Footer.tsx # Download CTA, link columns, socials, copyright
│ │ ├── FooterWatermark.tsx # Interactive "PictoPy" letter animation
│ │ ├── Hero.tsx # Headline, badge, Powered by AOSSIE
│ │ ├── HomePage.tsx # Section composition for the homepage
│ │ ├── LanguageSwitcher.tsx # Designed locale dropdown
│ │ ├── MacClock.tsx # Live locale-aware menu-bar clock
│ │ ├── MacMockDesc.tsx
│ │ ├── Metrics.tsx
│ │ ├── MockUp.tsx # Mac-style window frame for screenshots
│ │ ├── MockUpWithDesc.tsx # Mockup + testimonial section
│ │ ├── ShuffleGrid.tsx # Animated background image grid
│ │ ├── SocialMediaCTA.tsx
│ │ ├── providers/
│ │ │ └── lenis-provider.tsx
│ │ └── ui/
│ │ ├── Navbar.tsx
│ │ └── button.tsx
│ ├── config/
│ ├── const/
│ ├── context/
│ │ └── theme-provider.tsx # Light/dark theme context
│ ├── hooks/ # usePlatform, useDownloadLink
│ ├── i18n/
│ │ ├── metadata.ts
│ │ ├── navigation.ts
│ │ ├── request.ts
│ │ └── routing.ts
│ ├── index.css
│ ├── lib/ # Pure logic: platform detection, release lookup
│ └── messages/
│ ├── en.json
│ └── hi.json
├── tests/ # Vitest unit + property tests
├── tsconfig.json
├── vitest.config.mts
└── .gitignore
Notes:
- The repo uses a localized App Router layout under
src/app/[locale]and reusable UI components undersrc/components. - All user-facing strings live in
src/messages/{en,hi}.json; components never hard-code copy. - The site is fully static (
output: "export"), so anything dynamic (release version, download links, the mockup clock) is fetched or computed client-side.
To add support for a new language (e.g., French - fr):
-
Register the language: Open
src/config/languages.tsand add your new language to thelanguagesarray:export const languages: Language[] = [ { code: 'en', name: 'English', localName: 'English' }, { code: 'hi', name: 'Hindi', localName: 'हिन्दी' }, { code: 'fr', name: 'French', localName: 'Français' } // Add this line ];
-
Create the translation catalog: Under
src/messages/, create a new file namedfr.json:{ "Home": { "heading": "Bienvenue sur AOSSIE Webpage Starter" } } -
That's it! Next.js and
next-intlwill automatically register the locale, add it to the routing tables, and handle redirection for visitors matchingfrbrowser preferences.
By default, server components can load translations statically without shipping translation JSONs to the client bundle:
import { useTranslations } from "next-intl";
export default function Section() {
const t = useTranslations("Home");
return <h1>{t("heading")}</h1>;
}If your component uses React hooks (e.g., useState), define it with "use client" and import from next-intl:
"use client";
import { useTranslations } from 'next-intl';
export default function InteractiveButton() {
const t = useTranslations('Home');
return <button onClick={() => alert('Clicked!')}>{t('heading')}</button>;
}When navigating between routes, always use the locale-aware navigation helpers imported from src/i18n/navigation.ts instead of standard next/link or next/navigation:
import { Link } from "../../i18n/navigation";
// Will automatically resolve to /en/about or /hi/about based on active locale
<Link href="/about">About Us</Link>;For programmatic router navigation:
import { useRouter, usePathname } from "../../i18n/navigation";
const router = useRouter();
const pathname = usePathname();
// Switch active locale on current page
router.replace(pathname, { locale: 'hi' });The starter kit uses next-themes combined with Tailwind CSS v4's class-based custom variants to provide a responsive and flash-free theme experience.
Preffered Method
Tailwind v4 is configured via CSS custom properties in src/app/[locale]/globals.css. To adjust the default light and dark theme background or text colors, edit the root variables:
:root {
--background: #ffffff; /* Light theme background */
--foreground: #121212; /* Light theme text */
}
.dark {
--background: #0a0a0a; /* Dark theme background */
--foreground: #f4f4f5; /* Dark theme text */
}To create element styles that adapt automatically to the user's selected theme, use semantic utility tokens instead of inline dark: utilities:
<div className="bg-background-secondary text-foreground-primary border border-border-default">
This card automatically transitions colors across light and dark themes.
</div>The starter repository integrates the lenis library to provide smooth, high-performance inertial scrolling across all browsers.
To configure scroll parameters (e.g., dampening velocity, custom scroll durations, or scroll directions), update the parameters passed to the ReactLenis component in lenis-provider.tsx:
<ReactLenis root options={{ lerp: 0.1, duration: 1.5, smoothWheel: true }}>
{children}
</ReactLenis>To access the active Lenis instance or bind custom scroll animations programmatically in your page components, use the useLenis hook:
import { useLenis } from "lenis/react";
const lenis = useLenis(({ scroll, limit, velocity, direction }) => {
// Bind your scroll logic or animation timelines here
});Install the project dependencies:
npm installStart the development server:
npm run devOpen http://localhost:3000 to view it. Every page lives under a locale prefix (/en, /hi); the bare / forwards to /en.
Compile and optimize the project:
npm run buildThis compiles optimized static pages under the /[locale] path and checks all TypeScript configurations.
npm test # run the Vitest suite once
npm run test:watch # re-run on file changes
npm run test:coverage # run with coverage; fails below 90% (same as CI)Tests live in tests/ and cover platform detection, release-asset lookup, SEO metadata, the sitemap, the download/platform hooks and translation-catalog parity. They include fast-check property tests.
The site is exported to static HTML (output: "export") and deployed to GitHub Pages by nextjs.yml. To preview the production output locally:
npm run build
npx serve outWe welcome contributions of all kinds! To contribute:
- Fork the repository and create your feature branch (
git checkout -b feature/AmazingFeature). - Commit your changes (
git commit -m 'Add some AmazingFeature'). - Ensure code quality (CI runs the same checks):
npm run lintnpm run test:coveragenpm run build
- Sign off your commits (
git commit -s), see CONTRIBUTING.md. - Push your branch (
git push origin feature/AmazingFeature). - Open a Pull Request and share it in the project's Discord channel.
© 2026 AOSSIE. Released under the GNU GPL v3.0.