惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Engineering at Meta
Engineering at Meta
博客园_首页
J
Java Code Geeks
Jina AI
Jina AI
B
Blog RSS Feed
量子位
有赞技术团队
有赞技术团队
M
MIT News - Artificial intelligence
L
LangChain Blog
Microsoft Security Blog
Microsoft Security Blog
小众软件
小众软件
博客园 - 聂微东
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 三生石上(FineUI控件)
Last Week in AI
Last Week in AI
MongoDB | Blog
MongoDB | Blog
I
InfoQ
罗磊的独立博客
H
Hackread – Cybersecurity News, Data Breaches, AI and More
爱范儿
爱范儿
Y
Y Combinator Blog
Vercel News
Vercel News
雷峰网
雷峰网

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
I Built a Full Apex IDE Inside a Chrome Extension (No Jav...
teja adusumilli · 2026-06-12 · via DEV Community
Cover image for I Built a Full Apex IDE Inside a Chrome Extension (No Java, No Local Setup)

teja adusumilli

The Problem with the Existing Apex Workflow

If you've done any meaningful Apex development, you know the drill:

  1. Open Salesforce Developer Console (slow, clunky, no PMD)
  2. Switch to VS Code + Salesforce Extension Pack (heavy, requires local setup)
  3. Run PMD separately with a Java runtime (extra install, extra config)
  4. Run tests via SFDX CLI (terminal required)
  5. Repeat across orgs

Every step is friction. And if you're working across multiple orgs or on a machine that isn't fully set up, that friction compounds fast.

I wanted something simpler: open Chrome, open my Salesforce org, start coding.


What I Built

ApexForge is a Chrome extension that brings a full Apex development environment directly into your browser. No IDE. No CLI. No Java.

Here's what it does:

📂 Apex File Explorer

Browse every Apex Class and Trigger in your connected org. Search, sort, open files in the editor, or jump to the Salesforce record page — all without leaving the extension.

✏️ Code Editor (VS Code-like)

A fully featured editor inside the popup:

  • Apex syntax highlighting (keywords, SOQL, methods)
  • Find (Ctrl+F) and Find & Replace (Ctrl+H)
  • Go to Line (Ctrl+G)
  • Minimap, Split View, Word Wrap
  • Format Document
  • Save & Deploy directly to your org
  • Refresh from org at any time

🔍 PMD Analysis — In the Browser, No Java Required

This was the hardest part to build. PMD normally requires a Java runtime and a JAR file. I ported 12 PMD rules across 6 categories to run entirely in JavaScript inside the extension:

Category Rules
Performance AvoidSoqlInLoops, AvoidDmlInLoops
Error Prone AvoidHardcodingId, EmptyCatchBlock, NullAssignment
Best Practices ApexUnitTestClassShouldHaveAsserts, AvoidGlobalModifier
Security ApexSharingViolations, ApexCRUDViolation
Code Size ExcessiveClassLength, TooManyFields
Design AvoidDeeplyNestedIfStmts

Run analysis on a single file or scan your entire org in one pass. Click any violation to jump to that exact line in the editor.

▶ Apex Test Runner

Execute unit tests without opening a terminal:

  • Async execution via runTestsAsynchronous with a live progress bar
  • Sync execution via runTestsSynchronous for quick feedback
  • Auto-detects test classes by naming convention
  • Pass / Fail / Skip badges with stack traces
  • Code coverage visualisation — per test class and aggregate

💡 Apex Advisor

Real-time analysis as you type. Detects:

  • Bulkification issues
  • Missing sharing declarations
  • SOQL/SOSL/DML patterns
  • Method signature problems

Comes with auto-fix suggestions and code snippet templates.


Security & Privacy

I care about this a lot, especially since the extension touches Salesforce session data:

  • Session IDs stored in chrome.storage.local — encrypted by the OS keychain
  • All API calls use HTTPS — no plaintext
  • No data sent to any third-party server. Ever.
  • No analytics. No telemetry. No backend services.
  • Network access scoped only to *.salesforce.com and *.force.com
  • The editor runs in a sandboxed iframe
  • Your Apex code never leaves your browser except to your own Salesforce org

How It Works

  1. Install ApexForge and pin it to your Chrome toolbar
  2. Open any Salesforce app from the App Launcher
  3. Click the ApexForge icon — it auto-detects your org from the active tab
  4. Browse, edit, analyse, and test your Apex

The only requirement is a valid Salesforce Session ID (obtainable from Developer Console, DevTools, or SFDX CLI) and API access enabled on your org.


Why I'm Sharing This

I built this as a personal tool and kept making it better. At some point it felt like something the Salesforce developer community could genuinely use — especially for quick edits, code reviews on the go, or orgs where you can't install a full local dev environment.

It's free and open source.

🔗 Install ApexForge on the Chrome Web Store

🌐 apexforge.free.nf


If you work with Salesforce Apex regularly, give it a try. I'd love feedback — what rules are missing from the PMD analyser, what editor features you'd want, anything.

Drop a comment or reach out directly. Happy to discuss the technical implementation too if anyone's curious how the browser-native PMD port works.