{"id":50411677,"url":"https://github.com/jpcodes44/emailstrat","last_synced_at":"2026-05-31T04:02:09.413Z","repository":{"id":360454385,"uuid":"1249409709","full_name":"JPCodes44/EmailStrat","owner":"JPCodes44","description":"Making an agentic workflow to get me a job...","archived":false,"fork":false,"pushed_at":"2026-05-26T12:32:01.000Z","size":1532,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-26T14:29:06.676Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JPCodes44.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-05-25T17:08:17.000Z","updated_at":"2026-05-26T12:32:06.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/JPCodes44/EmailStrat","commit_stats":null,"previous_names":["jpcodes44/emailstrat"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/JPCodes44/EmailStrat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JPCodes44%2FEmailStrat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JPCodes44%2FEmailStrat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JPCodes44%2FEmailStrat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JPCodes44%2FEmailStrat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JPCodes44","download_url":"https://codeload.github.com/JPCodes44/EmailStrat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JPCodes44%2FEmailStrat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33718446,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2026-05-31T04:02:08.530Z","updated_at":"2026-05-31T04:02:09.408Z","avatar_url":"https://github.com/JPCodes44.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EmailStrat\n\nA custom email template generator — a full-stack TypeScript monorepo.\n\nBuild email templates from typed blocks (text, image, button, divider), validate\nthem, and render them to HTML. The repo is split into three workspaces:\n\n| Workspace   | Package                | Responsibility                                            |\n| ----------- | ---------------------- | --------------------------------------------------------- |\n| `common/`   | `@emailstrat/common`   | Shared domain types + utilities (validate, render, fetch) |\n| `backend/`  | `@emailstrat/backend`  | Convex backend (schema + template CRUD functions)         |\n| `frontend/` | `@emailstrat/frontend` | React + Vite app (File Tree component + styling system)   |\n\n## Prerequisites\n\n- [Bun](https://bun.sh) `\u003e= 1.2` — package manager and task runner.\n\n## Install\n\nBun reads the npm-style `workspaces` field in the root `package.json`, so a single\ninstall at the root wires up all three packages:\n\n```bash\nbun install\n```\n\n## Develop\n\n```bash\nbun run dev:web        # start the Vite dev server (frontend)\nbun run dev:backend    # start Convex (see note below)\n```\n\n### Backend first run\n\nThe backend uses Convex. Its generated client code (`backend/convex/_generated/`)\nand cloud deployment do **not** exist until you provision them once:\n\n```bash\nbunx convex dev\n```\n\nThis prompts an interactive login, creates a deployment, and generates\n`_generated/`. After that, `bun run dev:backend` typechecks and runs against your\ndeployment. Because `_generated/` is absent until then, the backend is excluded\nfrom the aggregate `build`/`test`/`typecheck` scripts below.\n\n### Company research env\n\nThe company research action calls Gemini with Google Search grounding from\nConvex. Set the Gemini key on the Convex deployment, not in frontend env:\n\n```bash\ncd backend\nbunx convex env set GEMINI_API_KEY \"...\"\nbunx convex env set GEMINI_RESEARCH_MODEL \"gemini-2.5-flash\" # optional override\n```\n\nThe Vite app also needs the Convex deployment URL in `frontend/.env.local`:\n\n```bash\nVITE_CONVEX_URL=https://your-deployment.convex.cloud\n```\n\n## Quality checks\n\n```bash\nbun run test           # common (vitest) + frontend (vitest + RTL)\nbun run lint           # ESLint across the repo (bans `any`)\nbun run format         # Prettier write\nbun run format:check   # Prettier check (CI)\nbun run typecheck      # common + frontend type checks\nbun run build          # build common, then frontend\n```\n\nRun a single package's tasks with `--cwd`, e.g.:\n\n```bash\nbun run --cwd common test\nbun run --cwd frontend test:watch\n```\n\n## Layout\n\n```\ncommon/   shared types + utils (built to dist/, consumed via @emailstrat/common)\nbackend/  convex/ schema.ts + templates.ts (CRUD)\nfrontend/ src/ — theme.ts, components/outreach/styles.css, components/jobs/styles.css\n```\n\n## Frontend conventions\n\nThe frontend keeps component styling in folder-local stylesheets:\n\n- React components should use semantic class names rather than inline\n  `style={{}}` objects.\n- Styles for a component family live in that folder, for example\n  `frontend/src/components/outreach/styles.css` and\n  `frontend/src/components/jobs/styles.css`.\n- Components are small (≤80 lines) and single-responsibility.\n- Props are typed via interfaces in `*.types.ts`; `any` is banned.\n- Every component has a co-located `*.test.tsx` (React Testing Library).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpcodes44%2Femailstrat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpcodes44%2Femailstrat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpcodes44%2Femailstrat/lists"}