Skip to content

c0x12c/devprism

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DevPrism — Dev tools that illuminate your data

CI MIT License 20 Tools 337+ Tests Platforms

Deploy with Vercel   Open in StackBlitz

Quick StartAll ToolsAI FeaturesPrivacyCLIContributing


Quick Start

One-click (no install)

Try online Open in StackBlitz
Deploy your own Deploy with Vercel

Web (local dev)

cd web
pnpm install
pnpm dev          # http://localhost:3000

Docker

docker pull ghcr.io/c0x12c/devprism:latest
docker run -p 3000:3000 ghcr.io/c0x12c/devprism:latest
Desktop App / CLI

Desktop

Platform Download
macOS DevPrism.dmg (Universal: Intel + Apple Silicon)
Windows DevPrism-Setup.msi (Windows 10+, 64-bit)
Linux DevPrism.AppImage (also .deb)

CLI

# macOS (Apple Silicon)
curl -Lo devprism https://github.com/c0x12c/devprism/releases/latest/download/devprism-darwin-arm64
chmod +x devprism && sudo mv devprism /usr/local/bin/

# macOS (Intel)
curl -Lo devprism https://github.com/c0x12c/devprism/releases/latest/download/devprism-darwin-amd64
chmod +x devprism && sudo mv devprism /usr/local/bin/

# Linux (x86_64)
curl -Lo devprism https://github.com/c0x12c/devprism/releases/latest/download/devprism-linux-amd64
chmod +x devprism && sudo mv devprism /usr/local/bin/

Stop Pasting Secrets Into Random Websites

Every time you paste a JWT, a SQL query, or an .env file into an online tool, you're trusting a stranger with your data. DevPrism processes everything locally — in your browser or on your machine. Nothing is ever sent to DevPrism servers.

Your JWTs contain user IDs, roles, and expiry. Your SQL has table names and business logic. Your env files have API keys. These don't belong on someone else's server.

DevPrism is 100% free, open-source (MIT), and private by design — built by Spartan. No account required. No telemetry. No data collection. Ever.


Why DevPrism?

Most dev tool collections are either paid and locked to one OS or open-source but stagnant. DevPrism is different:

DevPrism DevUtils IT-Tools
Price Free $29-39 Free
License MIT Closed GPL
Platforms Web + Desktop + CLI macOS only Web only
AI explanations OpenAI, Claude, Ollama
Clipboard detection Auto-detect & route Auto-detect
Privacy 100% local processing Local Local
Embeddable MIT = yes No GPL = restricted
Offline desktop Tauri (3 OS) Native macOS
CLI Go binary (5 OS)

DevPrism is the only toolkit that combines AI intelligence, cross-platform reach, and a permissive license.


AI Superpowers

Every tool works 100% without AI. But with AI configured, tools become intelligent:

  • JWT Debugger → AI explains each claim, flags security risks, checks expiry
  • Regex Tester → AI explains what your pattern matches in plain English
  • SQL Formatter → AI reviews your query for performance issues
  • Hash Generator → Describe your use case, AI recommends the right algorithm
  • Cron Parser → AI warns about DST edge cases and overlapping schedules
  • JSON Tools → AI explains structure, suggests schema improvements

Bring your own key. Supports OpenAI, Anthropic Claude, and Ollama (fully local, zero cloud).

API keys are stored in your browser's localStorage only. On desktop, keys never leave your machine.


Tools

# Tool What it does AI
1 JWT Debugger Decode headers, payload, signature. Spot expired tokens. Explain, Audit
2 Regex Tester Live matching with highlight and group capture Explain
3 JSON Tools Format, minify, validate, JSONPath query, diff Explain
4 SQL Formatter Dialect-aware formatting (PostgreSQL, MySQL, SQLite+) Review
5 Cron Parser Human-readable explanation + next N executions Explain
6 Base64 Encode/decode with auto-detection and UTF-8 Detect type
7 URL Parser Break down into protocol, host, path, query, fragment Explain
8 Unix Timestamp Convert between timestamps and human dates Detect
9 Hash Generator MD5, SHA-1, SHA-256, SHA-512 via Web Crypto Recommend
10 UUID Generator UUID v4, ULID, NanoID with bulk generation Explain
11 String Case camelCase, snake_case, kebab-case, PascalCase+
12 YAML/JSON Convert between YAML and JSON with validation
13 Text Diff Inline or side-by-side diff view
14 HTTP Explainer Decode status codes, methods, headers Explain
15 JSON to TS Generate TypeScript interfaces from JSON
16 Color Tools HEX, RGB, HSL, OKLCH converter + WCAG contrast
17 HTML/JSX Convert between HTML and React/JSX syntax
18 cURL to Code Convert cURL to fetch, axios, Python, Go, etc.
19 Env Manager Parse, sort, diff, and merge .env files
20 Cert Decoder Decode X.509 certificates and inspect details

Smart Clipboard Detection

Paste anything — DevPrism automatically detects the data type and routes you to the right tool. Copy a JWT? DevPrism opens JWT Debugger. Paste JSON? You're in JSON Tools. No clicking, no searching.


CLI Usage

DevPrism CLI Demo

JWT Decode
$ prism jwt decode eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c

=== JWT Decoded ===

--- Header ---
{
  "alg": "HS256",
  "typ": "JWT"
}

