ElysiaJS is a modular framework aimed at enhancing the development of JavaScript applications. This skill simplifies the integration of ElysiaJS features into your projects.
$ npx skills add https://github.com/elysiajs/skills --skill elysiajsElysiaJS is a modular framework designed to streamline JavaScript application development. This skill integrates ElysiaJS features directly into your projects, reducing setup complexity and enabling faster development cycles. By leveraging ElysiaJS's modular architecture, developers can build scalable web applications with simplified feature integration.
Install by running the provided npx command in your terminal.
Integrate ElysiaJS features into JavaScript applications
Easily manage dependencies for web projects
Utilize pre-built skills for faster development
$ npx skills add https://github.com/elysiajs/skills --skill elysiajsgit clone https://github.com/elysiajs/skillsCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Generate a [PROJECT_NAME] ElysiaJS server with [FEATURES] for [COMPANY_NAME]. Include [MIDDLEWARES] and [PLUGINS]. Use [ARCHITECTURE] pattern. Provide [TEST_EXAMPLES] and [DEPLOYMENT_STEPS].
# ElysiaJS Server for Acme Corp's API
```javascript
import { Elysia } from 'elysia';
import { swagger } from '@elysiajs/swagger';
import { cors } from '@elysiajs/cors';
import { jwt } from '@elysiajs/jwt';
const app = new Elysia()
.use(swagger({
documentation: {
info: {
title: 'Acme Corp API',
version: '1.0.0'
}
}
}))
.use(cors())
.use(jwt({
name: 'jwt',
secret: process.env.JWT_SECRET || 'fallback-secret'
}))
.get('/health', () => 'OK')
.post('/auth/login', ({ jwt, body: { username, password } }) => {
if (username === 'admin' && password === 'secure123') {
return { token: jwt.sign({ username }) };
}
return { error: 'Invalid credentials' };
})
.group('/api/v1', (app) => app
.get('/users', () => ['user1', 'user2'])
.post('/users', ({ body }) => `Created user: ${body.name}`)
)
.listen(3000);
console.log(`🦊 Elysia is running at http://${app.server?.hostname}:${app.server?.port}`);
```
## Testing the API
### Login Endpoint
```bash
curl -X POST http://localhost:3000/auth/login \
-H "Content-Type: application/json" \
-d '{"username":"admin","password":"secure123"}'
```
### Health Check
```bash
curl http://localhost:3000/health
```
### User Management
```bash
curl http://localhost:3000/api/v1/users
```
## Deployment Steps
1. Set environment variables in `.env`:
```
JWT_SECRET=your-secret-key
PORT=3000
```
2. Install dependencies:
```bash
bun install
```
3. Run tests:
```bash
bun test
```
4. Deploy to production (e.g., using Docker or serverless):
```bash
docker build -t acme-api .
docker run -p 3000:3000 acme-api
```Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan