{"id":37373854,"url":"https://github.com/margin-at/margin","last_synced_at":"2026-02-17T06:24:30.475Z","repository":{"id":332075755,"uuid":"1131858019","full_name":"margin-at/margin","owner":"margin-at","description":"Margin's Monorepo, available under the MIT License","archived":false,"fork":false,"pushed_at":"2026-02-12T09:11:05.000Z","size":5578,"stargazers_count":46,"open_issues_count":3,"forks_count":7,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-12T11:20:06.971Z","etag":null,"topics":["astro","bookmarks","extension","go","highlighting","webannotation"],"latest_commit_sha":null,"homepage":"https://margin.at","language":"JavaScript","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/margin-at.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":null,"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":"2026-01-10T20:41:56.000Z","updated_at":"2026-02-12T11:19:18.000Z","dependencies_parsed_at":"2026-02-08T15:07:20.844Z","dependency_job_id":null,"html_url":"https://github.com/margin-at/margin","commit_stats":null,"previous_names":["margin-at/margin"],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/margin-at/margin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/margin-at%2Fmargin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/margin-at%2Fmargin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/margin-at%2Fmargin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/margin-at%2Fmargin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/margin-at","download_url":"https://codeload.github.com/margin-at/margin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/margin-at%2Fmargin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29535935,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T05:00:25.817Z","status":"ssl_error","status_checked_at":"2026-02-17T04:57:16.126Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["astro","bookmarks","extension","go","highlighting","webannotation"],"created_at":"2026-01-16T05:01:29.226Z","updated_at":"2026-02-17T06:24:30.463Z","avatar_url":"https://github.com/margin-at.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","TypeScript"],"sub_categories":[],"readme":"# Margin\n\n_Write in the margins of the web_\n\nA web annotation layer built on [AT Protocol](https://atproto.com) that lets you annotate, highlight, and bookmark any URL on the internet.\n\n## Project Structure\n\n```\nmargin/\n├── lexicons/           # AT Protocol lexicon schemas\n│   └── at/margin/\n│       ├── annotation.json\n│       ├── bookmark.json\n│       ├── collection.json\n│       ├── collectionItem.json\n│       ├── highlight.json\n│       ├── like.json\n│       ├── reply.json\n│       ├── apikey.json\n│       ├── preferences.json\n│       └── profile.json\n├── backend/            # Go API server\n│   ├── cmd/server/\n│   └── internal/\n├── web/                # Astro SSR + React web app\n│   └── src/\n├── extension/          # Browser extension (WXT)\n│   └── src/\n└── avatar/             # Cloudflare Worker for avatar proxying\n```\n\n## Getting Started\n\n### Docker (Recommended)\n\nRun the full stack with Docker:\n\n```bash\ndocker compose up -d --build\n```\n\nThis builds both the Go backend and the Astro frontend into a single container. The Astro SSR server handles all frontend routing, static assets, and OG image generation, while the Go backend serves the API internally.\n\n### Development\n\n#### Backend\n\n```bash\ncd backend\ngo mod tidy\ngo run ./cmd/server\n```\n\nAPI server runs on http://localhost:8081\n\n#### Web App\n\n```bash\ncd web\nbun install\nbun run dev\n```\n\nDev server runs on http://localhost:4321 and proxies API requests to the backend.\n\n#### Browser Extension\n\nBuilt with [WXT](https://wxt.dev):\n\n```bash\ncd extension\nbun install\nbun run dev          # Chrome dev mode\nbun run dev:firefox  # Firefox dev mode\n```\n\n## Architecture\n\nIn production, a single Docker container runs both services:\n\n- **Astro SSR** (port 8080, public) — serves the web app, handles SSR for OG meta tags, generates dynamic OG images via satori, and proxies API/auth requests to the backend.\n- **Go API** (port 8081, internal) — handles all API endpoints, OAuth, firehose ingestion, and data storage.\n\n## Domain\n\n**Domain**: `margin.at`\n**Lexicon Namespace**: `at.margin.*`\n\n## Tech Stack\n\n- **Backend**: Go + Chi + SQLite\n- **Frontend**: Astro 5 (SSR) + React 19 + Tailwind CSS\n- **OG Images**: satori + @resvg/resvg-js\n- **Extension**: WXT + React + Tailwind CSS\n- **Protocol**: AT Protocol (Bluesky)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmargin-at%2Fmargin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmargin-at%2Fmargin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmargin-at%2Fmargin/lists"}