AI-powered design token analysis and auditing tool. Upload your design tokens JSON file and get instant analysis with quality scores, statistics, and actionable recommendations.
- Token Upload: Drag & drop JSON files or paste token data
- AI Analysis: Powered by Qwen AI for intelligent token analysis
- Quality Scoring: Get a score from 0-100 based on token quality
- Statistics: View detailed statistics including duplicates, naming issues, and code readiness
- Issue Categorization: Issues ranked by severity (critical, warning, info, good)
- Waitlist Integration: Early access signup form
- Framework: Next.js 16 with React 19 and TypeScript
- Styling: Tailwind CSS
- API: Qwen AI for token analysis
- Deployment Ready: Built with production best practices
- Node.js 18+
- npm or yarn
- Qwen API key (get from DashScope)
- Clone the repository:
git clone <repository-url>
cd Design\ Token\ Auditor- Install dependencies:
npm install- Set up environment variables:
cp .env.example .env.local
# Edit .env.local and add your Qwen API key- Run the development server:
npm run devOpen http://localhost:3000 in your browser.
-
Upload Tokens:
- Drag and drop a JSON file, or
- Paste your token JSON directly
-
Analyze: Click "Analyze Tokens" to get AI-powered analysis
-
Review Results:
- Check your quality score
- Review statistics
- Address issues by severity
-
Join Waitlist: Enter your email for early access notifications
{
"color": {
"primary": {
"value": "#7C6AFF"
},
"secondary": {
"value": "#01B4E4"
}
},
"spacing": {
"sm": {
"value": "4px"
},
"md": {
"value": "8px"
},
"lg": {
"value": "16px"
}
}
}npm run dev- Start development servernpm run build- Build for productionnpm start- Start production servernpm run lint- Run ESLint
Analyzes design tokens using Qwen AI.
Request:
{
"tokens": "{...json tokens...}"
}Response:
{
"score": 85,
"statistics": {
"totalTokens": 12,
"duplicates": 1,
"namingIssues": 0,
"codeReadiness": 90
},
"issues": [...]
}Adds email to early access waitlist.
Request:
{
"email": "user@example.com"
}- Sign up at DashScope
- Create an API key
- Add to
.env.local:
QWEN_API_KEY=your_key_here
vercel deployAdd environment variables in Vercel dashboard.
docker build -t token-auditor .
docker run -p 3000:3000 token-auditorThe project is built with Next.js and works on any Node.js hosting platform (Heroku, AWS, Azure, etc.).
src/
├── app/
│ ├── api/
│ │ ├── analyze/ # Token analysis endpoint
│ │ └── waitlist/ # Waitlist signup endpoint
│ ├── layout.tsx # Root layout
│ ├── page.tsx # Home page
│ └── globals.css # Global styles
└── components/
├── TokenUpload.tsx # Main upload component
├── TokenAnalyzer.tsx # Upload interface
├── AnalysisResults.tsx # Results display
└── EarlyAccessCTA.tsx # CTA form
- The app includes mock analysis as a fallback when Qwen API is not configured
- Waitlist data is stored in-memory (use database for production)
- Frontend validation ensures only valid JSON is sent to the API
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
MIT
For issues or questions, please create a GitHub issue.