{"id":16822631,"url":"https://github.com/anber/wyw-in-js","last_synced_at":"2026-05-08T18:02:00.658Z","repository":{"id":197650334,"uuid":"698873913","full_name":"Anber/wyw-in-js","owner":"Anber","description":null,"archived":false,"fork":false,"pushed_at":"2026-01-15T19:26:52.000Z","size":4645,"stargazers_count":308,"open_issues_count":2,"forks_count":25,"subscribers_count":5,"default_branch":"main","last_synced_at":"2026-01-16T07:15:19.404Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Anber.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","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":"2023-10-01T08:35:15.000Z","updated_at":"2026-01-15T19:25:49.000Z","dependencies_parsed_at":"2023-10-02T00:05:43.918Z","dependency_job_id":"9c25063a-5589-4bbb-ab5c-b1790439e694","html_url":"https://github.com/Anber/wyw-in-js","commit_stats":null,"previous_names":["anber/wyw-in-js"],"tags_count":240,"template":false,"template_full_name":null,"purl":"pkg:github/Anber/wyw-in-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anber%2Fwyw-in-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anber%2Fwyw-in-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anber%2Fwyw-in-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anber%2Fwyw-in-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Anber","download_url":"https://codeload.github.com/Anber/wyw-in-js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anber%2Fwyw-in-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28755584,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T16:32:25.380Z","status":"ssl_error","status_checked_at":"2026-01-25T16:32:09.189Z","response_time":113,"last_error":"SSL_read: 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":"2024-10-13T11:05:15.429Z","updated_at":"2026-01-25T17:15:45.013Z","avatar_url":"https://github.com/Anber.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003eWyW-in-JS\u003c/h1\u003e\n  \u003cp\u003eA Toolkit for Zero-Runtime CSS-in-JS Libraries\u003c/p\u003e\n\u003c/div\u003e\n\n# Introduction\n\nwyw-in-js, short for \"Whatever-you-want-in-JS,\" is the world's first toolkit for creating various zero-runtime CSS(and more)-in-JS libraries. In essence, it empowers developers to build their own solutions with arbitrary syntax and functionality, offering complete independence from specific implementations.\n\n### Origins\n\nThis library evolved from the CSS-in-JS library [Linaria][1], with the aim of decoupling from a specific implementation and providing developers with a comprehensive toolkit for crafting their own solutions with custom syntax and features.\n\n### Key Features\n\n- Provides an API for creating custom processors (e.g., `css` and `styled` in [Linaria][1] or `makeStyles` in [Griffel][2]).\n- Supports a wide range of syntaxes, including tagged templates, function calls, and object literals.\n- Computes any unprepared JavaScript during the build phase, generating a set of artifacts that processors can transform into styles (or other outputs, depending on the processor).\n- Allows for arbitrary JavaScript in style definitions, including imports, conditionals, and loops.\n- Offers loaders and plugins for popular bundlers (including Webpack, Vite, esbuild) and frameworks (Next.js), ensuring compatibility with various build systems.\n\n## Documentation\n\n- Website: https://wyw-in-js.dev/\n- Stability: https://wyw-in-js.dev/stability\n- Troubleshooting: https://wyw-in-js.dev/troubleshooting\n- Configuration: https://wyw-in-js.dev/configuration\n- How it works: https://wyw-in-js.dev/how-it-works\n- Bundlers: https://wyw-in-js.dev/bundlers\n- CLI: https://wyw-in-js.dev/cli\n\n## Requirements\n\n- Node.js `\u003e=20.0.0` (Node 18 is EOL and not supported).\n- Bun `\u003e=1.0.0` (supported via `@wyw-in-js/bun` and for running the workspace with Bun).\n\n## CLI Quickstart\n\nInstall:\n\n```sh\nnpm i -D @wyw-in-js/cli\nyarn add -D @wyw-in-js/cli\npnpm add -D @wyw-in-js/cli\nbun add -d @wyw-in-js/cli\n```\n\nExtract CSS and inject imports into your compiled output:\n\n```sh\nwyw-in-js \\\n  --config ./wyw-in-js.config.js \\\n  --source-root ./src \\\n  --out-dir ./dist/wyw-css \\\n  --insert-css-requires ./dist \\\n  --modules esnext \\\n  --transform \\\n  \"src/**/*.{ts,tsx,js,jsx}\"\n```\n\nSee https://wyw-in-js.dev/cli for all options, migration notes from `@linaria/cli`, and notes about dependencies (including `happy-dom`).\n\n[1]: https://github.com/callstack/linaria\n[2]: https://github.com/microsoft/griffel\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanber%2Fwyw-in-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanber%2Fwyw-in-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanber%2Fwyw-in-js/lists"}