Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
uses: oven-sh/setup-bun@v2

- name: Install dependencies
run: bun install --frozen-lockfile
run: bunx --package vite-plus@0.2.7 vp install --frozen-lockfile

- name: Check
run: bun run check
1 change: 1 addition & 0 deletions .vite-hooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vp staged
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,12 @@ Schema SQL completo em [`initial.sql`](./initial.sql).

Estes dados são **públicos e oficiais**, disponibilizados pela Fundação Instituto de Pesquisas Econômicas (FIPE).

| | |
|---|---|
| **Fonte** | [veiculos.fipe.org.br](https://veiculos.fipe.org.br) |
| **Atualização** | Mensal (desde 2001) |
| **Cobertura** | Carros, motos, caminhões e utilitários |
| **Uso** | Referência para seguros, financiamentos, IPVA e negociação de veículos |
| | |
| --------------- | ---------------------------------------------------------------------- |
| **Fonte** | [veiculos.fipe.org.br](https://veiculos.fipe.org.br) |
| **Atualização** | Mensal (desde 2001) |
| **Cobertura** | Carros, motos, caminhões e utilitários |
| **Uso** | Referência para seguros, financiamentos, IPVA e negociação de veículos |

A Tabela FIPE é a referência de preço médio de veículos mais utilizada no Brasil. Os dados são coletados mensalmente junto a concessionárias, revendedoras e fabricantes em todo o país.

Expand Down
24 changes: 0 additions & 24 deletions biome.json

This file was deleted.

331 changes: 301 additions & 30 deletions bun.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ services:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: fipe
ports:
- '5433:5432'
- "5433:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres']
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
Expand Down
10 changes: 5 additions & 5 deletions drizzle.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { defineConfig } from 'drizzle-kit';
import { defineConfig } from "drizzle-kit";

export default defineConfig({
schema: './src/db/schema.ts',
out: './drizzle',
dialect: 'postgresql',
schema: "./src/db/schema.ts",
out: "./drizzle",
dialect: "postgresql",
dbCredentials: {
url: process.env.DATABASE_URL || 'postgres://postgres:postgres@localhost:5432/fipe',
url: process.env.DATABASE_URL || "postgres://postgres:postgres@localhost:5432/fipe",
},
});
9 changes: 0 additions & 9 deletions lefthook.yml

This file was deleted.

35 changes: 23 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
{
"name": "fipe-data-pipeline",
"version": "1.14.1",
"description": "Data pipeline for FIPE vehicle pricing data",
"license": "MIT",
"type": "module",
"scripts": {
"crawl": "bun src/index.ts crawl",
"status": "bun src/index.ts status",
"classify": "bun src/index.ts classify",
"backup": "bun src/index.ts backup",
"restore-drill": "bun src/index.ts restore-drill",
"test": "bun test",
"check": "bun run format:check && bun run lint && bun run typecheck && bun test",
"prepare": "test ! -x node_modules/.bin/vp || vp config --no-agent",
"test": "vp test run",
"check": "vp check && vp test run",
"db:push": "drizzle-kit push",
"lint": "biome check .",
"lint:fix": "biome check --write .",
"format": "biome format --write .",
"format:check": "biome format .",
"typecheck": "bunx tsc --noEmit"
"lint": "vp lint",
"lint:fix": "vp lint --fix",
"format": "vp fmt",
"format:check": "vp fmt --check",
"typecheck": "vp check --no-fmt --no-lint"
},
"license": "MIT",
"description": "Data pipeline for FIPE vehicle pricing data",
"dependencies": {
"@anthropic-ai/sdk": "^0.71.2",
"cli-progress": "^3.12.0",
Expand All @@ -28,14 +29,24 @@
"zod": "^4.1.13"
},
"devDependencies": {
"@biomejs/biome": "^1.9.4",
"@semantic-release/git": "^10.0.1",
"@types/bun": "^1.3.0",
"@types/cli-progress": "^3.11.6",
"@types/node": "^24.10.2",
"drizzle-kit": "^0.31.8",
"lefthook": "^1.11.5",
"semantic-release": "^25.0.2",
"typescript": "7.0.2"
"typescript": "7.0.2",
"vite": "npm:@voidzero-dev/vite-plus-core@0.2.7",
"vite-plus": "0.2.7"
},
"overrides": {
"vite": "npm:@voidzero-dev/vite-plus-core@0.2.7"
},
"devEngines": {
"packageManager": {
"name": "bun",
"version": "1.3.14",
"onFail": "download"
}
}
}
25 changes: 22 additions & 3 deletions pickled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,25 @@ facts:
quickstart:
statement: Mostra os comandos de início rápido.
match:
allOf: ["cp .env.example .env", "docker compose up -d", "bun install", "bun run db:push", "bun run crawl"]
allOf:
[
"cp .env.example .env",
"docker compose up -d",
"bun install",
"bun run db:push",
"bun run crawl",
]
project_commands:
statement: Lista comandos operacionais principais.
match:
allOf: ["bun run status", "bun run classify", "bun run backup", "bun run restore-drill", "bun run typecheck"]
allOf:
[
"bun run status",
"bun run classify",
"bun run backup",
"bun run restore-drill",
"bun run typecheck",
]
crawl_year_month:
statement: Mostra filtros de ano e mês, incluindo ranges e listas.
match:
Expand All @@ -69,7 +83,12 @@ facts:
docker_usage:
statement: Mostra build, run e docker exec para crawler.
match:
allOf: ["docker build -t fipe-crawler .", "docker run -d --name fipe --env-file .env fipe-crawler", "docker exec fipe bun src/index.ts crawl"]
allOf:
[
"docker build -t fipe-crawler .",
"docker run -d --name fipe --env-file .env fipe-crawler",
"docker exec fipe bun src/index.ts crawl",
]
config_env:
statement: Nomeia variáveis principais de banco e rate limit.
match:
Expand Down
Loading
Loading