{"id":31919605,"url":"https://github.com/cxa/cape-tailwindcss","last_synced_at":"2026-02-18T16:01:38.726Z","repository":{"id":318573474,"uuid":"1071595572","full_name":"cxa/cape-tailwindcss","owner":"cxa","description":"Capf for TailwindCSS class names","archived":false,"fork":false,"pushed_at":"2025-10-07T23:55:55.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-01T01:37:45.954Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Emacs Lisp","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/cxa.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":null,"dco":null,"cla":null}},"created_at":"2025-10-07T14:56:48.000Z","updated_at":"2025-10-07T23:55:58.000Z","dependencies_parsed_at":"2025-10-08T01:32:49.731Z","dependency_job_id":null,"html_url":"https://github.com/cxa/cape-tailwindcss","commit_stats":null,"previous_names":["cxa/cape-tailwindcss"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cxa/cape-tailwindcss","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cxa%2Fcape-tailwindcss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cxa%2Fcape-tailwindcss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cxa%2Fcape-tailwindcss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cxa%2Fcape-tailwindcss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cxa","download_url":"https://codeload.github.com/cxa/cape-tailwindcss/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cxa%2Fcape-tailwindcss/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29585441,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T13:56:48.962Z","status":"ssl_error","status_checked_at":"2026-02-18T13:54:34.145Z","response_time":162,"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":[],"created_at":"2025-10-13T21:45:48.235Z","updated_at":"2026-02-18T16:01:38.707Z","avatar_url":"https://github.com/cxa.png","language":"Emacs Lisp","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cape-tailwindcss\n\nCapfs for Tailwind CSS\n\n## Motivation\n\nThe Tailwind CSS language server typically returns around 20,000 completion items. Emacs handles parsing and converting large JSON into Elisp objects poorly, which causes about a 2-second lag on my MacBook Pro M1. Because these class items are (almost) the same across most projects, we can cache them and provide a capf (completion-at-point function) to complete blazingly fast!\n\n## Install \u0026 Configuration Example\n\n``` emacs-lisp\n(use-package cape-tailwindcss\n  :vc (:url \"https://github.com/cxa/cape-tailwindcss\")\n  :commands (cape-tailwindcss-capf)\n  :preface\n  (defun my/eglot-capf-hook ()\n    (let ((capf (cape-capf-super #'eglot-completion-at-point\n                                 #'cape-tailwindcss-capf)))\n      (if (not eglot--managed-mode)\n          (remove-hook 'completion-at-point-functions capf 'local)\n        (remove-hook 'completion-at-point-functions #'eglot-completion-at-point 'local)\n        (add-hook 'completion-at-point-functions capf nil 'local))))\n\n  (defun my/lsp-capf-hook ()\n    (let ((capf (cape-capf-super #'lsp-completion-at-point\n                                 #'cape-tailwindcss-capf)))\n      (if (not lsp-completion-mode)\n          (remove-hook 'completion-at-point-functions capf 'local)\n        (remove-hook 'completion-at-point-functions #'lsp-completion-at-point 'local)\n        (add-hook 'completion-at-point-functions capf nil 'local))))\n  \n  :bind (:map cape-prefix-map\n              (\"i\" . cape-tailwindcss))\n\n  :hook\n  (eglot-managed-mode  . my/eglot-capf-hook)\n  (lsp-completion-mode . my/lsp-capf-hook))\n```\n\n## Note\n\nSee \u003chttps://github.com/cxa/eglot-lspx\u003e for instructions on using the Tailwind CSS language server alongside other LSP servers with Eglot.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcxa%2Fcape-tailwindcss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcxa%2Fcape-tailwindcss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcxa%2Fcape-tailwindcss/lists"}