Skip to content
alon710Public

About

My personal configs

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

31 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

General Applications

Application Description
Vscode Customizable code editor with extensive plugin support.
Discord Platform for voice, video, and text communication.
Stremio Media center for streaming movies and series.
Arc Browser Modern Chromium based web browser.
Docker Tool for developing and running applications in containers.
Oh-My-Zsh Framework for managing Zsh configuration with plugins and themes.
Httpie A Postman alternative

Browser Extensions

Extension Description
JSON Viewer Visualizes JSON responses in browsers.
Vimium Provides keyboard navigation in browsers.

Mac-specific Tools

Tool Description
Warp Speedy, efficient terminal emulator.
Raycast Command center for quick tool access and control.
Rectangle Window management app with keyboard shortcuts.
Altab Windows-style “Alt-Tab” window switcher for macOS.
MonitorControl Control external monitor settings from macOS.
Metting Bar MeetingBar is a menu-bar app for your calendar meetings

Web App Stack

Tool Description
Bun Package manager and script runner. Use bun run <script>; bare bun test runs Bun's own test runner.
Next.js React framework: App Router, Turbopack, Cache Components.
TypeScript Strict mode, no any.
Vercel Hosting, preview deploys and cron jobs (vercel.json).
Neon Serverless Postgres with branching.
Drizzle ORM Type-safe SQL and migrations. The neon-http driver has no transactions: use db.batch.
Better Auth Auth with email + password, Google, email OTP and admin roles, via the Drizzle adapter.
Resend Transactional email API with signed webhooks.
React Email Email templates as React components, with a local preview server.
Vercel Blob File storage for uploads. Use a private store for user documents.
t3-env Type-safe environment variables, validated with Zod at build time.
Zod Schema validation for inputs, env vars and LLM output.
oRPC API-first routes with a generated OpenAPI spec; Server Actions call them in-process. See API First.
next-intl i18n for the App Router.
React Hook Form Form state and validation.
Zustand Small client-state store, for persisted browser state only.
AI SDK LLM calls, tool use and streaming chat UI.
AI Gateway One key for every model provider, addressed by provider/model slugs.

API First

