Socket
Book a DemoInstallSign in
Socket

novalang

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

novalang

Universal Programming Language with Enhanced Parser and AUTO_MYSQL_BACKEND Support

2.2.1
pipPyPI
Maintainers
1

NovaLang ๐Ÿš€ - Universal Programming Language with Complete Database Support

PyPI version Python Support License: MIT Downloads

NovaLang is the world's most comprehensive programming language with universal database support and enhanced parser for Spring Boot-style development. Supporting 70+ database types from SQL to NoSQL, Graph to Vector databases, and everything in between.

๐ŸŽ‰ NEW in v2.2.0: Enhanced Parser & AUTO_MYSQL_BACKEND

  • โœ… Fixed Parser Issues: All syntax now compiles successfully
  • โœ… Spring Boot-Style Syntax: Create backends with familiar patterns
  • โœ… AUTO_MYSQL_BACKEND: Complete guide for automatic MySQL setup
  • โœ… Hybrid Parser: Supports both basic and advanced syntax
  • โœ… Zero Build Errors: Robust error handling and recovery

๐ŸŒŸ Key Features

๐Ÿ—„๏ธ Universal Database Support (70+ Databases)

  • SQL Databases: MySQL, PostgreSQL, Oracle, SQL Server, SQLite, MariaDB, DB2, and 15+ more
  • NoSQL Databases: MongoDB, Cassandra, DynamoDB, CouchDB, HBase, and 10+ more
  • Graph Databases: Neo4j, ArangoDB, JanusGraph, TigerGraph, Amazon Neptune
  • Time Series: InfluxDB, TimescaleDB, Prometheus, Graphite, QuestDB
  • Search Engines: Elasticsearch, Solr, Lucene, Sphinx
  • Vector/AI Databases: Pinecone, Weaviate, Milvus, Qdrant, Chroma, Faiss
  • Cache/In-Memory: Redis, Memcached, Hazelcast, Caffeine, Ignite
  • Blockchain Databases: BigchainDB, Bluzelle
  • Multi-Model: CosmosDB, Fauna, SurrealDB, EdgeDB

๐Ÿ—๏ธ Enterprise Features

  • Multi-Target Compilation: Java/JVM, TypeScript, and more
  • Advanced Type System: Generics, Unions, Optional types, Result types
  • Microservices: Service discovery, load balancing, circuit breakers
  • Cloud-Native: Kubernetes deployment, Docker integration
  • AI/ML Integration: TensorFlow, PyTorch, HuggingFace models
  • Blockchain Support: Smart contracts, DeFi protocols, NFTs
  • Security: OAuth2, JWT, WebAuthn, SAML2, encryption

๐Ÿ› ๏ธ Development Tools

  • CLI Tool: Complete project lifecycle management
  • Advanced Parser: Full AST generation with error recovery
  • Code Generation: Multi-target backend compilation
  • Project Templates: Ready-to-use enterprise project structures

๐Ÿš€ Quick Start

Installation

# Install NovaLang
pip install novalang

# Install with database drivers
pip install novalang[database]

# Install development tools
pip install novalang[dev]

# Install everything
pip install novalang[all]

Your First NovaLang Program

// Universal Database Example
@MySQL
@PostgreSQL
@MongoDB
@Redis
@Service
class UserService {
    @Autowired
    @MySQL
    private mysqlRepo: MySQLUserRepository
    
    @Autowired
    @MongoDB
    private mongoRepo: MongoUserRepository
    
    @Autowired
    @Redis
    private cache: RedisTemplate
    
    @CRUD
    @Transactional
    public createUser(user: User): Result<User> {
        // Save to MySQL
        let savedUser = mysqlRepo.save(user)
        
        // Index in MongoDB for search
        mongoRepo.index(savedUser)
        
        // Cache in Redis
        cache.set(f"user:{savedUser.id}", savedUser, ttl: 3600)
        
        return Success(savedUser)
    }
    
    @Query
    @Cached
    public searchUsers(query: String): List<User> {
        return mongoRepo.search(query)
    }
}

CLI Usage

# Create new project
nova init my-project --template enterprise

# Build project
nova build

# Run project
nova run

# Test project
nova test

# Deploy to cloud
nova deploy --target kubernetes

๐Ÿ“Š Database Examples

SQL Databases

@MySQL
@Entity
@Table(name: "users")
class User {
    @Id
    @GeneratedValue
    private id: Long
    
    @Column(unique: true)
    private email: String
    
    @OneToMany
    private orders: List<Order>
}

NoSQL Databases

@MongoDB
@Document(collection: "products")
class Product {
    @Id
    private id: String
    
    @Field("name")
    @Indexed
    private name: String
    
    @Field("tags")
    private tags: List<String>
}

Graph Databases

@Neo4j
@Node("Person")
class Person {
    @Id
    private id: String
    
    @Property("name")
    private name: String
    
    @Relationship(type: "KNOWS", direction: "OUTGOING")
    private friends: List<Person>
}

Time Series Databases

@InfluxDB
@Measurement("sensor_data")
class SensorReading {
    @Time
    private timestamp: Instant
    
    @Tag("sensor_id")
    private sensorId: String
    
    @Field("temperature")
    private temperature: Double
}

Vector Databases (AI/ML)

@Pinecone
@VectorIndex(dimension: 768)
class DocumentEmbedding {
    @Id
    private id: String
    
    @Vector
    private embedding: Float[]
    
    @Metadata
    private content: String
}

๐Ÿ—๏ธ Architecture

NovaLang follows a modular architecture:

NovaLang
โ”œโ”€โ”€ Lexer (70+ database annotations)
โ”œโ”€โ”€ Parser (Advanced AST generation)
โ”œโ”€โ”€ Compiler (Multi-target code generation)
โ”œโ”€โ”€ Runtime (Universal database connectivity)
โ””โ”€โ”€ CLI (Project lifecycle management)

๐ŸŒ Multi-Target Compilation

NovaLang compiles to multiple targets:

Java/JVM

nova compile --target java
# Generates enterprise Java with Spring Boot integration

TypeScript

nova compile --target typescript  
# Generates TypeScript with Node.js/Express integration

๐Ÿ”ง Database Configuration

NovaLang automatically configures database connections:

// application.nova
@Configuration
class DatabaseConfig {
    @MySQL
    @DataSource
    private mysql: DataSource = {
        url: "jdbc:mysql://localhost:3306/mydb",
        username: "${DB_USER}",
        password: "${DB_PASSWORD}"
    }
    
    @MongoDB  
    @MongoTemplate
    private mongo: MongoTemplate = {
        uri: "mongodb://localhost:27017/mydb"
    }
    
    @Redis
    @RedisTemplate
    private redis: RedisTemplate = {
        host: "localhost",
        port: 6379
    }
}

๐Ÿš€ Deployment

Kubernetes

nova deploy --target kubernetes --namespace production

Docker

nova build --containerize
docker run novalang/my-app

Cloud Platforms

nova deploy --target aws-lambda
nova deploy --target azure-functions
nova deploy --target google-cloud-run

๐Ÿ“ˆ Performance

NovaLang is optimized for performance:

  • JIT Compilation: Runtime optimization
  • Connection Pooling: Efficient database connections
  • Caching: Multi-level caching strategies
  • Parallel Processing: Concurrent database operations
  • Memory Optimization: Zero-copy operations where possible

๐Ÿงช Testing

@Test
class UserServiceTest {
    @Mock
    private userRepository: UserRepository
    
    @InjectMocks  
    private userService: UserService
    
    @Test
    public testCreateUser() {
        // Given
        let user = User(email: "test@example.com")
        
        // When
        let result = userService.createUser(user)
        
        // Then
        assert result.isSuccess()
        assert result.get().id != null
    }
}

๐Ÿ“š Documentation

๐Ÿค Contributing

We welcome contributions! See our Contributing Guide for details.

๐Ÿ“„ License

NovaLang is released under the MIT License.

๐Ÿ† Why NovaLang?

FeatureNovaLangJavaPythonTypeScript
Database Types70+20+30+25+
Multi-Targetโœ…โŒโŒโŒ
Type Safetyโœ…โœ…โŒโœ…
Enterprise Readyโœ…โœ…โŒโŒ
AI/ML Integrationโœ…โŒโœ…โŒ
Blockchain Supportโœ…โŒโŒโŒ
Cloud Nativeโœ…โŒโŒโŒ

๐ŸŒŸ Star History

Star History Chart

Made with โค๏ธ by Martin Maboya

NovaLang - One Language, All Databases, Every Platform ๐Ÿš€

Keywords

programming-language

FAQs

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with โšก๏ธ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.