--- Payload ---
{
  "sub": "1234567890",
  "name": "John Doe",
  "iat": 1516239022
}

Signature: SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
Issued:    2018-01-18T01:30:22Z
Hash Generator
$ prism hash 'hello world' --algorithm sha256
b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9 (sha256)

$ prism hash 'hello world' --algorithm md5
5eb63bbbe01eeed093cb22bb8f5acdc3 (md5)
URL Parser
$ prism url parse 'https://api.example.com:8080/v1/users?role=admin&active=true#docs'

=== URL Parsed ===

Scheme:   https
Host:     api.example.com
Port:     8080
Path:     /v1/users
Query:    role=admin&active=true
Params:
  active = true
  role = admin
Fragment: docs
Cron Parser
$ prism cron parse '*/15 * * * 1-5' --count 5

=== Cron Expression ===

Expression:  */15 * * * 1-5
Description: Every 15 minutes, Monday through Friday

Next fire times:
  1. 2026-04-14T00:00:00Z
  2. 2026-04-14T00:15:00Z
  3. 2026-04-14T00:30:00Z
  4. 2026-04-14T00:45:00Z
  5. 2026-04-14T01:00:00Z
SQL Formatter
$ echo 'select u.id,u.name,count(o.id) as order_count from users u left join orders o on u.id=o.user_id where u.active=true group by u.id,u.name order by order_count desc' | prism sql format

SELECT
  u.id,
  u.name,
  COUNT(o.id) AS order_count
FROM
  users u
LEFT JOIN
  orders o ON u.id = o.user_id
WHERE
  u.active = TRUE
GROUP BY
  u.id,
  u.name
ORDER BY
  order_count DESC
More tools
prism base64 encode "Hello, World!"           # Base64 encode
prism base64 decode "SGVsbG8sIFdvcmxkIQ=="    # Base64 decode
prism json format '{"k":"v"}'                 # Pretty-print JSON
prism json validate '{"valid": true}'         # Validate JSON
prism uuid --count 5                          # Generate 5 UUIDs
prism timestamp now                           # Current timestamp
prism regex test '[0-9]+' 'order 42'          # Test regex

# Pipe from stdin
curl -s https://api.github.com/zen | prism base64 encode
pbpaste | prism jwt decode

# JSON output for scripting
prism hash 'secret' --json
prism url parse 'https://example.com' --json

Tech Stack

Layer Choice
Framework Next.js 16 (App Router, Turbopack)
Language TypeScript strict + Go 1.22
UI React 19 + Tailwind CSS 4 + shadcn/ui
Validation Zod 4
AI Vercel AI SDK (OpenAI, Anthropic, Ollama)
Desktop Tauri v2 (Rust)
Testing Vitest (248 unit) + Playwright (9 E2E) + Go (89)
License MIT

Privacy

  • All processing happens locally — in your browser or on your machine
  • API keys stored in localStorage only — never sent to DevPrism servers
  • AI calls go directly from your browser to your chosen provider
  • Desktop app: 100% local — no proxy, no CORS relay
  • No telemetry. No tracking. No data collection. Period.

Architecture

Clipboard paste
       |
   detect() ──→ route to best tool
       |
   transform()  ← pure function, no network, no side effects
       |
   AI explain() ← optional, user's own API key
       |
   Display result + copy to clipboard
  • Pure tool logiclib/tools/*.ts are pure functions. Zero side effects. 100% testable.
  • AI is a layer, not a dependency — every tool works without AI configured.
  • Clipboard detection — each tool scores clipboard content via detect() for smart routing.
  • PWA installable — add to home screen for native-like experience.
  • Tauri desktop — native HTTP (no CORS), platform-aware AI, code signing.

Project Structure

prism/
├── web/                        # Next.js web app
│   ├── app/(tools)/            # One route per tool
│   ├── lib/tools/              # Pure tool logic (no network, no AI)
│   ├── lib/ai/                 # AI providers + streaming
│   ├── components/             # UI components (shadcn/ui + custom)
│   └── src-tauri/              # Tauri native shell (Rust)
├── cli/                        # Go CLI (Cobra)
│   ├── cmd/prism/              # CLI commands
│   └── internal/tools/         # Pure Go tool logic
└── docs/                       # Architecture & specs

Development

# Web
cd web
pnpm dev              # Dev server
pnpm build            # Production build (catches TS errors)
pnpm test             # Vitest (248 tests)
pnpm lint             # ESLint

# CLI
cd cli
go test ./...         # Go tests (89 tests)
go build -o devprism ./cmd/prism

Contributing

We welcome contributions! Here's how:

  1. Fork the repo
  2. Create a feature branch (git checkout -b feat/my-tool)
  3. Write tests first, then implementation
  4. Ensure pnpm build && pnpm test && pnpm lint pass
  5. Submit a PR

Adding a new tool? Each tool needs:

  • lib/tools/[tool-id].ts — pure transform logic
  • lib/tools/__tests__/[tool-id].test.ts — minimum 3 unit tests
  • app/(tools)/[tool-id]/page.tsx — UI page
  • lib/ai/prompts/[tool-id].ts — AI prompt (optional)
  • detect() function for clipboard routing

See docs/tool-interface.md for the full spec.


License

MIT — use it, fork it, embed it, sell it. No restrictions.

Built with care by Spartan.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors