A lightweight NestJS starter template powered by the Oxidation Compiler. It features a modern, high-performance toolchain built around Rust. Everything comes preconfigured out of the box, so you can start building right away.
Stack:
- Oxc -- Transpilation (
oxc-transform), type-aware linting (oxlint), and quick formatting (oxfmt). - Vitest -- A fast current-generation testing framework utilizing the Oxc transformer.
Note
The template uses SWC in the build pipeline for now, as the Nest CLI does not provide a native Oxc builder currently.
- Node -- Use version from the .node-version file (or .nvmrc for nvm)
- pnpm -- Use version from the
packageManagerproperty in package.json
Use the Oxc extension in VS Code (or forks) to enable linting and format-on-save in your IDE (can be customized in settings.json). You may need to point the extension to your Node binary when using a version manager (eg. fnm, nvm) like so:
pnpm install
pnpm run start:devThe app listens on port 3000 by default (override via the PORT env variable).
| Script | Description |
|---|---|
start |
Start the Nest server |
test |
Run all unit tests |
test:e2e |
Run all E2E tests |
lint |
Perform linting with auto-fix |
fmt |
Format the codebase |
src/ Application code
test/ Unit (*.test.ts) and e2e (*.test.e2e.ts) tests
@src->./src@test->./test
See CONTRIBUTING.md - Path aliases for how to edit aliases.
Auto test file generation is disabled in nest-cli.json. This is a deliberate choice to not litter the src dir with test files. You should add tests manually in the test/ folder while mimicking the src folder structure.
See CONTRIBUTING.md - Tests for general best practices.
Clone this repo or use GitHub's Use this template feature as a starting point for your next project.
Routine dependency updates are batched weekly with a 7-day delay, so newly published versions have time to surface issues before they land here. Security fixes are not delayed. See CONTRIBUTING.md - Dependency updates for how this works with pnpm.
See CONTRIBUTING.md for development setup and general guidelines.
MIT -- see LICENSE.