
Security News
Lovable’s OJ Rewrites Vite’s Dev Server in Rust as AI Lowers the Cost of Forking Open Source
Lovable’s OJ rewrites Vite’s dev server in Rust, reducing memory use and preview times as AI lowers the cost of open source reimplementation.
@contai-evoluke/sdk
Advanced tools
SDK oficial TypeScript da API Contaí — 27 calculadoras fiscais brasileiras (CLT, PJ, impostos, finanças, saúde) com tipos completos.
SDK oficial TypeScript da API Contaí — 27 calculadoras fiscais brasileiras.
CLT, PJ, impostos, finanças, saúde — engine puro versionado, mesma fórmula que roda em calculas.com.br. Zero deps de runtime.
npm install @contai-evoluke/sdk
# ou
pnpm add @contai-evoluke/sdk
# ou
bun add @contai-evoluke/sdk
import { ContaiClient } from '@contai-evoluke/sdk'
// Free tier (sem auth — 100 req/dia por IP)
const client = new ContaiClient()
// Pro/Team (10k ou 50k req/dia, autenticado)
const client = new ContaiClient({ apiKey: 'ck_live_...' })
// Calcular rescisão CLT
const r = await client.calc('rescisao-clt', {
tipo: 'sem_justa_causa',
salarioBrutoCents: 500_000, // R$ 5.000,00
admissao: '2024-01-01',
demissao: '2026-04-01',
})
console.log(r.totalLiquidoCents) // valor em centavos
console.log(r.formula) // string explicativa
import { ContaiClient, ContaiApiError } from '@contai-evoluke/sdk'
try {
await client.calc('rescisao-clt', { ... })
} catch (err) {
if (err instanceof ContaiApiError) {
if (err.code === 'RATE_LIMITED') {
// Backoff e retry
} else if (err.code === 'INVALID_INPUT') {
// err.details tem o path do campo
}
}
}
type CalcSlug =
| 'rescisao-clt'
| 'salario-liquido'
| '13o-salario'
| 'ferias'
| 'horas-extras'
| 'horas-extras-dsr'
| 'fgts-acumulado'
| 'adicional-noturno'
| 'aviso-previo'
| 'inss-facultativo'
| 'insalubridade-periculosidade'
| 'seguro-desemprego'
| 'mei-das'
| 'simples-nacional'
| 'lucro-presumido'
| 'comparador-regime-tributario'
| 'financiamento-imobiliario'
| 'itbi'
| 'itcmd'
| 'ipva'
| 'irpf-restituicao'
| 'juros-compostos'
| 'simulador-aposentadoria'
| 'consorcio-vs-financiamento'
| 'porcentagem'
| 'imc'
| 'calculadora-gestacional'
// Lista calcs
await client.listCalcs()
// Schema de inputs (pra UI dinâmica)
await client.getSchema('rescisao-clt')
// Taxas BCB
await client.getRates()
// OpenAPI spec
await client.getOpenApiSpec()
const client = new ContaiClient({
apiKey: 'ck_live_...',
baseUrl: 'https://api.calculas.com.br', // default
timeoutMs: 10_000, // default
fetch: customFetch, // pra Node 16- ou polyfills
userAgent: 'meu-app/1.0',
})
const ctrl = new AbortController()
setTimeout(() => ctrl.abort(), 5000)
await client.calc('rescisao-clt', { ... }, { signal: ctrl.signal })
MIT
FAQs
SDK oficial TypeScript da API Contaí — 27 calculadoras fiscais brasileiras (CLT, PJ, impostos, finanças, saúde) com tipos completos.
We found that @contai-evoluke/sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Lovable’s OJ rewrites Vite’s dev server in Rust, reducing memory use and preview times as AI lowers the cost of open source reimplementation.

Security News
It has been one year since Shai-Hulud made its first appearance on npm.

Research
/Security News
Operators behind PolinRider used a compromised GitHub account to plant malware in four development versions of a Packagist package with 700,000+ downloads.