Implement with AI
This documentation is also written for AI agents (Claude, ChatGPT, Cursor, Claude Code and others). You can ask them to implement CEP lookup in your project with the right context from the start.
Buttons on every page
Section titled “Buttons on every page”At the top of every page there are two buttons:
- Copy Markdown copies the page content as clean Markdown, ready to paste into a chat.
- Open opens the page straight in Claude, ChatGPT and others, already asking the agent to read the page and help you.
Files for agents
Section titled “Files for agents”| URL | What is in it |
|---|---|
/llms.txt |
An index of the documentation, with a project summary and the links. |
/_llms-txt/english.txt |
The whole English documentation in a single text file. |
/llms-full.txt |
The same documentation in Portuguese (the site’s default language). |
/en/docs/<page>.md |
Any page as Markdown: just add .md to the URL. |
Point the agent at /_llms-txt/english.txt and it will have all the context at once.
Ready-made prompts
Section titled “Ready-made prompts”Pick your environment, copy the prompt and paste it into your agent, or open it straight in Claude or ChatGPT. Each prompt includes an API summary and the link to the full documentation.
Implement CEP lookup in my React project using the unicep library.
Full documentation (read it first): https://unicep.thet.dev/_llms-txt/english.txt
API summary:
- npm install @unicep/react
- import { useCep } from '@unicep/react';
- const { data, error, isLoading } = useCep(value); // data is an Address; the lookup runs only for a valid CEP
- Options: useCep(value, { unicep, enabled })
- Errors (import from @unicep/core): InvalidCepError, CepNotFoundError, AllProvidersFailedError.
What I need:
1. A CEP field with a 00000-000 mask that fetches the address on its own once the CEP is complete.
2. Fill in street, neighborhood, city and state from the result, and show loading and error states.
3. Show different messages for "CEP not found" and "services unavailable".
4. Create the Unicep instance once (outside the component), with the cache enabled.
Follow my project conventions and explain what you changed.Implement CEP lookup in my Vue project using the unicep library.
Full documentation (read it first): https://unicep.thet.dev/_llms-txt/english.txt
API summary:
- npm install @unicep/vue
- import { useCep } from '@unicep/vue';
- const { data, error, isLoading } = useCep(cepRef); // refs; the lookup runs only for a valid CEP
- Options: useCep(cepRef, { unicep, enabled })
- Errors (import from @unicep/core): InvalidCepError, CepNotFoundError, AllProvidersFailedError.
What I need:
1. A CEP field with a 00000-000 mask that fetches the address on its own once the CEP is complete.
2. Fill in street, neighborhood, city and state from the result, and show loading and error states.
3. Show different messages for "CEP not found" and "services unavailable".
4. Create the Unicep instance once, in a module, with the cache enabled.
Follow my project conventions and explain what you changed.Implement CEP lookup in my Angular project using the unicep library.
Full documentation (read it first): https://unicep.thet.dev/_llms-txt/english.txt
API summary:
- npm install @unicep/angular
- import { injectCep, provideUnicep, UNICEP } from '@unicep/angular';
- readonly cep = injectCep(() => this.value()); // signals: cep.data(), cep.error(), cep.isLoading()
- Also: lookupCep(unicep, cep) returns an Observable; provideUnicep(new Unicep({...})) customizes the instance
- Errors (import from @unicep/core): InvalidCepError, CepNotFoundError, AllProvidersFailedError.
What I need:
1. A CEP field with a 00000-000 mask that fetches the address on its own once the CEP is complete.
2. Fill in street, neighborhood, city and state from the result, and show loading and error states.
3. Show different messages for "CEP not found" and "services unavailable".
4. Configure Unicep once with provideUnicep, with the cache enabled.
Follow my project conventions and explain what you changed.Implement CEP lookup in my Node.js project using the unicep library.
Full documentation (read it first): https://unicep.thet.dev/_llms-txt/english.txt
API summary:
- npm install @unicep/core
- import { Unicep, defaultProviders } from '@unicep/core';
- const unicep = new Unicep({ providers: defaultProviders(), cache: {} }); // create once and reuse
- const address = await unicep.lookup(cep); // accepts 01310-100 or 01310100
- Errors (import from @unicep/core): InvalidCepError, CepNotFoundError, AllProvidersFailedError.
What I need:
1. A GET /cep/:cep endpoint that returns the address as JSON.
2. Respond 400 for an invalid CEP, 404 for "CEP not found" and 503 when every service fails.
3. Create the Unicep instance once, with the cache enabled, and cancel the lookup if the client disconnects.
Follow my project conventions and explain what you changed.- If the agent runs in the terminal (like Claude Code), paste the prompt straight into it: it reads the documentation and changes your project.
- Ask it to create the
Unicepinstance just once and turn on the cache. - Review what it generated: check that the errors are handled and that the use of the providers is responsible.