A user table with search, pagination, and actions to add, edit and delete users.
npx virastack add usersThis preview fetches live data from DummyJSON; users you add, edit or delete are not saved.
The command installs only the module; the page is your call. Your choices below prepare the prompt and the page code.
Framework
i18n
Add the users module to my ViraStack Start project.
1. Run `npx virastack add users` in the project root. It installs only the `src/features/users` folder and its packages, and creates no page. If you get a conflict error, delete nothing and tell me.
2. Confirm from `package.json` and the folder structure that the project uses Next.js. If it does not, stop and ask me.
3. Create `src/app/users/page.tsx` with the code below. If the file exists, do not overwrite it; add `UsersDirectory` to the existing page.
```tsx
import { Suspense } from "react"
import { UsersDirectory } from "@/features/users/components/UsersDirectory"
import { UsersDirectorySkeleton } from "@/features/users/components/UsersDirectorySkeleton"
export default function Page() {
return (
<main className="mx-auto w-full max-w-4xl flex-1 px-4 py-6 sm:px-6">
<Suspense fallback={<UsersDirectorySkeleton />}>
<UsersDirectory />
</Suspense>
</main>
)
}
```
4. If I gave you my API address, set it in `NEXT_PUBLIC_API_URL` on Next.js or `VITE_API_URL` on TanStack Start. If the response shape differs, adapt what needs changing inside `src/features/users`.
5. Run the `typecheck`, `test` and `lint:ci` scripts with the project's package manager and report the result.validateSearch on TanStack Start. Search is debounced.Based on your choices above, npx virastack add users adds these files to your project.
No page is created; add the module to your own page with the steps above.
.env.local, set NEXT_PUBLIC_API_URL on Next.js or VITE_API_URL on TanStack Start to your API's address. If your responses differ, adapt these: api, schemas, constants, to-user-body, UsersTable, UserForm and the tests.npx virastack remove users.