{"id":15617950,"url":"https://github.com/davlgd/tVeb","last_synced_at":"2025-10-13T19:31:10.316Z","repository":{"id":221931466,"uuid":"755812599","full_name":"davlgd/tVeb","owner":"davlgd","description":"Tiniest Veb Server, the efficient multiplatform open source solution to host your static stuff, written in V","archived":false,"fork":false,"pushed_at":"2024-09-29T18:11:35.000Z","size":13,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-27T04:48:47.618Z","etag":null,"topics":["server","vlang","web"],"latest_commit_sha":null,"homepage":"","language":"V","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/davlgd.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2024-02-11T06:10:37.000Z","updated_at":"2025-01-22T03:39:56.000Z","dependencies_parsed_at":"2024-06-19T02:55:06.772Z","dependency_job_id":"d2493171-f178-4c73-ba7e-e9cce0a56da2","html_url":"https://github.com/davlgd/tVeb","commit_stats":null,"previous_names":["davlgd/tws","davlgd/tveb"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davlgd%2FtVeb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davlgd%2FtVeb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davlgd%2FtVeb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davlgd%2FtVeb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davlgd","download_url":"https://codeload.github.com/davlgd/tVeb/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236390507,"owners_count":19141394,"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":["server","vlang","web"],"created_at":"2024-10-03T08:00:53.021Z","updated_at":"2025-10-13T19:31:04.763Z","avatar_url":"https://github.com/davlgd.png","language":"V","readme":"# Tiniest Veb Server\n\nThe efficient multiplatform open source solution to host your static stuff, written in [V](https://vlang.io), using the new [veb vlib](https://github.com/vlang/v/tree/master/vlib/veb). It fits in a single binary \u003c 1 MB, without compression! It's a single binary, easy to compile, light and fast.\n\nI use it to host [my tech blog](https://labs.davlgd.fr).\n\n## Compile V from source\n\nIf you don't have V installed, you can compile it from source:\n\n```bash\ngit clone https://github.com/vlang/v\ncd v \u0026\u0026 make\n./v symlink\n```\n\n## Compile the server\n\nOnce you have V installed, clone this repository and build with the following command:\n\n```bash\nv -prod .\n```\n\nBinaries for ARM64 Linux, macOS, x86_64 Linux, macOS, Windows are available. You can download them and SHA256/512 sums from the [releases page](https://github.com/davlgd/tVeb/releases).\n\n## Run the server\n\nRun the with the following command. It will serve files from the `public` folder by default:\n\n```bash\n./tVeb\n```\n\nTo check if everything is fine, open your browser and go to [`http://localhost:8080`](http://localhost:8080). If you use the content of this repository, you should see content of the `index.html` file from the `public` folder.\n\nYou can also use the `curl` command:\n\n```bash\ncurl http://localhost:8080\n\u003ch1\u003eHello, world!\u003c/h1\u003e\n```\n\n## Configuration\n\nYou can specify the folder where your files are located:\n\n```bash\n./tVeb /path/to/your/folder\n```\n\nTo change the port:\n```bash\n./tVeb 4242\n./tVeb /path/to/your/folder 4242\n```\n## Custom headers\n\nYou can define some headers adding a `headers.toml` file where the server is running:\n\n```toml\ncache_control = \"max-age=3600\"\n# Delay in seconds added to the date/time of the request to define `Expires` header\nexpiration_delay = 3600\n```\n","funding_links":[],"categories":["Recently Updated","Applications"],"sub_categories":["[Oct 01, 2024](/content/2024/10/01/README.md)","Web"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavlgd%2FtVeb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavlgd%2FtVeb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavlgd%2FtVeb/lists"}