{"id":18062893,"url":"https://github.com/stagas/devito","last_synced_at":"2025-07-22T08:31:47.220Z","repository":{"id":55064633,"uuid":"522210411","full_name":"stagas/devito","owner":"stagas","description":"Fast web dev server","archived":false,"fork":false,"pushed_at":"2023-12-10T18:11:18.000Z","size":1836,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-18T05:22:23.924Z","etag":null,"topics":["dev-server","development","esbuild","web-dev"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stagas.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2022-08-07T12:45:03.000Z","updated_at":"2022-11-17T09:59:12.000Z","dependencies_parsed_at":"2025-04-11T15:13:14.344Z","dependency_job_id":"4f0bcf7d-3c44-4ccc-837a-2b957290df37","html_url":"https://github.com/stagas/devito","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":"stagas/ts","purl":"pkg:github/stagas/devito","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stagas%2Fdevito","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stagas%2Fdevito/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stagas%2Fdevito/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stagas%2Fdevito/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stagas","download_url":"https://codeload.github.com/stagas/devito/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stagas%2Fdevito/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265909107,"owners_count":23847479,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["dev-server","development","esbuild","web-dev"],"created_at":"2024-10-31T05:08:48.527Z","updated_at":"2025-07-22T08:31:47.186Z","avatar_url":"https://github.com/stagas.png","language":"TypeScript","readme":"devito is a fast web dev server, inspired by [vite](https://vitejs.dev/).\n\nIt also uses [esbuild](https://esbuild.github.io/).\n\n```sh\ndevito my-file.tsx\n```\n\nThe above will serve `my-file.tsx` and will refresh on every change.\n\n## Open in editor\n\nAllows opening `file[:line[:col]]` links from the DevTools console output, right into your editor. Use `--editor=\u003ceditor\u003e` to set your own (defaults to `code`).\n\n\u003e [Get the Chrome DevTools extension.](https://github.com/generalov/open-in-editor-extension)\n\n\u003e [See the supported editors](https://github.com/generalov/open-in-editor#options).\n\n## import.meta.url\n\n`import.meta.url` is transformed to `\u003clocation.origin\u003e/@fs/\u003cpath\u003e`.\n\nThe relative base path `/@fs/` is computed with `--homedir=\u003cpath\u003e`. It defaults to `os.homedir()`.\n\n## Workers/Worklets/iframe\n\n```ts\n// Worker\nnew Worker(new URL('./my-worker.js', import.meta.url).href, { type: 'module' })\n\n// AudioWorklet\naudioContext.audioWorklet.addModule(\n  new URL('./my-audio-worklet.js', import.meta.url).href\n)\n\n// iframe\nconst src = new URL('sandbox-iframe.js', import.meta.url).href\niframe.srcdoc = `\u003cscript src=\"${src}\" type=\"module\"\u003e\u003c/script\u003e`\n```\n\n## CSS\n\n```ts\nimport 'some.css'\n```\n\nStatically bundled modules will bundle all css to `bundle.css`.\n\nDynamically discovered modules (such when using `import()`) will create a `\u003cstyle\u003e`\nelement and it'll be appended in `\u003chead\u003e`.\n\n## JSON\n\n```ts\nimport json from 'some.json'\n```\n\n## JSX\n\n```ts\n// @jsxImportSource jsx-lib\n```\n\n`tsconfig.json`:\n\n```json\n\"compilerOptions\": {\n  ...\n  \"jsx\": \"react-jsx\",\n  ...\n}\n```\n\n## Markdown\n\n```sh\ndevito README.md\n```\n\n## Caching ~ Certificate\n\nTo enable browser caching in order to get all the speed benefits, you'll need to create a certificate.\n\ndevito will try to find a cert+key for `devito.test` under\n`process.env.SSL_CERTS_DEVITO`, `~/.ssl-certs/` or using `--cert=xxx` (minus the `-key.pem` and `.pem` suffixes).\n\n### Make certificate:\n\n```sh\nmkcert -install\nmkcert devito.test\ncp devito.test* ~/.ssl-certs/\n```\n\nThen add an entry `127.0.0.1 devito.test` in `/etc/hosts`.\n\nChrome/Firefox should now cache assets properly for that location.\n\n\u003e More info here: https://jonathanbossenger.com/2019/02/08/setting-up-trusted-ssl-certificates-for-local-development-using-mkcert-on-ubuntu-18-04-with-apache/\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstagas%2Fdevito","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstagas%2Fdevito","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstagas%2Fdevito/lists"}