{"id":25939038,"url":"https://github.com/orgsofthq/dsbuild","last_synced_at":"2025-12-25T20:43:00.311Z","repository":{"id":185256801,"uuid":"673222238","full_name":"orgsofthq/dsbuild","owner":"orgsofthq","description":"📦 Build modern websites with zero added frameworks. Deno, React, JS/TS, \u0026 Markdown MDX supported.","archived":false,"fork":false,"pushed_at":"2025-02-01T21:01:01.000Z","size":194,"stargazers_count":96,"open_issues_count":3,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-27T18:42:28.830Z","etag":null,"topics":["bundle","deno","esbuild","web"],"latest_commit_sha":null,"homepage":"","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/orgsofthq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2023-08-01T06:35:27.000Z","updated_at":"2025-02-24T02:44:19.000Z","dependencies_parsed_at":"2024-02-10T01:29:51.993Z","dependency_job_id":"fe9247e8-af22-4606-abbd-55dd0262fd4e","html_url":"https://github.com/orgsofthq/dsbuild","commit_stats":null,"previous_names":["mattvr/dsbuild","orgsofthq/dsbuild"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orgsofthq%2Fdsbuild","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orgsofthq%2Fdsbuild/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orgsofthq%2Fdsbuild/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orgsofthq%2Fdsbuild/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orgsofthq","download_url":"https://codeload.github.com/orgsofthq/dsbuild/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241780503,"owners_count":20019061,"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":["bundle","deno","esbuild","web"],"created_at":"2025-03-04T04:02:27.381Z","updated_at":"2025-12-25T20:43:00.305Z","avatar_url":"https://github.com/orgsofthq.png","language":"TypeScript","readme":"\u003cp align=\"center\"\u003e\u003ca href=\"https://github.com/orgsofthq/dsbuild\"\u003e\n\u003cimg src=\"/dsbuild.svg\" \u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp align=\"center\"\u003e\u003cstrong\u003eRun your Deno code in the browser.\u003c/strong\u003e\u003c/p\u003e\n\u003ch4 align=\"center\"\u003e\u003cstrong\u003e\u003ca href=\"https://orgsoft.org/discord\"\u003e\u003cimg src=\"https://github.com/mattvr/ShellGPT/assets/4052466/9ba871c8-451c-4178-9035-645142b617d9\" /\u003e Discord \u003c/a\u003e\u003c/strong\u003e\u003c/h4\u003e\n\n---\n\n`dsbuild` helps you create modern websites with Deno TypeScript.\n\nWith one-command \u0026 zero configuration, `dsbuild` bundles your code into a single JavaScript file that can be run in the browser.\n\nUse it to build React, Markdown, or other JS-powered web sites entirely using Deno with hot-reloading \u0026 a local development server. *No frameworks, bloat, or platform lock-in necessary.*\n\n## ⬡ Features\n\n- **Zero configuration** - Just run `dsbuild`\n- **TypeScript \u0026 JSX** - Full support out of the box \n- **React \u0026 MDX** - Build modern web apps and content sites\n- **CSS bundling** - Combines and minifies styles\n- **Hot reload** - Instant updates with `--watch`\n- **Dev server** - Built-in server with `--serve`\n- **Import maps** - Support for all Deno import types (`npm:`, `jsr:`, `https://`)  \n- **Instant builds** - Powered by [`esbuild`](https://esbuild.github.io/) and [`@deno/esbuild-plugin`](https://github.com/denoland/deno-esbuild-plugin)\n\n## ⬡ Installation\n\n1. Install the [Deno runtime](https://deno.land/manual/getting_started/installation).\n\n2. Run the following command to install dsbuild:\n\n```sh\ndeno install -frAg jsr:@orgsoft/dsbuild\n```\n\n3. Ensure `$HOME/.deno/bin` is in your `PATH` environment variable.\n\n## ⬡ Usage\n\n### Basic\n\n```bash\n# Builds src/app.ts into public/app.js\ndsbuild\n\n# Watch for changes and rebuild automatically\ndsbuild --watch\n# or\ndsbuild -w\n\n# Watch specific directories\ndsbuild --watch=src/ui,src/api\n\n# Watch and serve on localhost:8000\ndsbuild --watch --serve\n# or\ndsbuild -ws\n\n# Serve without building\ndsbuild --serve-only\n\n# Build a static site\ndsbuild --react-static --in=src/site.tsx --out=public/index.html\n\n# Compile MDX files into JSX\ndsbuild --mdx src/MyExample.mdx\n\n# Combine \u0026 minify CSS files\ndsbuild --css --in=src/css/ --out=public/main.css\n```\n\n### Configuration\n\n```bash\n# Use a config or import map (will auto-discover)\ndsbuild --config deno.jsonc\ndsbuild --import-map import-map.json\n\n# Custom input/output files\ndsbuild --in src/some-file.ts --out public/another-file.js\n\n# Target specific browsers\ndsbuild --target chrome99,firefox99,safari15\n\n# Development build (no minification)\nDENO_ENV=development dsbuild\n\n# Generate deno.json with browser/React settings\ndsbuild --denoconfig\ndsbuild --denoconfig --out deno.json\n\n# Generate tsconfig.json with browser/React settings  \ndsbuild --tsconfig\ndsbuild --tsconfig --out tsconfig.json\n\n# Provide a custom esbuild configuration\ndsbuild --esbuild-config esbuild-config.json\n```\n\n## ⬡ Examples\n\n### ⬢ Basic TypeScript\n\nBuild a simple web app that renders Markdown:\n\n```typescript\n// src/app.ts\nimport { marked } from \"npm:marked@^9.1.2\";\n\nconst markdown = `\n# Hello World\nThis is **markdown** rendered with dsbuild!\n`;\n\ndocument.body.innerHTML = marked(markdown);\n```\n\n```bash\ndsbuild --watch --serve\n# Visit http://localhost:8000\n```\n\n**[View full example →](examples/basic/)**\n\n---\n\n### ⬢ CSS compilation\n\nCombine multiple CSS files into a single bundle:\n\n```css\n/* src/base.css */\nbody {\n  --color: green;\n  background-color: var(--color);\n}\n\n/* src/component.css */ \n.component {\n  padding: 1rem;\n  border-radius: 8px;\n}\n```\n\n```bash\n# Concatenates CSS files alphabetically\ndsbuild --css\n```\n\n**File structure:**\n```\nsrc/\n  ├── base.css\n  ├── component.css\n  └── component.mobile.css\npublic/\n  └── app.css  # Generated bundle\n```\n\n**[View full example →](examples/css/)**\n\n---\n\n### ⬢ React\n\nBuild interactive React apps with Deno:\n\n```typescript\n// src/app.tsx\nimport React from \"react\";\nimport ReactDOM from \"react-dom/client\";\n\nconst App = () =\u003e {\n  const [count, setCount] = React.useState(0);\n  \n  return (\n    \u003cdiv\u003e\n      \u003ch1\u003e🪐 sup, universe!\u003c/h1\u003e\n      \u003cp\u003eCount: {count}\u003c/p\u003e\n      \u003cbutton onClick={() =\u003e setCount(count + 1)}\u003e\n        Increment\n      \u003c/button\u003e\n    \u003c/div\u003e\n  );\n};\n\nconst root = ReactDOM.createRoot(\n  document.querySelector(\"#root\")!\n);\nroot.render(\u003cApp /\u003e);\n```\n\n```bash\ndsbuild --watch --serve\n# Visit http://localhost:8000\n```\n\n**[View full example →](examples/react/)**\n\n---\n\n### ⬢ Static site generation (SSG)\n\nGenerate static HTML with React (no client-side JavaScript):\n\n```typescript\n// src/app.tsx\nimport React from \"npm:react@^18.3.0\";\n\nconst App = () =\u003e {\n  return (\n    \u003chtml lang=\"en\"\u003e\n      \u003cbody style={{\n        fontFamily: \"sans-serif\",\n        textAlign: \"center\",\n        background: \"linear-gradient(180deg, #000 0%, #1D1D1D 100%)\",\n        color: \"#fff\"\n      }}\u003e\n        \u003ch1\u003e🪐 sup, universe!\u003c/h1\u003e\n        \u003cp\u003eThis page was statically generated!\u003c/p\u003e\n      \u003c/body\u003e\n    \u003c/html\u003e\n  );\n};\n\nexport default App;\n```\n\n```bash\ndsbuild --watch --serve\n# Generates static HTML in public/\n```\n\n**[View full example →](examples/react-static/)**\n\n---\n\n### ⬢ MDX (Markdown + JSX)\n\nCombine Markdown content with React components:\n\n```jsx\n// src/MyExample.mdx\nimport Typewriter from 'npm:typewriter-effect';\n\n# 🪐 sup universe from MDX\n\n\u003cTypewriter\n  options={{\n    strings: ['This page was rendered with **dsbuild**!'],\n    autoStart: true,\n    loop: true,\n    delay: 33,\n  }}\n/\u003e\n```\n\n```typescript\n// src/app.tsx  \nimport React from \"react\";\nimport ReactDOM from \"react-dom/client\";\nimport MyExample from \"./MyExample.jsx\"; // Compiled from .mdx\n\nconst App = () =\u003e \u003cMyExample /\u003e;\n\nReactDOM.createRoot(document.querySelector(\"#root\")!)\n  .render(\u003cApp /\u003e);\n```\n\n**[View full example →](examples/mdx/)**\n\n---\n\n### ⬢ All examples\n\n| Example | Description | Features |\n|---------|-------------|----------|\n| **[Basic](examples/basic/)** | Simple TypeScript app | Markdown rendering, npm imports |\n| **[CSS](examples/css/)** | CSS file combination | Multiple CSS files, concatenation |\n| **[React](examples/react/)** | Interactive React app | Client-side rendering, state management |\n| **[React Static](examples/react-static/)** | Static site generation | Server-side rendering, static HTML |\n| **[MDX](examples/mdx/)** | Markdown + JSX | React components in Markdown |\n| **[Node](examples/node/)** | Server-side example | Node.js compatibility |\n\n## ⬡ Quick Start\n\nGet up and running in 30 seconds:\n\n```bash\n# 1. Create a new project\nmkdir my-app \u0026\u0026 cd my-app\n\n# 2. Create src/app.ts\nmkdir src\necho 'document.body.innerHTML = \"\u003ch1\u003e🪐 Hello dsbuild!\u003c/h1\u003e\";' \u003e src/app.ts\n\n# 3. Build and serve\ndsbuild --watch --serve\n# Visit http://localhost:8000\n```\n\nOr explore the **[examples](examples/)** directory:\n\n```bash\ngit clone https://github.com/orgsofthq/dsbuild.git\ncd dsbuild/examples/react  # or basic, css, mdx, etc.\ndsbuild --watch --serve\n```\n\n## ⬡ Contributions \u0026 local development\n\nContributions welcome. To set up local development:\n\n```bash\ngit clone https://github.com/orgsofthq/dsbuild.git\ncd dsbuild\ndeno task install:dev\n```\n\nThis replaces your global `dsbuild` installation with a local development copy.\n\n## ⬡ License\n\nMIT license.\n","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forgsofthq%2Fdsbuild","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forgsofthq%2Fdsbuild","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forgsofthq%2Fdsbuild/lists"}