Every project is API first: the REST API is the spec, and the UI is one of its clients. The app, the REST API and the docs all run the same code. The shape to match is the envpass API: each resource is list, create, get, update and delete, commands are rare, and about a dozen domain tags cover the whole reference.

  • Each operation is one documented route. Define every CRUD operation and command once with oRPC: .route({ method, path, tags, summary }), .input(zod), .output(zod), .handler(({ context, input }) => module(context.ctx, input)). Business logic lives in plain modules (server/modules/*) that take a context and check permissions; a route only validates, calls a module and returns.
  • Server Actions call the routes. Each action is one line in a "use server" file, calling the route in-process with the session's context, never over HTTP: export const renameProjectAction = mutation(projects.rename). Actions and UI handlers never get their own validation or logic. mutation() also calls refresh(); both return { ok, data } | { ok: false, error }.
  • One public spec lists every operation. Generate it from the routes (OpenAPIGenerator + ZodToJsonSchemaConverter from @orpc/zod/zod4), never by hand. Commit it, check it for drift in CI, serve it at /api/v1/openapi.json with one public API reference page, and generate typed clients (CLI, SDKs) from it. Operations only the UI calls are in it too, and each says who may call it. The docs gate nothing: each operation's own auth decides access, so there is no public-vs-internal split.
  • One docs site, webhooks included. Webhooks the app sends live in the same spec under OpenAPI 3.1 webhooks: headers, a payload schema with field descriptions, examples and delivery rules. A partner's own view is the same page with a query param (?form=<id>) that adds their live IDs, served no-store with X-Robots-Tag: noindex. Never a second docs site or hand-written docs pages; old ones redirect to the reference.
  • One tag per resource, grouped by domain. Each resource (Questions, Question groups, Condition groups…) is one tag with a one-line description, and the tags sit inside about a dozen domain groups (Users, Billing, Content, Email…) published as x-tagGroups, so the sidebar reads domain → resource, the way Stripe's and GitHub's references do. Keep the list in one file. A resource's routes live in a file named after its tag (question-groups.ts, with <resource>.<aspect>.ts siblings for a big one), one resource per file, and a test enforces both, so a docs section always leads to its code.
  • One base builder per kind of caller: pub (anyone), authed (signed in), and one that takes a permission for staff. Attach the security scheme, the shared error responses and who may call the route to their middleware with customOpenAPIOperation, so every route documents them.
  • Less code, fewer bugs. Prefer one generic route or table with a type field over N copies.
  • One error shape. Modules throw your own error class; map it to ORPCError in one clientInterceptors entry and encode one body ({ error: { code, message } }) with customErrorResponseBodyEncoder.
  • Always set .output(). It is validated and unknown keys are stripped, so the schema is exactly what clients get. Use z.date() for timestamps.
  • Every operation shows its response in the docs. The spec carries a response schema for every operation, so the API reference renders its fields and an example; a response that shows null is a bug. .output() gives this for free. In a codebase that has no output schemas, generate the response schemas from each operation's TypeScript return type at build time (the compiler over InferRouterOutputs<typeof router>, named types as components/schemas) and merge them into the spec, so annotate every handler's return type. Read the generated file with a literal path (path.join(process.cwd(), "generated", "schemas.json")); a path built from an imported constant makes the bundler trace the whole project. Never hand-write a response schema or example.
  • Inputs are compact: path params plus the JSON body (or the query string for GET) arrive as one object. A non-GET route that reads the query string needs inputStructure: "detailed".
  • Contract test: replay every route against recorded, normalized responses, so a refactor can't change the public API by accident.

Resources

  • CRUD only, plural nouns. Collection: GET, POST. Item: GET, PATCH, DELETE. Singleton (/users/{userId}/avatar): GET, PUT, DELETE. Reordering is PUT /things/order.
  • One update verb. PATCH /things/{id} takes every editable field as optional: the edit form sends them all, a toggle sends one. No PUT full save beside a PATCH toggle, and no setter route per aspect (/labels, /mode, /daily-cap, /tracking); each becomes a field, with its own permission when it needs one. Every side effect the old save ran (cache invalidation, events, emails, revalidation) still runs when its fields are sent. Keep a PUT only where the client always sends the whole object and a partial body has no meaning.
  • A status change is a PATCH on the resource ({ status }, { published }), never a /publish or /cancel route.
  • Duplicating is a create: POST /things { copyFrom: id }.
  • Only real side effects are commands: POST /things/{id}/<verb> for send, retry, stop, test, refund, run. One command covers one item or many (POST /things/retry { ids }, where no ids means every due one), not /retry beside /{id}/retry. The same goes for edits: a multi-item PATCH /things { ids, … } covers one item or many, so tagging, queueing or resolving items are fields on it, not PUT /things/{id}/tags/{tagId} or /send-queue routes.
  • One prefix per entity. Each resource is reachable under one path. A child's item routes sit under the parent that owns its list (DELETE /carousels/{id}/entries/{entryId}, not /carousel-entries/{id}). Flatten a namespace that adds nothing (/conditions/groups → /condition-groups).
  • One route, one shape. A route always returns the same kind of thing. Query parameters may only filter rows, sort and page them, pick fewer fields (fields=id,label, one shared helper), add named parts or aggregates (include=, with pageSize=0 when only the aggregate is wanted), or change the format. No view= or select= modes: data of a different kind is its own resource or a part of the record that owns it. A paged list returns one shared envelope ({ items, totalItems }), and each resource has one named row type, so the docs show one schema per resource.
  • One list per collection. A narrower set of the same rows is a filter on the list (?status=running, ?parentId=, ?active=true), never a sibling route (/active, /ids, /with-conditions, /personal, the same children listed under two parents). A count of those rows is an include aggregate (?include=unreadCount&pageSize=0, not /unread-count). That holds across audiences too: a public read and the staff list of the same rows are one route with a public filter, the public read as open as before and without staff-only fields, the staff list behind its permission, checked inside the handler. A different format is a param too (format=csv on the list, with the same filters). A second route is right only for an input too big for a query string (POST …/sort with a body).
  • One record, parts by include. A resource's own data is one GET /things/{id}?include=a,b, each part checked against its own permission, not a route per part (/summary, /billing, /progress). include takes a,b or a repeated param. Its edits are one PATCH /things/{id} with a field per change, each with its own permission.
  • Per-user routes live once at /users/{userId}/…, and userId may be me. No /me/… twin of a /users/{userId}/… route; /me/… is only for what exists for the caller alone. Resolve the target in one helper: a caller acting on themselves passes, and any other user needs the staff permission.
  • Names are <Verb> <resource>. The operation summary (the docs sidebar) is List broadcasts, Get broadcast, Create broadcast, Update broadcast, Upsert avatar (a PUT that creates when missing), Delete broadcast, Reorder FAQs, Search users, or a command's verb (Send broadcast, Refund payment). Everything else (what it does, who may call it, side effects) goes in the description.
  • Consolidate, don't rename. A route change must remove a route, remove a duplicate path, or make two inconsistent paths consistent. Never rename a path for taste.

Shared concerns

One route each, never one per resource:

  • Access: one GET /me/access returns the role, plan, permissions and feature flags, computed from one registry of checks. No per-feature availability routes.
  • Events: one POST /events and one events table (type, the actor as a user or a guest, the subject, metadata, created_at). No per-resource click or view routes, counter columns or per-feature event tables. Derive counts with a query, so every event keeps who did it, when, and its metadata. Staff read the same resource, GET /events, with filters and a select for aggregates. A state change that sends an email is not an event: it stays on the resource or command that owns it (finishing onboarding is a flag on the checkout).
  • Uploads: one POST /uploads { purpose, file } and DELETE /uploads/{key} for every file a later save references (logos, images, staged attachments). Each purpose is a row in one table: who may upload, the rate limit, the file rules, the storage folder, whether it can be deleted. Generate the docs text from that table. Files that belong to a record stay on it (PUT /users/{userId}/avatar).
  • Pickers: a projection of the list, GET /<resource>?fields=id,label, filtered by the query string. A picker reader is let through only when every requested field is in the picker set, checked inside the handler. No /options sibling and no picker routes under other resources. A route for choices that aren't rows (GET /things/form-options) may stay.
  • Search: one POST /<resource>/search per resource, taking { filters, fields, include }. No route per projection (ids, emails, rows): those are fields, counts are include.

UI Libraries

Tool Description
shadcn/ui Copy-in components you own and restyle.
Base UI Unstyled, accessible primitives under shadcn/ui (instead of Radix).
Tailwind CSS v4 utility CSS on semantic design tokens.
cva Typed component variants.
tailwind-merge Merges Tailwind classes without conflicts (shadcn's cn).
Lucide Outline icon set.
Motion Animation. Use LazyMotion + m.* to keep the bundle small.
dnd-kit Accessible drag-and-drop and sortable lists.
Tiptap Rich-text editor on ProseMirror.
Serwist PWA service worker (@serwist/turbopack).
Rybbit Privacy-friendly web analytics.

Testing

Tool Description
Vitest Test runner, split into node, jsdom and database projects.
Testing Library Render and query components the way users do.
jest-axe Automated WCAG checks in component tests.
PGlite Postgres in WASM, in-process: real-database tests without Docker.

Code Quality & CI

Tool Description
Prettier Code formatter.
ESLint Linter (flat config).
eslint-plugin-jsx-a11y Accessibility lint rules for JSX.
eslint-plugin-simple-import-sort Auto-sorted imports.
eslint-plugin-unused-imports Removes unused imports.
@shadcn/lint Design-system lint: no raw colors, arbitrary values or restyled components.
knip Finds unused files, exports and dependencies.
commentless Strips prose comments; --check fails CI on any that remain.
next-intl-validator Finds missing and unused translation keys.
React Doctor React health scan: security, performance, correctness, accessibility.
ShadScan shadcn/ui audit with a --fail-under score gate.
GitHub Actions CI: one job per gate, actions pinned by commit SHA.
Blacksmith Drop-in GitHub Actions runners.
actionlint Workflow syntax checker.
zizmor Security audit for GitHub Actions workflows.
TruffleHog Scans git history for leaked secrets.
AGENTS.md One instructions file for every coding agent (Claude Code, Codex, Cursor).

Agent Skills

skills.sh

Reusable Agent Skills for Claude Code, Codex and Cursor, in skills/. Each skill discovers project specifics (package manager, default branch, issue tracker, design tokens) at runtime instead of hardcoding them.

They're listed on skills.sh. Install one, or all of them, with the skills CLI:

npx skills add alon710/configs --list              # see what's here
npx skills add alon710/configs -s create-pr -g     # one skill, user-level
npx skills add alon710/configs -s '*' -g           # everything
Skill Description skills.sh
create-pr Opens a PR titled with its issue id and a QA table Claude runs, then has a fresh agent review it and resolves every comment. view
resolve-pr-issues Inventories every PR review thread and comment, verifies each, replies, and resolves. view
debug Triages a concrete bug report from real logs, DB rows and deploy history to a root cause and a minimal fix. view
vercel-log-debug Pulls Vercel production error logs, ranks them, traces each to source, and writes a fix report. view
codebase-audit Evidence-backed audit for dead code, duplication, over-abstraction and perf/cost wins; files tickets after approval. view
component-drilldown Explains, fixes, or consolidates UI components: variants, usages, and repo conventions. view
demo-video Product demo videos as code: HTML recreating the real UI, a pure seek(t) on a beat grid, rendered to MP4. view
design-variants Builds 4-5 genuinely different UI/UX variants of a section in the project's own design system, with real content, then implements the pick. view
extract-design-system Extracts a codebase's design system into a Design System artifact: themed tokens, type, fonts, logos, a brand book and component cards. view

About

My personal configs

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages