{"id":47197520,"url":"https://github.com/elixir-volt/volt","last_synced_at":"2026-05-16T13:05:22.947Z","repository":{"id":344038093,"uuid":"1179507189","full_name":"elixir-volt/volt","owner":"elixir-volt","description":"Elixir-native frontend build tool — dev server, HMR, and production builds for JavaScript, TypeScript, Vue SFCs, and CSS. No Node.js required.","archived":false,"fork":false,"pushed_at":"2026-05-14T17:28:52.000Z","size":706,"stargazers_count":130,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-05-14T18:13:15.951Z","etag":null,"topics":["build-tool","bundler","elixir","frontend","hmr","no-nodejs","oxc","tailwind","vue"],"latest_commit_sha":null,"homepage":"https://hexdocs.pm/volt/readme.html","language":"Elixir","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/elixir-volt.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":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-03-12T05:05:06.000Z","updated_at":"2026-05-14T17:28:53.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/elixir-volt/volt","commit_stats":null,"previous_names":["elixir-volt/volt"],"tags_count":33,"template":false,"template_full_name":null,"purl":"pkg:github/elixir-volt/volt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elixir-volt%2Fvolt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elixir-volt%2Fvolt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elixir-volt%2Fvolt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elixir-volt%2Fvolt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elixir-volt","download_url":"https://codeload.github.com/elixir-volt/volt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elixir-volt%2Fvolt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33103972,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"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":["build-tool","bundler","elixir","frontend","hmr","no-nodejs","oxc","tailwind","vue"],"created_at":"2026-03-13T12:08:03.532Z","updated_at":"2026-05-16T13:05:22.942Z","avatar_url":"https://github.com/elixir-volt.png","language":"Elixir","funding_links":[],"categories":["Elixir"],"sub_categories":[],"readme":"# Volt ⚡\n\n[![Hex.pm](https://img.shields.io/hexpm/v/volt.svg)](https://hex.pm/packages/volt) [![Documentation](https://img.shields.io/badge/documentation-gray)](https://hexdocs.pm/volt)\n\nVite-level frontend tooling that runs inside the BEAM. One dep replaces esbuild, the Tailwind CLI, and Node.js with Rust NIFs powered by [OXC](https://oxc.rs) and [LightningCSS](https://lightningcss.dev).\n\n```bash\nmix igniter.install volt\nmix phx.server\n```\n\nThe installer configures everything. No binaries to download, no extra processes to manage.\n\nVolt's npm integration uses `npm_ex`, which ignores package lifecycle hooks by default. Runtime package installs do not execute `preinstall`, `install`, or `postinstall` scripts, mitigating install-time credential stealers.\n\n## Why Volt\n\nPhoenix ships with esbuild and a Tailwind CLI as separate binaries downloaded at compile time. They can't coordinate HMR or share work, and anything beyond vanilla JS requires Node.js.\n\nVolt replaces both with a single Elixir dep. `mix phx.server` starts the frontend toolchain automatically, rebuilding Tailwind in ~40ms on template changes and hot-swapping JS modules via HMR. Compilation errors show as a browser overlay. Production builds finish in under 100ms.\n\nYou also get features you'd expect from Vite: code splitting, CSS Modules, `import.meta.glob()`, `.env` variables, static asset imports, import aliases, and `import.meta.hot` with state preservation.\n\nThe pieces integrate because they run in one toolchain: template edits can trigger incremental Tailwind rebuilds, browser console output can flow back to your Elixir terminal, and project-specific JS/TS lint rules can be written as Elixir modules. See the [Features guide](https://hexdocs.pm/volt/features.html) for the full list.\n\n## Installation\n\n```bash\nmix igniter.install volt\n```\n\nOr add the dep manually:\n\n```elixir\ndef deps do\n  [{:volt, \"~\u003e 0.10\"}]\nend\n```\n\nSee the [Getting Started guide](https://hexdocs.pm/volt/getting-started.html) for manual configuration.\n\n## Configuration\n\nStandard `config/*.exs`. No `vite.config.js`, no `tailwind.config.js`:\n\n```elixir\nconfig :volt,\n  entry: \"assets/js/app.ts\",\n  target: :es2020,\n  sourcemap: :hidden,\n  tailwind: [\n    css: \"assets/css/app.css\",\n    sources: [\n      %{base: \"lib/\", pattern: \"**/*.{ex,heex}\"},\n      %{base: \"assets/\", pattern: \"**/*.{js,ts,jsx,tsx}\"}\n    ]\n  ]\n```\n\n`Volt.entry_path/1` resolves to the source file in dev and the content-hashed path in production, like `~p` for JS:\n\n```heex\n\u003cscript defer phx-track-static type=\"module\" src={Volt.entry_path(@endpoint)}\u003e\u003c/script\u003e\n```\n\n## Production builds\n\n```\n$ mix volt.build\n\nBuilding Tailwind CSS...\n  app-1a2b3c4d.css  23.9 KB\nBuilt Tailwind in 43ms\nBuilding \"assets/js/app.ts\"...\n  app-5e6f7a8b.js  128.4 KB  (gzip: 38.2 KB)\n  manifest.json  2 entries\nBuilt in 15ms\n```\n\nTree-shaking, minification, code splitting, content-hashed filenames, and source maps. Ready for `mix phx.digest`.\n\n## Framework support\n\nVue SFCs with scoped CSS, React JSX with the automatic runtime, Svelte 5 with runes, and Solid JSX all compile without Node.js installed. Plain TypeScript with LiveView hooks works too.\n\nSee the [examples](https://github.com/elixir-volt/volt/tree/master/examples) for complete Phoenix projects with each framework.\n\n## Developer tools\n\nJS/TS formatting and linting run as Rust NIFs. `mix format` handles Elixir and JavaScript together:\n\n```elixir\n# .formatter.exs\n[plugins: [Volt.Formatter], inputs: [\"assets/**/*.{js,ts,jsx,tsx}\"]]\n```\n\n```bash\nmix format           # Elixir + JS/TS\nmix volt.lint        # 650+ oxlint rules\nmix volt.js.check    # format + lint for CI\n```\n\nProject-specific lint rules can be written in Elixir with `OXC.Lint.Rule`.\n\n## Plugins\n\nExtend the build pipeline with the `Volt.Plugin` behaviour. Plugins can resolve imports, load custom file types, transform ASTs, render chunks, or call JS tooling through an embedded runtime:\n\n```elixir\ndefmodule MyApp.MarkdownPlugin do\n  @behaviour Volt.Plugin\n\n  def name, do: \"markdown\"\n\n  def load(path) do\n    if String.ends_with?(path, \".md\") do\n      html = path |\u003e File.read!() |\u003e Earmark.as_html!()\n      {:ok, \"export default #{Jason.encode!(html)};\\n\"}\n    end\n  end\nend\n```\n\n```elixir\nconfig :volt, plugins: [MyApp.MarkdownPlugin]\n```\n\nSee the [Plugins guide](https://hexdocs.pm/volt/plugins.html) for the full hook API.\n\n## Documentation\n\nFull documentation, guides, and cheatsheets on [HexDocs](https://hexdocs.pm/volt).\n\n## License\n\nMIT © 2026 Danila Poyarkov\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felixir-volt%2Fvolt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felixir-volt%2Fvolt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felixir-volt%2Fvolt/lists"}