npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

sf-schema-builder

v1.0.9

Published

A world-class web UI for creating and managing Salesforce custom objects, fields, and schemas — directly via the SOAP Metadata API and REST API.

Downloads

267

Readme

SF Schema Builder

A world-class web UI for creating and managing Salesforce custom objects, fields, and schemas — directly via the SOAP Metadata API and REST API.


Screenshots

SF Schema Bulder - 1

SF Schema Bulder - 2

SF Schema Bulder - 3

SF Schema Bulder - 4

SF Schema Bulder - 5

SF Schema Bulder - 6

SF Schema Bulder - 7

SF Schema Bulder - 8

SF Schema Bulder - 9

SF Schema Bulder - 10

SF Schema Bulder - 11

SF Schema Bulder - 12

Installation

npm install -g sf-schema-builder

Running

sf-schema-builder start -p 7344

Authentication

Three methods available from the login screen:

| Method | Notes | |--------|-------| | ⚡ SF CLI Orgs | Auto-reads all authenticated orgs from ~/.sfdx / ~/.sf. Supports sf and sfdx CLIs. | | Session ID | Paste an Instance URL + Session ID (e.g. from SF REST Client or browser dev tools). | | Username + Password | Password + security token appended. Logs into login.salesforce.com. |


Features

📦 Object & Field Browser

  • Custom tab — all __c objects from your org via listMetadata
  • Standard tab — all standard objects via describeGlobal, grouped by category (Core CRM, Sales, Service, Marketing, Platform, Community, Analytics)
  • Click any object to see all fields with types, labels, and flags (REQ / EXT / UNQ)
  • Live field search — filter by label, API name, or type. Separate type filter dropdown
  • ↻ Refresh button busts the describe cache and reloads from Salesforce
  • Resizable sidebar — drag the handle between sidebar and main panel

➕ Create Custom Objects

  1. Enter label, plural label, API name (auto-filled)
  2. Live "already exists?" check via listMetadata
  3. Configure name field (Text or AutoNumber)
  4. Set sharing model (ReadWrite / Read / Private / Controlled by Parent)

⚡ Add Fields

Supports all 15 field types with type-specific options:

| Type | Extra Options | |------|--------------| | Text | Length | | LongTextArea | Length + Visible Lines | | Number / Currency / Percent | Precision + Scale | | Lookup | Related Object, Delete Constraint | | MasterDetail | Related Object | | Picklist | Values (one per line) | | Date, DateTime, Email, Phone, URL, Checkbox | — |

Each field can be marked Required, External ID, and/or Unique.

FLS (Field-Level Security) — check "Set FLS" to configure profile visibility after field creation. Features:

  • Loads all profiles from your org
  • Bulk actions: All Visible, None, Read-Only All
  • Search/filter profiles
  • System Administrator pre-checked

⬡ Junction Objects

Creates a many-to-many relationship object in one click:

  1. Junction object (AutoNumber name, Controlled by Parent)
  2. MasterDetail field → Parent 1
  3. MasterDetail field → Parent 2

🗺 Schema Diagram

  • Curated canvas — add only the objects you want to see
  • Objects show real fields (fetched via describeSObject)
  • Lookup relationships shown as dashed purple curved arrows
  • MasterDetail relationships shown as solid red arrows
  • Arrows start from the exact field row and point to the target node header
  • Hover +N more to see all hidden fields in a tooltip
  • Drag nodes to reposition — arrows redraw live
  • ⬇ SVG — theme-aware vector export
  • ⬇ PNG — 2× retina raster export

⚡ SOQL Query Editor

Powered by Monaco Editor (same engine as VS Code):

SELECT
    Id,
    Name,
    Account.Name,   -- relationship traversal
    Owner.Email
FROM Contact
WHERE Account.Type = 'Customer'
ORDER BY Name ASC
LIMIT 50

Autocomplete (Ctrl+Space):

  • After SELECT / WHERE / ORDER BY — field names for the selected object
  • After FROM — all object names (custom + standard)
  • After Account. — fields on the related Account object (fetches on demand)
  • Keywords and aggregate functions at any position

Editor features:

  • SOQL syntax highlighting — keywords (blue), functions (yellow), fields (light blue), __c suffix (purple), strings (orange), dates (teal), comments (green)
  • Ctrl+Enter / F5 to run
  • ⌥ Format to auto-format
  • Drag splitter to resize editor vs results pane
  • Double-click splitter to reset height

Results table:

  • Sortable columns (click header, ↑↓ indicator)
  • Live search with match highlighting
  • Pagination (25 / 50 / 100 / All per page)
  • Relationship fields shown as Account.Name columns
  • Color-coded cells: cyan (IDs), green/red (booleans), orange (numbers), purple (relationship fields)
  • ⬇ CSV export of filtered results

Query History (🕐):

  • Last 50 queries, deduplicated
  • Shows time, row count, elapsed ms
  • Click to reload any query
  • Persisted to localStorage

✦ AI Sidekick (--enable-ai)

sf-schema-builder  start --enable-ai

Click ✦ AI in the topbar to open the slide-in panel.

Supported providers:

| Provider | Setup | |----------|-------| | 🦙 Ollama | Local — click ↻ Fetch to load installed models | | 🔵 Claude | sk-ant-... API key | | 🤖 OpenAI | sk-... API key | | ✕ xAI Grok | xai-... API key | | ⭐ Gemini | AIza... API key |

The AI automatically knows your current object and its fields. If it generates a SOQL query, a "↗ Use this SOQL in editor" button appears to paste it directly.

Settings and chat provider preference are saved to localStorage.


Keyboard Shortcuts

| Shortcut | Action | |----------|--------| | ? | Open Help page | | Ctrl+Enter | Run SOQL query / Send AI message | | F5 | Run SOQL query | | Ctrl+Space | Trigger field autocomplete in editor | | Escape | Close AI sidekick | | 🌙 button | Toggle dark/light theme |


API Routes

| Method | Path | Description | |--------|------|-------------| | GET | /api/auth/status | Connection status | | POST | /api/auth | Login with username+password | | POST | /api/auth/session | Connect with session ID | | GET | /api/orgs | SF CLI authenticated orgs | | POST | /api/orgs/connect | Connect to a specific org | | GET | /api/objects | List custom objects | | POST | /api/objects | Create custom object | | GET | /api/standard-objects | List all standard objects | | GET | /api/objects/:name/describe | Full field list | | POST | /api/objects/:name/fields | Create field | | POST | /api/junction | Create junction object | | GET | /api/profiles | List all profiles | | POST | /api/fls | Set field-level security | | POST | /api/query | Execute SOQL query | | GET | /api/ai/config | AI enabled status | | GET | /api/ai/ollama/models | Fetch Ollama model list | | POST | /api/ai/chat | AI chat proxy |


License

MIT (c) Mohan Chinnappan