Learn more about our native MCP
Directus Logo
  • Use Cases and Features
    • Headless CMS
      Manage and deliver content with ease
    • Backend-as-a-Service
      Build and ship applications faster
    • Headless Commerce
      A single source of truth for products
    • 100+ More Use Cases
      Build anything (or everything)
    • Instant APIs
      Connect a database, get REST + GraphQL APIs
    • Granular Policy-Based Auth
      Provide secure, autonomous data access
    • Visual Automation Builder
      Automate content and data workflows with ease
    • 50+ More Features
      Get everything you need out-of-the-box
    Project Showcase
    Built With Directus

    Built With Directus

    See what everyone's been building with Directus

  • Learn More
    • Blog
      Read our latest articles and guides
    • Case Studies
      Case studies and success stories
    • Community Forum
      Questions and conversations
    • Agency Directory
      Browse our list of agency partners
    • About Us
      Learn more about Directus and the team
    • Wall of Love
      See what others are saying about us
    • Contact
      Have a general inquiry or question for us?
    • Support
      Reach out to Directus support
    Watch Directus TV
    Directus TV
    Video

    Directus TV

    Go down the rabbit hole with hours of original video content from our team.

  • Developers
  • Enterprise
  • Pricing
Book a DemoGet StartedLog In
Directus Marketplace
Marketplace
  1. Extensions
  2. Integrations
  3. Templates
Back to Extensions
bundle

Cep Search

CEP group interface with autofill for Brazilian address fields using ViaCEP

CEP Search Autocomplete for Directus

A Directus interface bundle for Brazilian address forms with automatic CEP (postal code) lookup via ViaCEP. Add a group field to your collection, place address child fields inside it, and the form autofills when the user types a CEP.

Extension demo

Note: According to Directus CRM limitations, it's impossible to provide translations for the extension. For this reason, although this documentation is in English for marketplace standards, all the interface and validations are in Portuguese (BR).

Features

  • Fetches address data automatically from ViaCEP when a valid CEP is typed
  • Supports all Brazilian address fields: CEP, Logradouro, Bairro, Cidade, and UF
  • Optional overwrite control — choose whether to replace already-filled fields
  • UF field supports abbreviation (MG) or full name (Minas Gerais) display
  • Works as a sandboxed extension (no extra permissions required)
  • Three interfaces bundled together: group, input, and display

Installation

Via Directus Marketplace (Recommended)

  1. Navigate to your Directus project
  2. Go to Settings → Extensions
  3. Search for "CEP Search"
  4. Click Install

Via npm

npm install @ribertec/directus-extension-cep-search

Then restart your Directus instance.

Setup

This bundle provides three interfaces that work together:

1. CEP Search Group (cep-search)

The parent group field. Add it to your collection first.

Option Description
Sobrescrever Campos Preenchidos When enabled, autofill overwrites fields that already have a value

2. Address Field (cep-input)

Add these as child fields inside the CEP Search group. Set one field per address component.

Option Description
Tipo do Campo The address component this field represents: CEP, Logradouro / Rua, Bairro, Cidade, or UF / Estado
Placeholder Optional placeholder text
Autopreenchimento (CEP only) Triggers autofill when a valid CEP is entered
Exibição dos Estados (UF only) Display as abbreviation (MG) or full name (Minas Gerais)

3. CEP Display (cep-display)

A read-only display interface that renders a stored CEP value formatted as xxxxx-xxx.

Requirements

  • Directus 11.0.0+

License

MIT License — see LICENSE file for details

@ribertec/directus-extension-cep-search

npm i @ribertec/directus-extension-cep-search
This extension is sandboxed and can be installed through the Directus Marketplace.
GitHub Actions
1.0.0
Works with v11.0.0+
Updated 1 month ago
MIT License
25.5 KiB (5 files)
npm
Repository
Report Issue
  • Directus LogoDirectus Logo

    A composable backend to build your Headless CMS, BaaS, and more. 

  • Solutions
    • Headless CMS
    • Backend-as-a-Service
    • Product Information
    • 100+ Things to Build
  • Resources
    • Documentation
    • Guides
    • Community
    • Release Notes
  • Support
    • Issue Tracker
    • Feature Requests
    • Community Chat
    • Cloud Dashboard
  • Organization
    • About
    • Careers
    • Brand Assets
    • Contact
©2026 Monospace Inc
  • Cloud Policies
  • License
  • Terms
  • Privacy