Internal Tool — Cursor + D1 + Railway
Admin panel and CRM for your business
Internal CRUD tool with customer management, search, inline editing, and CSV export. Admin-only access via Clerk organizations.
What's Included
Customer Table
Searchable, sortable customer management
Inline Editing
Click to edit any record directly in the table
Metrics
Key business metrics on the dashboard
CSV Export
Export any dataset to CSV
Admin Only
Access restricted via Clerk organization
Setup Guide
Clone and install
$ git clone https://github.com/gptsters/internal-tool-starter my-tool && cd my-tool && npm install
Create D1 database
Your business data store.
$ npx wrangler d1 create tool-db
Set up Clerk with org
Create a Clerk account and enable Organizations. Only org members can access the tool.
Add to .env.local
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY=
Cursor Prompt
Paste this into Cursor to generate the full codebase
Build an internal admin tool: - Next.js 14, D1, Clerk (org-only access), shadcn/ui Pages: 1. Dashboard: 4 KPI cards, recent activity feed 2. Customers: data table with search, sort, filter, pagination 3. Customer detail: full profile with edit capability 4. Settings: org management, user roles Features: inline editing, CSV export, bulk actions, audit log. Restrict access to Clerk organization members only.
Tools You'll Need
Based on this starter's stack
Some links are affiliate links.
Common Issues
Related Starters
Frequently Asked Questions
~30 minutes. The setup guide walks you through every step with copy-paste commands. No guesswork.
Free to start. Railway's free tier includes 500 hours/month.
Yes. The starter kit gives you a working foundation. Use the included Cursor prompt to add features specific to your product.
Check our integration guides at /integrations and prompt library at /prompts for step-by-step instructions on adding any feature.