HivePaaS
An open-source, self-hosted PaaS on Docker Swarm. Deploy apps, databases and functions from one VPS to a whole cluster, with SSL, backups and autoscaling built in.
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
Developer toolsTypeScript · HTMLGitHub @GouravLuinorOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
Token counter and LLM cost calculator for 94 models. Runs entirely in your browser. A Nor AI tool.
Taken from the repository README
Loading the full README.
Read the full 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 |