{"id":17377379,"url":"https://github.com/pradel/cartable","last_synced_at":"2026-02-09T05:07:13.112Z","repository":{"id":39881758,"uuid":"420165235","full_name":"pradel/cartable","owner":"pradel","description":"A fast, zero-config toolkit to develop, build and test node.js applications.","archived":false,"fork":false,"pushed_at":"2024-05-15T18:15:22.000Z","size":287,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-21T17:30:21.436Z","etag":null,"topics":["nodejs","zero-config-bundler"],"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/pradel.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}},"created_at":"2021-10-22T16:15:57.000Z","updated_at":"2024-05-14T22:17:18.000Z","dependencies_parsed_at":"2024-06-11T20:38:33.198Z","dependency_job_id":"83521a07-d075-4f02-94d2-50d99589b7c2","html_url":"https://github.com/pradel/cartable","commit_stats":{"total_commits":12,"total_committers":2,"mean_commits":6.0,"dds":"0.33333333333333337","last_synced_commit":"b56fd9d03da2c2a9f1465e1a7f27d80d8404720b"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/pradel/cartable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pradel%2Fcartable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pradel%2Fcartable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pradel%2Fcartable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pradel%2Fcartable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pradel","download_url":"https://codeload.github.com/pradel/cartable/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pradel%2Fcartable/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269447936,"owners_count":24418760,"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","status":"online","status_checked_at":"2025-08-08T02:00:09.200Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["nodejs","zero-config-bundler"],"created_at":"2024-10-16T05:05:45.724Z","updated_at":"2026-02-09T05:07:08.087Z","avatar_url":"https://github.com/pradel.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n\u003ch1\u003eCartable\u003c/h1\u003e\n\u003cp\u003eA fast, zero-config toolkit to develop node.js applications.\u003c/p\u003e\n\n[![npm version](https://img.shields.io/npm/v/@cartable/core.svg)](https://www.npmjs.com/package/@cartable/core)\n\n\u003c/div\u003e\n\nCartable aims to provide you the best DX to develop your node.js applications. It's focused on server-only applications. Heavily inspired by [backpack](https://github.com/jaredpalmer/backpack), the idea is a zero-config tool giving you all the tools you need. You can use it for new apps as well as existing ones.\n\n## Features\n\n- [TypeScript](https://github.com/microsoft/TypeScript) support out of the box\n- Fast, using [rspack](https://www.rspack.dev/) and [swc](https://github.com/swc-project/swc)\n- Great DX, readable error messages, live reloading etc\n- Fast tests with [jest](https://github.com/facebook/jest) and [swc](https://github.com/swc-project/swc)\n- Zero-config, one dependency\n- Easily customizable\n\n## Documentation\n\n- [Installation](#installation)\n- [Usage](#usage)\n  - [Using in development](#using-in-development)\n  - [Building for Production](#building-for-production)\n  - [Testing your application](#testing-your-application)\n- [Configuration](#configuration)\n  - [Customizing rspack config](#customizing-rspack-config)\n  - [Customizing swc config](#customizing-swc-config)\n- [Commands](#commands)\n  - [`cartable dev`](#cartable-dev)\n  - [`cartable build`](#cartable-build)\n  - [`cartable test`](#cartable-test)\n- [Inspiration](#inspiration)\n- [License](#license)\n\n## Installation\n\nInstall the package:\n\n```sh\n# with npm\nnpm install --save-dev @cartable/core\n\n# with yarn\nyarn add --dev @cartable/core\n\n# with pnpm\npnpm add --save-dev @cartable/core\n```\n\nAdd the cartable scripts to your package.json like this:\n\n```json\n{\n  \"scripts\": {\n    \"dev\": \"cartable\",\n    \"build\": \"cartable build\",\n    \"test\": \"cartable test\"\n  }\n}\n```\n\n## Usage\n\n### Using in development\n\nRun the dev command that will reload your server when you edit:\n\n```\nnpm run dev\n```\n\nSuccessful builds will show a console like this. _Note: screenshot taken from running the [basic typescript example](https://github.com/pradel/cartable/tree/master/examples/basic-typescript)._\n\n![Dev mode](assets/dev-mode.png)\n\n### Building for Production\n\nRun the build command and start your app:\n\n```bash\nnpm run build\nnode ./dist/index.js\n```\n\n### Testing your application\n\nRuns your tests using Jest:\n\n```bash\nnpm run test\n```\n\n## Configuration\n\n### Customizing rspack config\n\nTo extend rspack, you can define a function that extends its config via `cartable.config.js`.\n\n```js\n// cartable.config.js\nmodule.exports = {\n  rspack: (config) =\u003e {\n    // Perform customizations to config\n    // Important: return the modified config\n    return config;\n  },\n};\n```\n\n### Customizing swc config\n\nTo extend our usage of `swc`, you can define a `.swcrc` file at the root of your app. This file is optional.\n\nIf found, cartable will consider it to be the _source of truth_.\n\nHere's an example `.swcrc` file:\n\n```json\n{\n  \"jsc\": {\n    \"target\": \"es2020\",\n    \"parser\": {\n      \"syntax\": \"typescript\"\n    }\n  }\n}\n```\n\n## Commands\n\n### `cartable dev`\n\nRuns cartable in development mode.\nYour code will reload if you make edits.\n\n### `cartable build`\n\nBuilds the app for production to the `dist` folder.\nIt correctly bundles your production mode and optimizes the build for the best performance.\n\nYou can run your production application with the following command:\n\n```sh\nnode ./dist/index.js\n```\n\n### `cartable test`\n\nTest the app with jest. For better performance, compiling the JavaScript / TypeScript code is done via swc.\n\nYou can pass any option to jest, for example to generate coverage:\n\n```sh\ncartable test --coverage\n```\n\n## Inspiration\n\n- [jaredpalmer/backpack](https://github.com/jaredpalmer/backpack) - First version of Cartable is a modified version of backpack.\n- [zeit/next.js](https://github.com/zeit/next.js)\n- [jaredpalmer/tsdx](https://github.com/jaredpalmer/tsdx)\n\n## License\n\nMIT License © [Léo Pradel](https://www.leopradel.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpradel%2Fcartable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpradel%2Fcartable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpradel%2Fcartable/lists"}