Count tokens and price your prompt across 94 models at live OpenRouter rates. Exact counts for GPT (o200k_base, cl100k_base), clearly marked estimates for Claude, Gemini, Llama and others. Free, no si
翻譯準備中
開發工具TypeScript · HTMLGitHub @GouravLuinor上線中營運者未確認
試用過了嗎? 點一下就好,不需要登入。
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證Token counter and LLM cost calculator for 94 models. Runs entirely in your browser. A Nor AI tool.
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗🔗 Live: tokens.norai.tech · One of the free developer tools from Nor AI Technologies · Built by Gourav Kumar Singh
Tier-0 Developer-Grade BPE Tokenizer, Prompt Optimizer & Multi-Model Cost Engine
100% Client-Side Local Compute • Zero Cloud Telemetry • Obsidian Dark Studio Aesthetic
TokenCraft (t0_tokenizer) is a production-ready, ultra-low-latency developer workspace designed for AI engineers, prompt architects, and LLM researchers. It provides instant Byte-Pair Encoding (BPE) tokenization, granular subword inspection, context window safety guarding, and real-time multi-model cost analysis with prompt caching economics.
Engineered with an obsidian-dark, staff-level developer aesthetic inspired by Linear and Raycast, TokenCraft offloads all heavy tokenization tasks to dedicated Web Workers, ensuring a buttery-smooth 60+ FPS user experience even with massive prompts and RAG contexts.
o200k_base (GPT-4o, o1, o3-mini), cl100k_base (GPT-4, GPT-3.5-Turbo), p50k_base, and r50k_base.//, /* */, #, <!-- -->)⌘ K / Ctrl + K global command palette.gpt-tokenizerv18.18.0 or higher (Node v20+ or v22+ recommended)npm, pnpm, or yarnClone the repository:
git clone [email protected]:GouravLuinor/t0_tokenizer.git
cd t0_tokenizer
Install dependencies:
npm install
Start the local development server:
npm run dev
Open in browser: Navigate to http://localhost:3000 (or the port indicated in terminal).
# Build the optimized production bundle
npm run build
# Run the production server
npm run start
A production-grade multi-stage Dockerfile and docker-compose.yml with Caddy reverse proxy are included:
# Start TokenCraft with Docker Compose
docker compose up -d --build
# View container logs
docker compose logs -f
To run using the automated zero-downtime deployment script:
./deploy.sh
├── app/
│ ├── globals.css # Obsidian dark design tokens & custom utilities
│ ├── layout.tsx # Root layout with fonts, SEO & meta config
│ ├── page.tsx # Root landing / tool mount
│ ├── robots.ts / sitemap.ts # Dynamic SEO indexing metadata
│ └── tools/
│ └── tokencraft/
│ ├── page.tsx # Main TokenCraft workspace page
│ ├── _components/
│ │ ├── CommandPalette.tsx # Cmd+K Quick action palette
│ │ ├── ContextSafetyGauge.tsx# SVG arc gauge for model context utilization
│ │ ├── MultiModelCostMatrix.tsx # Live multi-model pricing & cache simulator
│ │ ├── PromptDiffDialog.tsx # Side-by-side prompt minifier diff view
│ │ ├── RawEditorPane.tsx # Code/prompt editor with line numbers & drag-drop
│ │ ├── TokenInspectorPane.tsx# Chips / IDs / Heatmap visualizer & search
│ │ └── TopToolbar.tsx # Model selector, presets, minifier, actions
│ ├── _hooks/
│ │ └── useTokenizer.ts # Web Worker communication & state bridge
│ ├── _lib/
│ │ ├── priceService.ts # Model pricing catalog & cost calculations
│ │ └── promptMinifier.ts # Minification heuristics & diff algorithms
│ ├── _store/
│ │ └── useTokenCraftStore.ts # Centralized Zustand workspace state
│ └── _workers/
│ └── tokenizer.worker.ts # Dedicated BPE tokenization Web Worker
├── components/
│ └── ui/ # Studio-grade primitive UI components
│ ├── animated-gradient-text.tsx
│ ├── border-beam.tsx
│ ├── button.tsx, card.tsx, dialog.tsx, etc.
│ └── spotlight-card.tsx
├── public/ # Static assets and favicons
├── Caddyfile # Caddy HTTP/3 & TLS configuration
├── Dockerfile # Multi-stage standalone Next.js container build
├── docker-compose.yml # Container composition orchestrator
├── tutorial.md # Comprehensive end-user tutorial & workflows
└── tailwind.config.ts # Extended theme, animations & surface colors
| Shortcut | Action |
|---|---|
| ⌘ K / Ctrl + K | Open Command Palette |
| Esc | Close Modals / Deselect Token |
| ⌘ Enter | Trigger Prompt Minification |