{"id":34942924,"url":"https://github.com/yangjeep/leaselab","last_synced_at":"2026-05-10T06:05:37.875Z","repository":{"id":324836858,"uuid":"1098725850","full_name":"yangjeep/leaselab","owner":"yangjeep","description":"Leaselab is an AI-first ops system for rental property management.","archived":false,"fork":false,"pushed_at":"2026-03-27T14:24:48.000Z","size":15348,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-27T15:58:30.361Z","etag":null,"topics":["ai","antigravity","claude-code","cloudflare-workers","hono","nextjs","opencode","real-estate","rental-management","saas-application","tailwindcss","vercel"],"latest_commit_sha":null,"homepage":"https://www.leaselab.ai/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yangjeep.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-18T04:10:22.000Z","updated_at":"2026-03-27T06:11:44.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/yangjeep/leaselab","commit_stats":null,"previous_names":["yangjeep/leaselab2","yangjeep/leaselab"],"tags_count":29,"template":false,"template_full_name":null,"purl":"pkg:github/yangjeep/leaselab","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yangjeep%2Fleaselab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yangjeep%2Fleaselab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yangjeep%2Fleaselab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yangjeep%2Fleaselab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yangjeep","download_url":"https://codeload.github.com/yangjeep/leaselab/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yangjeep%2Fleaselab/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31313455,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","antigravity","claude-code","cloudflare-workers","hono","nextjs","opencode","real-estate","rental-management","saas-application","tailwindcss","vercel"],"created_at":"2025-12-26T19:32:35.197Z","updated_at":"2026-05-10T06:05:37.869Z","avatar_url":"https://github.com/yangjeep.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LeaseLab\n\nEvent-sourced, workflow-centric, multi-tenant property management platform.\n\n## Quick Start\n\n```bash\npnpm install\npnpm dev          # Runs leaselab-site + ops (port 3002) concurrently\n```\n\nWorker API:\n```bash\ncd apps/worker \u0026\u0026 pnpm dev    # localhost:8787\n```\n\n## Architecture\n\n- **Frontend:** Next.js 15 (multiple apps — see Project Structure), deployed to Vercel\n- **Backend:** Cloudflare Workers (Hono), event-sourced with D1 (SQLite)\n- **Auth:** Clerk (JWT)\n- **Storage:** Cloudflare R2 + KV\n\nAll mutations go through `appendEvent` — no direct SQL writes. Multi-tenant isolation via `org_id` on every query.\n\n## Project Structure\n\n```\napps/\n  worker/           Cloudflare Worker API (Hono, D1, R2, KV)\n  ops/              Internal operations dashboard (Next.js)\n  storefront-alda/  ALDA-branded live tenant storefront — connects to production API\n  leaselab-site/    LeaseLab marketing landing page\n  workflow/         Cloudflare Workflows (application evaluation, lease activation)\npackages/\n  domain/       Domain events, workflow types, ULID generation\nshared/\n  config/       Zod validation schemas\n  api/          Response envelope + route helpers\n  api-client/   Typed API client\n  types/        Storage interfaces\n  utils/        Shared utilities\n```\n\n## Commands\n\n| Command | Description |\n|---------|-------------|\n| `pnpm dev` | Run all dev servers |\n| `pnpm build` | Build all apps |\n| `pnpm test` | Run unit tests |\n| `pnpm test:e2e` | Run Playwright E2E tests |\n| `pnpm lint` | Lint all workspaces |\n| `pnpm typecheck` | Typecheck all workspaces |\n\n## Release Flow\n\nLeaseLab uses a two-branch promotion model with automated release notes.\n\n### Branches\n\n- **`main`** — Development integration branch. All PRs merge here. Preview deployments run on every push.\n- **`prod`** — Production promotion branch. A push to `prod` represents a production release event.\n\n### How releases work\n\n1. **PR preview** — When a PR targeting `prod` is opened or updated, a bot comment previews the candidate release notes. No version or tag is created at this stage.\n2. **Formal release** — When code is pushed to `prod`, a GitHub Actions workflow automatically:\n   - Computes the next version using format `vYY.MM.NN` (e.g., `v26.03.17`)\n   - Creates a GitHub Release with the computed tag and GitHub-generated release notes\n3. **Idempotency** — If the pushed commit already has a release tag, the workflow skips.\n\nRelease history is maintained entirely through [GitHub Releases](https://github.com/yangjeep/leaselab/releases).\n\n## Documentation\n\n- [Domain Model](docs/domain/domain-model.md)\n- [MVP Product Requirements](docs/prd/mvp.md)\n- [API Contract](docs/contracts/api.md)\n- [Architectural Decisions](docs/decisions/architectural-decisions.md)\n- [Property Workflow](docs/workflows/property.md)\n- [Listing Workflow](docs/workflows/listing.md)\n- [Security](SECURITY.md)\n\n## Agent Instructions\n\nFor Claude Code and AI agents:\n\n| File | Role |\n|------|------|\n| [`CLAUDE.md`](CLAUDE.md) | Primary execution contract — read first |\n| [`.agent/README.md`](.agent/README.md) | `.agent/` system overview — read second |\n| [`.agent/INDEX.md`](.agent/INDEX.md) | Reading order and task-based navigation |\n\nDetailed binding rules live under `.agent/rules/`, `.agent/workflows/`, and `.agent/checklists/`.\n\nKey rules: all mutations via `appendEvent`; `org_id` on every query; demo data in `apps/leaselab-site` is frontend-only and must not import from worker, shared packages, or production logic.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyangjeep%2Fleaselab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyangjeep%2Fleaselab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyangjeep%2Fleaselab/lists"}