
Product
Introducing Repository Access Permissions and Custom Roles
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.
effect-sugar-vite
Advanced tools
Vite plugin and tsx loader for Effect-TS gen block syntax.
pnpm add -D effect-sugar-vite
// vite.config.ts
import { defineConfig } from 'vite'
import effectSugar from 'effect-sugar-vite'
export default defineConfig({
plugins: [effectSugar()]
})
pnpm add -D effect-sugar-vite esbuild
{
"scripts": {
"dev": "tsx --import effect-sugar-vite/register --watch src/index.ts"
}
}
// eslint.config.js
import effectSugarPreprocessor from 'effect-sugar-vite/eslint'
export default [
{
files: ['**/*.ts', '**/*.tsx'],
processor: effectSugarPreprocessor
}
]
// Input
const program = gen {
user <- getUser(id)
let name = user.name.toUpperCase()
return { user, name }
}
// Output
const program = Effect.gen(function* () {
const user = yield* getUser(id)
const name = user.name.toUpperCase()
return { user, name }
})
effectSugar({
include: ['.ts', '.tsx'], // File extensions (default: ['.ts', '.tsx', '.mts', '.cts'])
exclude: [/node_modules/], // Patterns to exclude
sourcemap: true // Enable source maps (default: true)
})
import { transformSource, hasGenBlocks } from 'effect-sugar-vite/transform'
if (hasGenBlocks(source)) {
const result = transformSource(source, 'filename.ts')
console.log(result.code, result.map)
}
MIT
FAQs
Vite plugin for Effect-TS gen block syntax
We found that effect-sugar-vite 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.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.